fix build without giteaToken defined
All checks were successful
Release / release (push) Successful in 3m42s

This commit is contained in:
2025-07-05 23:06:07 +02:00
parent 8172b1dbff
commit 288fbfe0cc
2 changed files with 24 additions and 20 deletions

View File

@@ -36,7 +36,8 @@ tasks.named('test') {
useJUnitPlatform() useJUnitPlatform()
} }
publishing { if (project.hasProperty('giteaToken') && project.giteaToken) {
publishing {
publications { publications {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
from components.java from components.java
@@ -57,6 +58,9 @@ publishing {
} }
} }
} }
}
} else {
println "No giteaToken defined - skipping publishing configuration"
} }
gradle.taskGraph.whenReady { taskGraph -> gradle.taskGraph.whenReady { taskGraph ->