Skip to content

Commit

Permalink
Fix publishing/task config (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Jul 12, 2024
1 parent 90cd233 commit 6aabde2
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ dependencies {
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}

tasks {
Expand Down Expand Up @@ -147,6 +148,10 @@ val artifactVersion = if (!isSnapshot) project.version as String else SimpleDate
val publicationName = "gradleDebianPlugin"
publishing {
repositories {
maven {
name = localRepositoryName
url = uri("../local-plugins")
}
maven {
name = gitHubPackagesRepositoryName
url = uri("https://maven.pkg.github.com/${property("github.package-registry.owner")}/${property("github.package-registry.repository")}")
Expand All @@ -157,7 +162,7 @@ publishing {
}
}
publications {
register(publicationName, MavenPublication::class) {
register<MavenPublication>(publicationName) {
pom {
name.set("gradle-debian-plugin")
description.set("A Debian plugin for Gradle")
Expand Down Expand Up @@ -212,20 +217,18 @@ signing {
sign(publishing.publications[publicationName])
}

//pluginBundle {
// website = "https://github.com/gesellix/gradle-debian-plugin"
// vcsUrl = "https://github.com/gesellix/gradle-debian-plugin.git"
// tags = listOf("debian", "jdeb", "package", "ubuntu")
//}

gradlePlugin {
website.set("https://github.com/gesellix/gradle-debian-plugin")
vcsUrl.set("https://github.com/gesellix/gradle-debian-plugin.git")

plugins {
register(publicationName) {
id = "de.gesellix.debian"
displayName = "Gradle Debian plugin"
description = "Create Debian packages with Gradle"
implementationClass = "de.gesellix.gradle.debian.DebianPackagePlugin"
version = artifactVersion
tags.set(listOf("debian", "jdeb", "package", "ubuntu"))
}
}
}
Expand Down

0 comments on commit 6aabde2

Please sign in to comment.