56 lines
1.2 KiB
Groovy
56 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group = 'dev.coph'
|
|
version = '0.0.3'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'io.netty:netty-all:4.2.14.Final'
|
|
implementation 'tools.jackson.core:jackson-databind:3.1.3'
|
|
|
|
testImplementation platform('org.junit:junit-bom:5.11.4')
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(26)
|
|
}
|
|
sourceCompatibility = JavaVersion.VERSION_26
|
|
targetCompatibility = JavaVersion.VERSION_26
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
showStandardStreams = false
|
|
}
|
|
}
|
|
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
from components.java
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "NexusWeb"
|
|
url = System.getenv("MAVEN_REPO_URL")
|
|
credentials {
|
|
username = System.getenv("MAVEN_REPO_USER")
|
|
password = System.getenv("MAVEN_REPO_PASS")
|
|
}
|
|
}
|
|
}
|
|
}
|