migrated to Gitea
All checks were successful
CI / build (push) Successful in 59s

This commit is contained in:
2024-04-14 17:16:35 +08:00
parent 88c51710f4
commit e71f2b013e
6 changed files with 68 additions and 32 deletions

View File

@@ -10,28 +10,40 @@ version = getProperty("jzstd.version")
allprojects {
apply plugin: catalog.plugins.lombok.get().pluginId
repositories {
maven {
url = 'https://woggioni.net/mvn/'
pluginManager.withPlugin('java') {
apply plugin: catalog.plugins.lombok.get().pluginId
repositories {
maven {
url = getProperty('gitea.maven.url')
}
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
vendor = JvmVendorSpec.GRAAL_VM
}
}
lombok {
version = catalog.versions.lombok
}
dependencies {
testRuntimeOnly catalog.junit.jupiter.engine
testImplementation catalog.junit.jupiter.api
testImplementation catalog.junit.jupiter.params
}
tasks.withType(Test) {
useJUnitPlatform()
}
mavenCentral()
}
lombok {
version = catalog.versions.lombok
}
dependencies {
testRuntimeOnly catalog.junit.jupiter.engine
testImplementation catalog.junit.jupiter.api
testImplementation catalog.junit.jupiter.params
}
tasks.withType(Test) {
useJUnitPlatform()
}
}
compileJava {
@@ -46,8 +58,19 @@ dependencies {
publishing {
repositories {
maven {
url = 'https://mvn.woggioni.net/'
name = "Gitea"
url = uri(getProperty('gitea.maven.url'))
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${System.getenv()["PUBLISHER_TOKEN"]}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
publications {
maven(MavenPublication) {