refactor: values must use project variables

This commit is contained in:
siujamo
2025-03-21 11:22:07 +08:00
parent ef8cde211d
commit fc802b11d7
+8 -4
View File
@@ -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 {