mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 14:50:57 +00:00
update sentry link
This commit is contained in:
+6
-6
@@ -31,13 +31,12 @@ plugins {
|
|||||||
java
|
java
|
||||||
`java-library`
|
`java-library`
|
||||||
alias(libs.plugins.shadow)
|
alias(libs.plugins.shadow)
|
||||||
alias(libs.plugins.sentry)
|
|
||||||
alias(libs.plugins.download)
|
alias(libs.plugins.download)
|
||||||
alias(libs.plugins.runPaper)
|
alias(libs.plugins.runPaper)
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.volmit"
|
group = "com.volmit"
|
||||||
version = "3.7.0-1.20.1-1.21.7"
|
version = "3.7.0-1.20.1-1.21.8"
|
||||||
|
|
||||||
apply<ApiGenerator>()
|
apply<ApiGenerator>()
|
||||||
|
|
||||||
@@ -156,12 +155,13 @@ tasks {
|
|||||||
group = "io.sentry"
|
group = "io.sentry"
|
||||||
dependsOn("downloadCli")
|
dependsOn("downloadCli")
|
||||||
doLast {
|
doLast {
|
||||||
|
val url = "http://sentry.volmit.com:8080"
|
||||||
val authToken = project.findProperty("sentry.auth.token") ?: System.getenv("SENTRY_AUTH_TOKEN")
|
val authToken = project.findProperty("sentry.auth.token") ?: System.getenv("SENTRY_AUTH_TOKEN")
|
||||||
val org = "volmit-software"
|
val org = "sentry"
|
||||||
val projectName = "iris"
|
val projectName = "iris"
|
||||||
exec(cli, "releases", "new", "--auth-token", authToken, "-o", org, "-p", projectName, version)
|
exec(cli, "--url", url , "--auth-token", authToken, "releases", "new", "-o", org, "-p", projectName, version)
|
||||||
exec(cli, "releases", "set-commits", "--auth-token", authToken, "-o", org, "-p", projectName, version, "--auto", "--ignore-missing")
|
exec(cli, "--url", url , "--auth-token", authToken, "releases", "set-commits", "-o", org, "-p", projectName, version, "--auto", "--ignore-missing")
|
||||||
exec(cli, "releases", "finalize", "--auth-token", authToken, "-o", org, "-p", projectName, version)
|
//exec(cli, "--url", url, "--auth-token", authToken, "releases", "finalize", "-o", org, "-p", projectName, version)
|
||||||
cli.delete()
|
cli.delete()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,10 +100,11 @@ java {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sentry {
|
sentry {
|
||||||
|
url = "http://sentry.volmit.com:8080/"
|
||||||
autoInstallation.enabled = false
|
autoInstallation.enabled = false
|
||||||
includeSourceContext = true
|
includeSourceContext = true
|
||||||
|
|
||||||
org = "volmit-software"
|
org = "sentry"
|
||||||
projectName = "iris"
|
projectName = "iris"
|
||||||
authToken = findProperty("sentry.auth.token") as String? ?: System.getenv("SENTRY_AUTH_TOKEN")
|
authToken = findProperty("sentry.auth.token") as String? ?: System.getenv("SENTRY_AUTH_TOKEN")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public class Bindings {
|
|||||||
YamlConfiguration desc = resource != null ? YamlConfiguration.loadConfiguration(new InputStreamReader(resource)) : new YamlConfiguration();
|
YamlConfiguration desc = resource != null ? YamlConfiguration.loadConfiguration(new InputStreamReader(resource)) : new YamlConfiguration();
|
||||||
|
|
||||||
Sentry.init(options -> {
|
Sentry.init(options -> {
|
||||||
options.setDsn("https://b16ecc222e9c1e0c48faecacb906fd89@o4509451052646400.ingest.de.sentry.io/4509452722765904");
|
options.setDsn("http://4cdbb9ac953306529947f4ca1e8e6b26@sentry.volmit.com:8080/2");
|
||||||
if (settings.debug) {
|
if (settings.debug) {
|
||||||
options.setLogger(new IrisLogger());
|
options.setLogger(new IrisLogger());
|
||||||
options.setDebug(true);
|
options.setDebug(true);
|
||||||
@@ -79,7 +79,6 @@ public class Bindings {
|
|||||||
scope.setTag("server.api", Bukkit.getBukkitVersion());
|
scope.setTag("server.api", Bukkit.getBukkitVersion());
|
||||||
scope.setTag("iris.commit", desc.getString("commit", "unknown"));
|
scope.setTag("iris.commit", desc.getString("commit", "unknown"));
|
||||||
});
|
});
|
||||||
Runtime.getRuntime().addShutdownHook(new Thread(Sentry::close));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean suppress(Throwable e) {
|
private static boolean suppress(Throwable e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user