forked from StarOpenSource/Engine
57 lines
1.5 KiB
Groovy
57 lines
1.5 KiB
Groovy
plugins {
|
|
id 'com.github.johnrengelman.shadow' version "${pluginShadow}"
|
|
id 'java'
|
|
id 'application'
|
|
id "io.freefair.lombok" version "${pluginLombok}"
|
|
}
|
|
|
|
group = project.group
|
|
version = project.versioningVersion + "-" + project.versioningType + project.versioningTyperelease + project.versioningFork
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// Lombok
|
|
compileOnly 'org.projectlombok:lombok:' + project.dependencyLombok
|
|
annotationProcessor 'org.projectlombok:lombok:' + project.dependencyLombok
|
|
|
|
// JetBrains annotations
|
|
compileOnly 'org.jetbrains:annotations:' + project.dependencyJetbrainsAnnotations
|
|
|
|
// Project
|
|
implementation project(":base")
|
|
}
|
|
|
|
javadoc.options {
|
|
setMemberLevel(JavadocMemberLevel.PUBLIC)
|
|
setOverview("src/main/javadoc/overview.html")
|
|
setLocale("en_US");
|
|
setJFlags([
|
|
// Force Javadoc to use English translations
|
|
"-Duser.language=en_US"
|
|
])
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes(
|
|
'Main-Class': 'de.staropensource.sosengine.testapp.Main'
|
|
)
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass.set("de.staropensource.sosengine.testapp.Main")
|
|
applicationDefaultJvmArgs = [
|
|
// Set log level to DIAGNOSTIC
|
|
"-Dsosengine.base.loggerLevel=diagnostic",
|
|
|
|
// Force writing to standard output
|
|
"-Dsosengine.base.loggerForceStandardOutput=true",
|
|
|
|
// Force Jansi to write escape sequences
|
|
"-Djansi.mode=force",
|
|
]
|
|
}
|