chore(gradle): add some section headers
I think this is a sign that this file is big enough to split up, but that'll make mess of the code review so we'll do that after.
@@ -108,6 +108,10 @@ configurations {
}
}
+/****************************************
+ * Run Targets
+ */
+
// Used for all game configs.
fun JavaExec.commonConfigure() {
group = "terasology run"
@@ -160,6 +164,10 @@ tasks.register<JavaExec>("permissiveNatives") {
systemProperty("java.library.path", rootProject.file(dirNatives + "/" + nativeSubdirectoryName()))
}
+/******************************************
+ * Headless server
+ */
+
apply(from="server.build.gradle")
// TODO: Seems to always be up to date so no modules get copied
@@ -191,6 +199,13 @@ tasks.register<JavaExec>("server") {
args("-headless", "-homedir=$localServerDataPath")
}
+
+/*********************************
+ * Distribution
+ *
+ * See also publish.gradle, included near the top.
+ */
+
// Preps a version file to bundle with PC dists. This eventually goes into the root of a zip file
val createVersionFile = tasks.register<Copy>("createVersionFile") {
inputs.property("dateTime", startDateTimeString)
@@ -282,6 +297,11 @@ distributions {
}
}
+
+/********************************
+ * Eclipse Integration
+ */
+
tasks.register<Copy>("copyEclipseLauncher") {
from("$rootDir/config/eclipse")
into(projectDir)
