cedict-parser/build.gradle.kts

65 lines
1.4 KiB
Plaintext
Raw Normal View History

2024-09-15 11:51:15 +00:00
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.detekt)
`maven-publish`
}
group = "com.marvinelsen"
2024-10-07 19:00:13 +00:00
version = "3.0.0"
2024-09-15 11:51:15 +00:00
repositories {
mavenCentral()
2024-09-20 11:46:01 +00:00
maven {
url = uri("https://gitea.marvinelsen.com/api/packages/marvinelsen/maven")
}
2024-09-15 11:51:15 +00:00
}
dependencies {
detektPlugins(libs.detekt.formatting)
implementation(libs.chinese.transliteration)
2024-09-20 11:46:01 +00:00
2024-09-15 11:51:15 +00:00
testImplementation(libs.kotest.core)
testImplementation(libs.kotest.assertions)
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group as String
artifactId = "cedict-parser"
version = project.version as String
from(components["java"])
}
}
repositories {
maven {
name = "Gitea"
url = uri("https://gitea.marvinelsen.com/api/packages/marvinelsen/maven")
credentials(HttpHeaderCredentials::class) {
name = "Authorization"
value = "token ${System.getenv("GITEA_TOKEN")}"
}
isAllowInsecureProtocol = true
authentication {
val header by registering(HttpHeaderAuthentication::class)
}
}
}
}
detekt {
buildUponDefaultConfig = true
allRules = false
autoCorrect = true
}