added war file publication
Some checks failed
CI / build (push) Failing after 26s

This commit is contained in:
2024-12-08 21:42:52 +08:00
parent f49691b837
commit 064a9b90d7

View File

@@ -49,6 +49,36 @@ allprojects {
}
}
pluginManager.withPlugin('maven-publish') {
pluginManager.withPlugin('java-library') {
java {
withJavadocJar()
withSourcesJar()
}
}
publishing {
repositories {
maven {
name = "Gitea"
url = uri(getProperty('gitea.maven.url'))
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${System.getenv()["PUBLISHER_TOKEN"]}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
}
group = 'net.woggioni'
version = getProperty('jsf.playground.version')
}
@@ -111,4 +141,12 @@ tasks.register('dockerStopContainer', DockerStopContainer) {
group = 'docker'
dependsOn(dockerRun)
targetContainerId(dockerRun.flatMap { it.containerId })
}
publishing {
publications {
maven(MavenPublication) {
from(components["web"])
}
}
}