initial commit
This commit is contained in:
37
build.gradle.kts
Normal file
37
build.gradle.kts
Normal file
@@ -0,0 +1,37 @@
|
||||
group = "com.infendro"
|
||||
version = "1.0.0"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin)
|
||||
id("java-gradle-plugin")
|
||||
id("maven-publish")
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
create("secret").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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user