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