parent
9d7dbf17a8
commit
3b3bee5209
2 changed files with 5 additions and 2 deletions
|
@ -22,6 +22,7 @@ fun getVersionMeta(includeHash: Boolean): String {
|
||||||
return "$commitHash-SNAPSHOT"
|
return "$commitHash-SNAPSHOT"
|
||||||
}
|
}
|
||||||
version = "$fullVersion${getVersionMeta(true)}"
|
version = "$fullVersion${getVersionMeta(true)}"
|
||||||
|
ext["fullVersion"] = fullVersion
|
||||||
ext["versionBeta"] = getVersionMeta(true)
|
ext["versionBeta"] = getVersionMeta(true)
|
||||||
ext["versionNoHash"] = "$fullVersion${getVersionMeta(false)}"
|
ext["versionNoHash"] = "$fullVersion${getVersionMeta(false)}"
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,10 @@ publishing {
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = uri("https://git.netherite.gg/api/packages/Netherite-Public/maven")
|
val urlHost = "repo.netherite.gg"
|
||||||
|
|
||||||
name = "netheriteRepo"
|
name = "netheriteRepo"
|
||||||
|
url = uri("https://$urlHost/netherite")
|
||||||
|
|
||||||
credentials(PasswordCredentials::class.java)
|
credentials(PasswordCredentials::class.java)
|
||||||
authentication {
|
authentication {
|
||||||
|
@ -62,7 +64,7 @@ publishing {
|
||||||
create<MavenPublication>("EntityLib") {
|
create<MavenPublication>("EntityLib") {
|
||||||
groupId = project.group as String
|
groupId = project.group as String
|
||||||
artifactId = project.name
|
artifactId = project.name
|
||||||
version = rootProject.ext["versionBeta"] as String
|
version = rootProject.ext["fullVersion"] as String
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
|
|
Loading…
Reference in a new issue