35 lines
776 B
Groovy
35 lines
776 B
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
ext {
|
|
version = "1.5"
|
|
}
|
|
|
|
group = 'io.github.p2vman'
|
|
version = project.findProperty("version")
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly "com.google.code.gson:gson:2.8.9"
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.30'
|
|
compileOnly 'org.projectlombok:lombok:1.18.30'
|
|
//implementation 'com.ibm.async:asyncutil:0.1.0'
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
def targetJavaVersion = 8
|
|
java {
|
|
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
|
|
sourceCompatibility = javaVersion
|
|
targetCompatibility = javaVersion
|
|
if (JavaVersion.current() < javaVersion) {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
|
|
}
|
|
} |