migrated to gitea
All checks were successful
CI / build (push) Successful in 48s

This commit is contained in:
2024-04-04 08:39:31 +08:00
parent c4ccec0fc3
commit 19162b5b97
18 changed files with 125 additions and 42 deletions

View File

@@ -1,5 +1,7 @@
plugins {
id 'jacoco'
id 'maven-publish'
alias catalog.plugins.multi.release.jar
alias catalog.plugins.envelope apply false
alias catalog.plugins.lombok apply false
}
@@ -15,7 +17,7 @@ allprojects {
java {
modularity.inferModulePath = true
toolchain {
languageVersion = JavaLanguageVersion.of(17)
languageVersion = JavaLanguageVersion.of(21)
vendor = JvmVendorSpec.GRAAL_VM
}
}
@@ -26,9 +28,8 @@ allprojects {
repositories {
maven {
url = "https://woggioni.net/mvn/"
url = getProperty('gitea.maven.url')
content {
includeGroup 'com.beust'
includeGroup 'com.lys'
includeGroup 'net.woggioni'
}
@@ -36,6 +37,15 @@ allprojects {
mavenCentral()
}
pluginManager.withPlugin('jacoco') {
test {
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
}
}
dependencies {
implementation catalog.xz
@@ -59,6 +69,30 @@ allprojects {
}
}
}
pluginManager.withPlugin('maven-publish') {
publishing {
repositories {
maven {
url = 'https://mvn.woggioni.net/'
}
maven {
name = "Gitea"
url = uri(getProperty('gitea.maven.url'))
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${System.getenv()["PUBLISHER_TOKEN"]}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
}
}
@@ -79,12 +113,11 @@ compileJava {
options.compilerArgs << '-parameters'
}
ext {
setProperty('jpms.module.name', 'net.woggioni.wson')
}
publishing {
repositories {
maven {
url = "https://mvn.woggioni.net/"
}
}
publications {
maven(MavenPublication) {
from(components["java"])