Skip to content

Commit c4d4b08

Browse files
committed
Move project.gradle scripts back to Groovy DSL
1 parent 1eea8ff commit c4d4b08

16 files changed

+106
-140
lines changed

build.gradle.kts

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
import java.io.ByteArrayOutputStream
22

33
plugins {
4-
id("com.parzivail.internal.pswg-submodule-dependencies")
5-
id("fabric-loom")
6-
id("io.github.juuxel.loom-vineflower")
4+
id("com.parzivail.internal.pswg-submodule-dependencies") version "0.1"
5+
id("fabric-loom") version "1.4-SNAPSHOT"
76
`maven-publish`
87
}
98

109
subprojects {
11-
if (!file("project.gradle.kts").exists()) return@subprojects
10+
if (!file("project.gradle").exists()) return@subprojects
1211

1312
apply(plugin = "com.parzivail.internal.pswg-submodule-dependencies")
1413
apply(plugin = "fabric-loom")
15-
apply(plugin = "io.github.juuxel.loom-vineflower")
1614
apply(plugin = "maven-publish")
1715
}
1816

@@ -53,7 +51,7 @@ allprojects {
5351
options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000", "-Xdiags:verbose"))
5452
}
5553

56-
if (!file("project.gradle.kts").exists()) return@allprojects
54+
if (!file("project.gradle").exists()) return@allprojects
5755

5856
repositories {
5957
mavenCentral()
@@ -97,10 +95,6 @@ allprojects {
9795
withSourcesJar()
9896
}
9997

100-
vineflower {
101-
toolVersion = "1.9.3"
102-
}
103-
10498
if (project.parent != null)
10599
base.archivesName = if (project.name.startsWith(archives_base_name)) project.name else "$archives_base_name-${project.name}"
106100
version = versionName
@@ -149,7 +143,7 @@ allprojects {
149143
}
150144
}
151145

152-
apply(from = "project.gradle.kts")
146+
apply(from = "project.gradle")
153147
}
154148

155149
tasks.assemble {

buildSrc/build.gradle.kts

-14
This file was deleted.

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

+7-7
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145145
case $MAX_FD in #(
146146
max*)
147147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
149149
MAX_FD=$( ulimit -H -n ) ||
150150
warn "Could not query maximum file descriptor limit"
151151
esac
152152
case $MAX_FD in #(
153153
'' | soft) :;; #(
154154
*)
155155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
157157
ulimit -n "$MAX_FD" ||
158158
warn "Could not set maximum file descriptor limit to $MAX_FD"
159159
esac
@@ -202,11 +202,11 @@ fi
202202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204204

205-
# Collect all arguments for the java command;
206-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
207-
# shell script including quotes and variable substitutions, so put them in
208-
# double quotes to make sure that they get re-expanded; and
209-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
210210

211211
set -- \
212212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

project.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependencies {
2+
runtimeOnly(project(path: ":projects:pswg", configuration: "namedElements"))
3+
}

project.gradle.kts

-3
This file was deleted.
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependencies {
2+
api(project(path: ":projects:pswg", configuration: "namedElements"))
3+
}

projects/addon-clonewars/project.gradle.kts

-3
This file was deleted.

projects/addon-test/project.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependencies {
2+
api(project(path: ":projects:pswg", configuration: "namedElements"))
3+
}

projects/addon-test/project.gradle.kts

-3
This file was deleted.

projects/pswg/project.gradle

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
loom {
2+
accessWidenerPath.set(file("src/main/resources/pswg.accesswidener"))
3+
}
4+
5+
dependencies {
6+
compileOnly(project(":projects:tarkin-api"))
7+
8+
// CCA Base
9+
modImplementation("dev.onyxstudios.cardinal-components-api:cardinal-components-base:${cca_version}")
10+
include("dev.onyxstudios.cardinal-components-api:cardinal-components-base:${cca_version}")
11+
// CCA Entity
12+
modImplementation("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${cca_version}")
13+
include("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${cca_version}")
14+
15+
// Cloth Config
16+
modImplementation("me.shedaniel.cloth:cloth-config-fabric:${cloth_config_version}") {
17+
exclude(group: "net.fabricmc.fabric-api")
18+
}
19+
include("me.shedaniel.cloth:cloth-config-fabric:${cloth_config_version}")
20+
21+
// Mod Menu
22+
modImplementation("com.terraformersmc:modmenu:${modmenu_version}")
23+
24+
// LambDynamicLights
25+
modCompileOnly("dev.lambdaurora:lambdynamiclights:${lambdynamiclights_version}")
26+
27+
// Roughly Enough Items
28+
modCompileOnly("me.shedaniel:RoughlyEnoughItems-api-fabric:${rei_version}")
29+
modRuntimeOnly("me.shedaniel:RoughlyEnoughItems-fabric:${rei_version}")
30+
31+
// LibZoomer
32+
modImplementation("com.parzivail.internal:LibZoomer:${libzoomer_version}")
33+
include("com.parzivail.internal:LibZoomer:${libzoomer_version}")
34+
35+
// Trinkets
36+
modImplementation("dev.emi:trinkets:${trinkets_version}")
37+
include("dev.emi:trinkets:${trinkets_version}")
38+
39+
// Gravity Changer
40+
modCompileOnly("maven.modrinth:gravity-api:${gravity_changer_version}")
41+
}

projects/pswg/project.gradle.kts

-51
This file was deleted.

projects/tarkin/project.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
dependencies {
2+
api(project(path: ":projects:pswg", configuration: "namedElements"))
3+
api(project(path: ":projects:addon-clonewars", configuration: "namedElements"))
4+
api(project(":projects:tarkin-api"))
5+
6+
// Cloth Config
7+
modImplementation("me.shedaniel.cloth:cloth-config-fabric:${cloth_config_version}") {
8+
exclude(group: "net.fabricmc.fabric-api")
9+
}
10+
include("me.shedaniel.cloth:cloth-config-fabric:${cloth_config_version}")
11+
12+
// Trinkets
13+
modImplementation("dev.emi:trinkets:${trinkets_version}")
14+
include("dev.emi:trinkets:${trinkets_version}")
15+
}

projects/tarkin/project.gradle.kts

-20
This file was deleted.

projects/toolkit/project.gradle

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
repositories {
2+
maven {
3+
url = "https://maven.wispforest.io/"
4+
name = "WispForest"
5+
}
6+
}
7+
8+
dependencies {
9+
api(project(path: ":projects:pswg", configuration: "namedElements"))
10+
11+
modImplementation("org.objenesis:objenesis:3.2")
12+
include("org.objenesis:objenesis:3.2")
13+
14+
modImplementation("io.github.kostaskougios:cloning:1.10.3")
15+
include("io.github.kostaskougios:cloning:1.10.3")
16+
17+
modImplementation("io.github.spair:imgui-java-binding:1.86.11")
18+
include("io.github.spair:imgui-java-binding:1.86.11")
19+
modImplementation("io.github.spair:imgui-java-lwjgl3:1.86.11")
20+
include("io.github.spair:imgui-java-lwjgl3:1.86.11")
21+
modImplementation("io.github.spair:imgui-java-natives-windows-ft:1.86.11")
22+
include("io.github.spair:imgui-java-natives-windows-ft:1.86.11")
23+
24+
modImplementation("io.wispforest:worldmesher:0.4.2+1.20")
25+
include("io.wispforest:worldmesher:0.4.2+1.20")
26+
// "modImplementation"(files("/home/cnewman/IdeaProjects/worldmesher/build/libs/worldmesher-0.2.13+build.11+1.19.jar"))
27+
// "include"(files("/home/cnewman/IdeaProjects/worldmesher/build/libs/worldmesher-0.2.13+build.11+1.19.jar"))
28+
}

projects/toolkit/project.gradle.kts

-27
This file was deleted.

0 commit comments

Comments
 (0)