mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-01 23:47:50 +00:00
apply common configurations automatically
This commit is contained in:
parent
67d3af71bf
commit
fb26b02ad1
@ -1,3 +1,6 @@
|
||||
import com.dfsek.terra.configureCompilation
|
||||
import com.dfsek.terra.configureDependencies
|
||||
import com.dfsek.terra.configurePublishing
|
||||
import com.dfsek.terra.getGitHash
|
||||
|
||||
val versionObj = Version("6", "0", "0", true)
|
||||
@ -6,10 +9,15 @@ allprojects {
|
||||
version = versionObj
|
||||
group = "com.dfsek.terra"
|
||||
|
||||
configureDependencies()
|
||||
configureCompilation()
|
||||
configurePublishing()
|
||||
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.isFork = true
|
||||
options.isIncremental = true
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
useJUnitPlatform()
|
||||
|
||||
@ -21,7 +29,6 @@ allprojects {
|
||||
reports.html.isEnabled = false
|
||||
reports.junitXml.isEnabled = false
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Version class that does version stuff.
|
||||
|
@ -4,20 +4,13 @@ import org.gradle.api.Project
|
||||
import java.io.ByteArrayOutputStream
|
||||
|
||||
fun Project.configureCommon() {
|
||||
configureDependencies()
|
||||
configureCompilation()
|
||||
configureDistribution()
|
||||
configurePublishing()
|
||||
|
||||
version = rootProject.version
|
||||
}
|
||||
|
||||
fun Project.configureAddon() {
|
||||
configureDependencies()
|
||||
configureCompilation()
|
||||
configurePublishing()
|
||||
|
||||
version = rootProject.version
|
||||
}
|
||||
|
||||
fun Project.getGitHash(): String {
|
||||
|
@ -1,13 +1,3 @@
|
||||
import com.dfsek.terra.configureCompilation
|
||||
import com.dfsek.terra.configureDependencies
|
||||
import com.dfsek.terra.configurePublishing
|
||||
|
||||
configureCompilation()
|
||||
configureDependencies()
|
||||
configurePublishing()
|
||||
|
||||
|
||||
|
||||
dependencies {
|
||||
"shadedApi"("com.dfsek:Paralithic:0.4.0")
|
||||
|
||||
|
@ -1,11 +1,3 @@
|
||||
import com.dfsek.terra.configureCompilation
|
||||
import com.dfsek.terra.configureDependencies
|
||||
|
||||
configureCompilation()
|
||||
configureDependencies()
|
||||
|
||||
|
||||
|
||||
dependencies {
|
||||
"shadedApi"(project(":common:api"))
|
||||
"shadedApi"(project(":common:loader:config"))
|
||||
|
@ -1,11 +1,3 @@
|
||||
import com.dfsek.terra.configureCompilation
|
||||
import com.dfsek.terra.configureDependencies
|
||||
|
||||
configureCompilation()
|
||||
configureDependencies()
|
||||
|
||||
|
||||
|
||||
dependencies {
|
||||
"shadedApi"(project(":common:api"))
|
||||
}
|
||||
|
@ -1,11 +1,3 @@
|
||||
import com.dfsek.terra.configureCompilation
|
||||
import com.dfsek.terra.configureDependencies
|
||||
|
||||
configureCompilation()
|
||||
configureDependencies()
|
||||
|
||||
|
||||
|
||||
dependencies {
|
||||
"shadedApi"(project(":common:api"))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user