Gradle publish

This commit is contained in:
bskjon committed 2026-07-12 03:57:23 +02:00
1 parent 09ef56b5b9
commit 113be737ec
1 file changed
+9 -7
+9 -7
View File
@@ -77,16 +77,18 @@ val reposiliteUrl = if (version.toString().endsWith("SNAPSHOT")) {
} }
publishing { publishing {
// 1. Vi konfigurerer den eksisterende 'pluginMaven' publikasjonen i stedet for å lage en ny
publications { publications {
create<MavenPublication>("plugin") { withType<MavenPublication>().configureEach {
groupId = "no.iktdev" if (name == "pluginMaven") {
artifactId = "ts-gen" groupId = "no.iktdev"
// Hent ut verdien eksplisitt med .get() artifactId = "ts-gen"
version = dynamicVersion.get() version = dynamicVersion.get()
}
artifact(tasks.jar)
} }
} }
// 2. Repositories er uendret
repositories { repositories {
mavenLocal() mavenLocal()
maven { maven {