fix gradlew and up to 9.7.0, version bump to 1.19.1 [skip ci]

This commit is contained in:
alexcrea 2026-08-16 07:50:34 +02:00
parent 4e1ed9f1ea
commit 142376573c
Signed by: alexcrea
GPG key ID: E59DF23EE2A2266C
2 changed files with 6 additions and 7 deletions

View file

@ -22,7 +22,7 @@ plugins {
} }
group = "xyz.alexcrea" group = "xyz.alexcrea"
version = "1.19.0" version = "1.19.1"
val isDevBuild = System.getenv("SMALL_COMMIT_HASH") != null val isDevBuild = System.getenv("SMALL_COMMIT_HASH") != null
val isPreRelease = System.getenv("IS_GITHUB_PRERELEASE") == "true" val isPreRelease = System.getenv("IS_GITHUB_PRERELEASE") == "true"
@ -212,7 +212,7 @@ tasks {
exclude("net/kyori/**") exclude("net/kyori/**")
} }
val offlineJar by registering(ShadowJar::class) { val offlineJar = register<ShadowJar>("OfflineJar") {
configureBaseShadow("offline", emptyArray()) configureBaseShadow("offline", emptyArray())
from(sourceSets.main.get().output) from(sourceSets.main.get().output)
@ -226,12 +226,12 @@ tasks {
} }
val sourcesJar by tasks.registering(Jar::class) { val sourcesJar = tasks.register<Jar>("sourcesJar") {
archiveClassifier.set("sources") archiveClassifier.set("sources")
from(kotlin.sourceSets.main.get().kotlin) from(kotlin.sourceSets.main.get().kotlin)
} }
val javadocJar by tasks.registering(Jar::class, fun Jar.() { val javadocJar = tasks.register<Jar>("javadocJar", fun Jar.() {
group = JavaBasePlugin.DOCUMENTATION_GROUP group = JavaBasePlugin.DOCUMENTATION_GROUP
description = "Assembles Javadoc JAR" description = "Assembles Javadoc JAR"
archiveClassifier.set("javadoc") archiveClassifier.set("javadoc")
@ -355,10 +355,9 @@ publishing {
} }
// hangar publish // hangar publish
fun executeGitCommand(vararg command: String): String { fun executeGitCommand(vararg command: String): String {
val byteOut = ByteArrayOutputStream() val byteOut = ByteArrayOutputStream()
exec { providers.exec {
commandLine = listOf("git", *command) commandLine = listOf("git", *command)
standardOutput = byteOut standardOutput = byteOut
} }

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.0-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists