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