34 lines
823 B
Kotlin
34 lines
823 B
Kotlin
group = "com.infendro"
|
|
version = "1.1.0"
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlin)
|
|
id("java-gradle-plugin")
|
|
id("maven-publish")
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
gradlePlugin.plugins.create("infendro").apply {
|
|
id = "com.infendro.plugin"
|
|
implementationClass = "com.infendro.plugin.InfendroPlugin"
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
url = uri("https://git.infendro.com/api/packages/Infendro/maven")
|
|
val token = findProperty("infendro.token") as String?
|
|
if (token != null) {
|
|
authentication.create("header", HttpHeaderAuthentication::class)
|
|
credentials(HttpHeaderCredentials::class) {
|
|
name = "Authorization"
|
|
value = "token $token"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|