Skip to content

Commit

Permalink
build > use = instead of .set()
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Apr 26, 2024
1 parent d4dc1b7 commit 1a469a1
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,46 +27,46 @@ group = "com.hivemq"
description = "HiveMQ CE is a Java-based open source MQTT broker that fully supports MQTT 3.x and MQTT 5"

metadata {
readableName.set("HiveMQ Community Edition")
readableName = "HiveMQ Community Edition"
organization {
name.set("HiveMQ GmbH")
url.set("https://www.hivemq.com/")
name = "HiveMQ GmbH"
url = "https://www.hivemq.com/"
}
license {
apache2()
}
developers {
register("cschaebe") {
fullName.set("Christoph Schaebel")
email.set("[email protected]")
fullName = "Christoph Schaebel"
email = "[email protected]"
}
register("lbrandl") {
fullName.set("Lukas Brandl")
email.set("[email protected]")
fullName = "Lukas Brandl"
email = "[email protected]"
}
register("flimpoeck") {
fullName.set("Florian Limpoeck")
email.set("[email protected]")
fullName = "Florian Limpoeck"
email = "[email protected]"
}
register("sauroter") {
fullName.set("Georg Held")
email.set("[email protected]")
fullName = "Georg Held"
email = "[email protected]"
}
register("SgtSilvio") {
fullName.set("Silvio Giebl")
email.set("[email protected]")
fullName = "Silvio Giebl"
email = "[email protected]"
}
}
github {
org.set("hivemq")
repo.set("hivemq-community-edition")
org = "hivemq"
repo = "hivemq-community-edition"
issues()
}
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
languageVersion = JavaLanguageVersion.of(11)
}
withJavadocJar()
withSourcesJar()
Expand Down Expand Up @@ -213,7 +213,7 @@ val hivemqZip by tasks.registering(Zip::class) {

val name = "hivemq-ce-${project.version}"

archiveFileName.set("$name.zip")
archiveFileName = "$name.zip"

from("src/distribution") { exclude("**/.gitkeep") }
from("src/main/resources/config.xml") { into("conf") }
Expand All @@ -229,13 +229,13 @@ oci {
}
}
imageDefinitions.register("main") {
imageName.set("hivemq/hivemq-ce")
imageName = "hivemq/hivemq-ce"
allPlatforms {
parentImages {
add("library:eclipse-temurin:sha256!7ee0d51696b3c314bdb96d7a9931140ef2499cc95dccab4dfddbaf2fe59f51a5") // 21.0.2_13-jre-jammy
}
config {
creationTime.set(Instant.EPOCH)
creationTime = Instant.EPOCH
user = "10000"
ports = setOf("1883", "8000")
environment = mapOf(
Expand All @@ -250,7 +250,7 @@ oci {
}
layers {
layer("hivemq") {
metadata { creationTime.set(Instant.EPOCH) }
metadata { creationTime = Instant.EPOCH }
contents {
into("opt") {
filePermissions = 0b110_110_000
Expand Down Expand Up @@ -328,9 +328,9 @@ downloadLicenses {

tasks.updateThirdPartyLicenses {
dependsOn(tasks.downloadLicenses)
projectName.set("HiveMQ")
dependencyLicense.set(tasks.downloadLicenses.get().xmlDestination.resolve("dependency-license.xml"))
outputDirectory.set(layout.projectDirectory.dir("src/distribution/third-party-licenses"))
projectName = "HiveMQ"
dependencyLicense = tasks.downloadLicenses.get().xmlDestination.resolve("dependency-license.xml")
outputDirectory = layout.projectDirectory.dir("src/distribution/third-party-licenses")
}

/* ******************** publishing ******************** */
Expand Down

0 comments on commit 1a469a1

Please sign in to comment.