48 lines
949 B
Kotlin
48 lines
949 B
Kotlin
plugins {
|
|
kotlin("jvm") version "2.3.21"
|
|
`maven-publish`
|
|
}
|
|
|
|
group = "ru.thiflict.binaryutils"
|
|
version = "1.0.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
groupId = "ru.thiflict.binaryutils"
|
|
artifactId = "binary-utils"
|
|
version = "1.0.0"
|
|
|
|
from(components["java"])
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "Gitea"
|
|
url = uri("https://git.ds1.thiflict.ru/api/packages/thiflict/maven")
|
|
credentials {
|
|
username = System.getenv("GITEA_USERNAME")
|
|
password = System.getenv("GITEA_PASSWORD")
|
|
}
|
|
authentication {
|
|
create<BasicAuthentication>("basic")
|
|
}
|
|
}
|
|
}
|
|
} |