70 lines
1.6 KiB
Plaintext
70 lines
1.6 KiB
Plaintext
plugins {
|
|
java
|
|
id("maven-publish")
|
|
id("com.gradleup.shadow") version "9.0.0-beta4"
|
|
application
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
|
|
group = "eu.sekunity"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
from(components["java"])
|
|
|
|
groupId = project.group.toString()
|
|
artifactId = "sekunity-riot-java-api"
|
|
version = project.version.toString()
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
name = "sekunityRepositoryPrivate"
|
|
url = uri("https://repo.sekunity.eu/private")
|
|
|
|
credentials {
|
|
username = findProperty("sekunityUsername") as String? ?: ""
|
|
password = findProperty("sekunityPassword") as String? ?: ""
|
|
}
|
|
|
|
authentication {
|
|
create<BasicAuthentication>("basic")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
implementation("com.fasterxml.jackson.core:jackson-databind:2.17.2")
|
|
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2")
|
|
compileOnly("org.projectlombok:lombok:1.18.42")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.42")
|
|
implementation("org.yaml:snakeyaml:2.5")
|
|
}
|
|
|
|
application {
|
|
mainClass.set("eu.sekunity.riot.SekunityRiotAPI")
|
|
}
|
|
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
tasks.named("shadowJar") {
|
|
enabled = false
|
|
} |