Skip to content

Commit fc802b1

Browse files
committed
refactor: values must use project variables
1 parent ef8cde2 commit fc802b1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

devkit-bom/build.gradle.kts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ plugins {
2323
}
2424

2525
val artefactVersion: String by project
26+
val projectUrl: String by project
27+
val projectGithubUrl: String by project
28+
val licenseName: String by project
29+
val licenseUrl: String by project
2630

2731
group = "com.onixbyte"
2832
version = artefactVersion
@@ -57,19 +61,19 @@ publishing {
5761
pom {
5862
name = "DevKit BOM"
5963
description = "Using BOM could use unified OnixByte JDevKit."
60-
url = "https://github.com/OnixByte/devkit-bom"
64+
url = projectUrl
6165

6266
licenses {
6367
license {
64-
name = "The Apache License, Version 2.0"
65-
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
68+
name = licenseName
69+
url = licenseUrl
6670
}
6771
}
6872

6973
scm {
7074
connection = "scm:git:git://github.com:OnixByte/devkit-bom.git"
7175
developerConnection = "scm:git:git://github.com:OnixByte/devkit-bom.git"
72-
url = "https://github.com/OnixByte/devkit-bom"
76+
url = projectGithubUrl
7377
}
7478

7579
developers {

0 commit comments

Comments
 (0)