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.
33 lines
767 B
Groovy
33 lines
767 B
Groovy
gradle.projectsEvaluated {
|
|
configure(subprojects.findAll { it.buildFile.exists() }) { subproj ->
|
|
apply from: "$rootDir/gradle/kotlin.gradle"
|
|
|
|
sourceSets {
|
|
main {
|
|
kotlin {
|
|
srcDirs += "src"
|
|
}
|
|
}
|
|
|
|
test {
|
|
kotlin {
|
|
srcDirs += "test"
|
|
}
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation group: 'com.google.guava', name: 'guava', version: guavaVersion
|
|
}
|
|
}
|
|
} |