diff --git a/build.gradle.kts b/build.gradle.kts index e380122e756..8c0023aa205 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -87,6 +87,9 @@ publishing { publications { create("nukkit") { + artifact(tasks.generateGitProperties) { + extension = "properties" + } from(components["java"]) } } @@ -140,3 +143,7 @@ tasks { options.encoding = "UTF-8" } } + +gitProperties { + customProperty("github.repo", "CloudburstMC/Nukkit") +} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2e4d2f248d4..23694515170 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -45,4 +45,4 @@ fastutilmaps = [ "fastutil-int-short-maps", "fastutil-long-byte-maps" ] [plugins] shadow = { id = "com.github.johnrengelman.shadow", version = "8.0.0" } -git = { id = "com.gorylenko.gradle-git-properties", version = "2.4.1" } +git = { id = "com.gorylenko.gradle-git-properties", version = "2.4.2" }