47 lines
No EOL
1.2 KiB
Kotlin
47 lines
No EOL
1.2 KiB
Kotlin
val scrowToken = providers.gradleProperty("scrowMavenToken")
|
|
.orElse(providers.environmentVariable("SCROW_MAVEN_TOKEN")).get()
|
|
|
|
plugins {
|
|
id("java")
|
|
id("maven-publish")
|
|
id("io.freefair.lombok") version "9.2.0"
|
|
}
|
|
|
|
group = "de.kentoj"
|
|
version = "1.3.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// https://mvnrepository.com/artifact/org.jetbrains/annotations
|
|
implementation("org.jetbrains:annotations:26.0.2-1")
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("KenCommandAPI") {
|
|
groupId = project.group.toString()
|
|
artifactId = "kencommandapi-core"
|
|
version = project.version.toString()
|
|
from(components["java"])
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "scrow"
|
|
url = uri("http://forge.kentoj.de/api/packages/scrow/maven")
|
|
isAllowInsecureProtocol = true
|
|
|
|
credentials(HttpHeaderCredentials::class) {
|
|
name = "Authorization"
|
|
value = "token $scrowToken"
|
|
}
|
|
|
|
authentication {
|
|
create<HttpHeaderAuthentication>("header")
|
|
}
|
|
}
|
|
}
|
|
} |