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'
|
group = 'net.woggioni'
|
||||||
version = getProperty('jsf.playground.version')
|
version = getProperty('jsf.playground.version')
|
||||||
}
|
}
|
||||||
@@ -112,3 +142,11 @@ tasks.register('dockerStopContainer', DockerStopContainer) {
|
|||||||
dependsOn(dockerRun)
|
dependsOn(dockerRun)
|
||||||
targetContainerId(dockerRun.flatMap { it.containerId })
|
targetContainerId(dockerRun.flatMap { it.containerId })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
maven(MavenPublication) {
|
||||||
|
from(components["web"])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user