Skip to content

Commit

Permalink
Deploy properties file to maven
Browse files Browse the repository at this point in the history
  • Loading branch information
SupremeMortal committed Dec 23, 2024
1 parent 4da37b2 commit f1f6194
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ publishing {

publications {
create<MavenPublication>("nukkit") {
artifact(tasks.generateGitProperties) {
extension = "properties"
}
from(components["java"])
}
}
Expand Down Expand Up @@ -140,3 +143,7 @@ tasks {
options.encoding = "UTF-8"
}
}

gitProperties {
customProperty("github.repo", "CloudburstMC/Nukkit")
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

0 comments on commit f1f6194

Please sign in to comment.