61 lines
1.4 KiB
Groovy
61 lines
1.4 KiB
Groovy
plugins {
|
|
id 'application'
|
|
id 'jacoco-report-aggregation'
|
|
alias(versions.plugins.asciidoctorConvention)
|
|
alias(versions.plugins.javaConvention)
|
|
alias(versions.plugins.sonarqube)
|
|
}
|
|
|
|
dependencies {
|
|
implementation versions.slf4j
|
|
implementation versions.commonscli
|
|
testImplementation versions.junit
|
|
implementation versions.bundles.logback
|
|
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.12.0'
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
application(MavenPublication) {
|
|
groupId = group
|
|
from components.java
|
|
}
|
|
}
|
|
}
|
|
|
|
final BUILD_DATE = new Date().format('dd.MM.yyyy').toString()
|
|
|
|
final MAIN_CLASS_NAME = 'de.thpeetz.generations.App'
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
application {
|
|
mainClass = MAIN_CLASS_NAME
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Implementation-Title': 'Generations Application', 'Implementation-Version': archiveVersion, 'Main-Class': MAIN_CLASS_NAME
|
|
}
|
|
}
|
|
|
|
spotbugs {
|
|
ignoreFailures = true
|
|
}
|
|
|
|
sonarqube {
|
|
properties {
|
|
property "sonar.projectKey", "tpeetz_generations_AYB--ei2Uw4Nr911AV3u"
|
|
property "sonar.qualitygate.wait", true
|
|
property "sonar.host.url", "https://sonar.thpeetz.de"
|
|
property "sonar.login", "92ff8e7c02747a905df2c49de874ce3db001bd37"
|
|
property "sonar.sourceEncoding", "UTF-8"
|
|
}
|
|
}
|
|
|
|
wrapper {
|
|
gradleVersion = "7.5"
|
|
}
|