refactor: values must use project variables
This commit is contained in:
@@ -23,6 +23,10 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val artefactVersion: String by project
|
val artefactVersion: String by project
|
||||||
|
val projectUrl: String by project
|
||||||
|
val projectGithubUrl: String by project
|
||||||
|
val licenseName: String by project
|
||||||
|
val licenseUrl: String by project
|
||||||
|
|
||||||
group = "com.onixbyte"
|
group = "com.onixbyte"
|
||||||
version = artefactVersion
|
version = artefactVersion
|
||||||
@@ -57,19 +61,19 @@ publishing {
|
|||||||
pom {
|
pom {
|
||||||
name = "DevKit BOM"
|
name = "DevKit BOM"
|
||||||
description = "Using BOM could use unified OnixByte JDevKit."
|
description = "Using BOM could use unified OnixByte JDevKit."
|
||||||
url = "https://github.com/OnixByte/devkit-bom"
|
url = projectUrl
|
||||||
|
|
||||||
licenses {
|
licenses {
|
||||||
license {
|
license {
|
||||||
name = "The Apache License, Version 2.0"
|
name = licenseName
|
||||||
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
|
url = licenseUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
scm {
|
scm {
|
||||||
connection = "scm:git:git://github.com:OnixByte/devkit-bom.git"
|
connection = "scm:git:git://github.com:OnixByte/devkit-bom.git"
|
||||||
developerConnection = "scm:git:git://github.com:OnixByte/devkit-bom.git"
|
developerConnection = "scm:git:git://github.com:OnixByte/devkit-bom.git"
|
||||||
url = "https://github.com/OnixByte/devkit-bom"
|
url = projectGithubUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
developers {
|
developers {
|
||||||
|
|||||||
Reference in New Issue
Block a user