mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-06-30 23:16:47 +00:00
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
preRelease(true)
|
|
|
|
versionProjects(":common:api", version("6.6.5"))
|
|
versionProjects(":common:implementation", version("6.6.5"))
|
|
versionProjects(":platforms", version("6.6.5"))
|
|
|
|
|
|
allprojects {
|
|
group = "com.dfsek.terra"
|
|
|
|
configureCompilation()
|
|
configureDependencies()
|
|
configurePublishing()
|
|
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
options.isFork = true
|
|
options.isIncremental = true
|
|
options.release.set(21)
|
|
}
|
|
|
|
tasks.withType<Test>().configureEach {
|
|
useJUnitPlatform()
|
|
|
|
maxHeapSize = "2G"
|
|
ignoreFailures = false
|
|
failFast = true
|
|
maxParallelForks = (Runtime.getRuntime().availableProcessors() - 1).takeIf { it > 0 } ?: 1
|
|
|
|
reports.html.required.set(false)
|
|
reports.junitXml.required.set(false)
|
|
}
|
|
|
|
tasks.withType<Copy>().configureEach {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
|
|
tasks.withType<Jar>().configureEach {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
}
|
|
|
|
afterEvaluate {
|
|
forImmediateSubProjects(":platforms") {
|
|
configureDistribution()
|
|
}
|
|
project(":platforms:bukkit:common").configureDistribution()
|
|
project(":platforms:minestom:example").configureDistribution()
|
|
forSubProjects(":common:addons") {
|
|
apply(plugin = "com.gradleup.shadow")
|
|
|
|
tasks.named("build") {
|
|
finalizedBy(tasks.named("shadowJar"))
|
|
}
|
|
|
|
dependencies {
|
|
"compileOnly"(project(":common:api"))
|
|
"testImplementation"(project(":common:api"))
|
|
}
|
|
}
|
|
}
|