This commit is contained in:
38
build.gradle
38
build.gradle
@@ -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"])
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user