Skip to content

Commit

Permalink
Replace use of deprecated gradle api
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Dec 10, 2024
1 parent 49aae54 commit 083b6a7
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,45 +97,45 @@ val updateAllManifestFiles by tasks.registering {
group = "version"
description = "Updates all manifest files."
doLast {
exec {
providers.exec {
workingDir(layout.projectDirectory)
commandLine("sh", "./manifests/hivemq-operator/manifests.sh")
}
exec {
}.result.get()
providers.exec {
workingDir(layout.projectDirectory)
commandLine("sh", "./manifests/hivemq-platform/manifests.sh")
}
exec {
}.result.get()
providers.exec {
workingDir(layout.projectDirectory)
commandLine("sh", "./manifests/hivemq-platform-operator/manifests.sh")
}
exec {
}.result.get()
providers.exec {
workingDir(layout.projectDirectory)
commandLine("sh", "./manifests/hivemq-swarm/manifests.sh")
}
}.result.get()
}
}

val test by tasks.registering {
group = "test"
description = "Executes all Helm unit tests."
doLast {
exec {
providers.exec {
workingDir(layout.projectDirectory)
commandLine("helm", "unittest", "./charts/hivemq-operator", "-f", "./tests/**/*_test.yaml")
}
exec {
}.result.get()
providers.exec {
workingDir(layout.projectDirectory)
commandLine("helm", "unittest", "./charts/hivemq-platform", "-f", "./tests/**/*_test.yaml")
}
exec {
}.result.get()
providers.exec {
workingDir(layout.projectDirectory)
commandLine("helm", "unittest", "./charts/hivemq-platform-operator", "-f", "./tests/**/*_test.yaml")
}
exec {
}.result.get()
providers.exec {
workingDir(layout.projectDirectory)
commandLine("helm", "unittest", "./charts/hivemq-swarm", "-f", "./tests/**/*_test.yaml")
}
}.result.get()
}
}

Expand Down

0 comments on commit 083b6a7

Please sign in to comment.