mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-02 16:49:12 +00:00
a53929a9a8
Replaces the old Gradle plugin with plain Gradle buildscripts. Also cleans-up the current Gradle extensions and re-adds detekt, along with JUnit 5 support to all modules.
24 lines
567 B
Groovy
24 lines
567 B
Groovy
def detektAggregateReport = "$rootDir/reports/detekt-report.xml"
|
|
|
|
detekt {
|
|
version = detektVersion
|
|
|
|
defaultProfile {
|
|
output = file("$buildDir/reports")
|
|
outputName = "detekt-report"
|
|
config = file("$rootDir/gradle/config/detekt.yml")
|
|
parallel = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
detekt group: 'io.gitlab.arturbosch.detekt', name: 'detekt-formatting', version: detektVersion
|
|
}
|
|
|
|
sonarqube {
|
|
properties {
|
|
property "sonar.kotlin.detekt.reportPaths", detektAggregateReport
|
|
}
|
|
}
|
|
|
|
tasks["sonarqube"].dependsOn(detektCheck) |