2022-02-12 11:16:24 +00:00
|
|
|
plugins {
|
|
|
|
java
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "ru.erius"
|
2022-02-18 18:44:39 +00:00
|
|
|
version = "1.1"
|
2022-02-12 11:16:24 +00:00
|
|
|
val mainClass = "$group.${name.toLowerCase()}.$name"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
|
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
|
2022-02-18 18:44:39 +00:00
|
|
|
compileOnly("org.projectlombok:lombok:1.18.22")
|
|
|
|
annotationProcessor("org.projectlombok:lombok:1.18.22")
|
2022-02-12 11:16:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.getByName<Test>("test") {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.compileJava {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
2022-02-20 14:12:58 +00:00
|
|
|
tasks.javadoc {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
2022-02-12 11:16:24 +00:00
|
|
|
tasks.jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
"Manifest-Version" to "1.0",
|
|
|
|
"Main-Class" to mainClass
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|