Skip to content

Commit 6aabde2

Browse files
committed
Fix publishing/task config (2)
1 parent 90cd233 commit 6aabde2

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

build.gradle.kts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ dependencies {
111111
}
112112

113113
java {
114-
sourceCompatibility = JavaVersion.VERSION_1_8
115-
targetCompatibility = JavaVersion.VERSION_1_8
114+
toolchain {
115+
languageVersion.set(JavaLanguageVersion.of(8))
116+
}
116117
}
117118

118119
tasks {
@@ -147,6 +148,10 @@ val artifactVersion = if (!isSnapshot) project.version as String else SimpleDate
147148
val publicationName = "gradleDebianPlugin"
148149
publishing {
149150
repositories {
151+
maven {
152+
name = localRepositoryName
153+
url = uri("../local-plugins")
154+
}
150155
maven {
151156
name = gitHubPackagesRepositoryName
152157
url = uri("https://maven.pkg.github.com/${property("github.package-registry.owner")}/${property("github.package-registry.repository")}")
@@ -157,7 +162,7 @@ publishing {
157162
}
158163
}
159164
publications {
160-
register(publicationName, MavenPublication::class) {
165+
register<MavenPublication>(publicationName) {
161166
pom {
162167
name.set("gradle-debian-plugin")
163168
description.set("A Debian plugin for Gradle")
@@ -212,20 +217,18 @@ signing {
212217
sign(publishing.publications[publicationName])
213218
}
214219

215-
//pluginBundle {
216-
// website = "https://github.com/gesellix/gradle-debian-plugin"
217-
// vcsUrl = "https://github.com/gesellix/gradle-debian-plugin.git"
218-
// tags = listOf("debian", "jdeb", "package", "ubuntu")
219-
//}
220-
221220
gradlePlugin {
221+
website.set("https://github.com/gesellix/gradle-debian-plugin")
222+
vcsUrl.set("https://github.com/gesellix/gradle-debian-plugin.git")
223+
222224
plugins {
223225
register(publicationName) {
224226
id = "de.gesellix.debian"
225227
displayName = "Gradle Debian plugin"
226228
description = "Create Debian packages with Gradle"
227229
implementationClass = "de.gesellix.gradle.debian.DebianPackagePlugin"
228230
version = artifactVersion
231+
tags.set(listOf("debian", "jdeb", "package", "ubuntu"))
229232
}
230233
}
231234
}

0 commit comments

Comments
 (0)