Files
bytes.kt/build.gradle.kts
Infendro 33d118430d
All checks were successful
/ publish (push) Successful in 2m35s
bump version to 1.1.0
2025-07-24 20:30:16 +02:00

49 lines
924 B
Kotlin

group = "com.infendro"
version = "1.1.0"
repositories {
mavenCentral()
}
plugins {
alias(libs.plugins.multiplatform)
id("maven-publish")
}
kotlin {
jvm()
js {
nodejs()
}
linuxX64()
}
publishing {
repositories {
maven {
url = uri("https://git.infendro.com/api/packages/Infendro/maven")
authentication.create("header", HttpHeaderAuthentication::class)
credentials(HttpHeaderCredentials::class) {
val token = secret("git.token") ?: throw GradleException()
name = "Authorization"
value = "token $token"
}
}
}
}
fun secret(
key: String,
): String? {
val property = key
val environment = key
.uppercase()
.replace(".", "__")
val prop = properties[property] as String?
val env = System.getenv(environment)
return prop ?: env
}