aboutsummaryrefslogtreecommitdiff
path: root/mod/build.gradle
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-01-13 19:42:24 +0100
committersyeyoung <cyoung06@naver.com>2023-01-14 17:32:41 +0900
commit47888d08ecd161b7c4208d281cbbcb4cf1d0fde8 (patch)
tree298964d76156a50d5cd7c30b9864346d8d4f865d /mod/build.gradle
parentdf33e015ade0be0df3d9ab1e242606dbdc7229ea (diff)
downloadSkyblock-Dungeons-Guide-47888d08ecd161b7c4208d281cbbcb4cf1d0fde8.tar.gz
Skyblock-Dungeons-Guide-47888d08ecd161b7c4208d281cbbcb4cf1d0fde8.tar.bz2
Skyblock-Dungeons-Guide-47888d08ecd161b7c4208d281cbbcb4cf1d0fde8.zip
Allow testing with NEU
Diffstat (limited to 'mod/build.gradle')
-rw-r--r--mod/build.gradle85
1 files changed, 51 insertions, 34 deletions
diff --git a/mod/build.gradle b/mod/build.gradle
index 0d7138fe..541f722b 100644
--- a/mod/build.gradle
+++ b/mod/build.gradle
@@ -14,38 +14,6 @@ java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
}
-loom {
- launchConfigs {
- client {
- // probably will have to my own mixin tweaker, due to dungeonsguide's weird dynamic loading stuff
-// property("mixin.debug", "true")
-// property("asmhelper.verbose", "true")
-// arg("--mixin", "mixins.examplemod.json")
-
- }
- }
- runConfigs {
- named("client") {
- ideConfigGenerated(true)
- vmArgs.remove("-XstartOnFirstThread")
- }
- }
- runs {
- client {
- runDir = '../runtime'
- property('devauth.enabled','true')
- property("fml.coreMods.load", "kr.syeyoung.dungeonsguide.launcher.coremod.DGTweaker")
- property('dg.loader', 'devenv')
- client()
- vmArgs.remove("-XstartOnFirstThread")
- }
- }
- forge {
- pack200Provider.set(new dev.architectury.pack200.java.Pack200Adapter())
- }
-}
-
-
sourceSets.main {
output.setResourcesDir(file("$buildDir/classes/java/main"))
}
@@ -53,14 +21,26 @@ sourceSets.main {
repositories {
mavenCentral()
- maven { url "https://jitpack.io" }
- maven {url "https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1"}
+ maven {
+ url "https://jitpack.io/"
+ content {
+ includeGroupByRegex("(com|io)\\.github\\..+")
+ }
+ }
+ maven { url "https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1" }
}
configurations {
implementation.extendsFrom shadowImpl
}
+def devenvMod = configurations.create("devenvMod") {
+ setTransitive(false)
+ setVisible(false)
+}
+
+def testWithNeu = project.findProperty("dg.testwithneu") == "true"
+printf("TestWithNeu: %s", testWithNeu)
dependencies {
minecraft("com.mojang:minecraft:1.8.9")
@@ -83,8 +63,45 @@ dependencies {
compileOnly project(path: ":loader")
runtimeOnly project(path: ":loader")
+
+ if (testWithNeu) {
+ runtimeOnly 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.22'
+ add("devenvMod", 'com.github.notenoughupdates:notenoughupdates:e603cf2:all')
+ }
}
+loom {
+ launchConfigs {
+ client {
+ // probably will have to my own mixin tweaker, due to dungeonsguide's weird dynamic loading stuff
+// property("mixin.debug", "true")
+// property("asmhelper.verbose", "true")
+// arg("--mixin", "mixins.examplemod.json")
+ arg("--mods", devenvMod.files.collect { file("../runtime").relativePath(it) }.join(","))
+ }
+ }
+ runConfigs {
+ named("client") {
+ ideConfigGenerated(true)
+ vmArgs.remove("-XstartOnFirstThread")
+ }
+ }
+ runs {
+ client {
+ runDir = '../runtime'
+ property('devauth.enabled', 'true')
+ property("fml.coreMods.load", "kr.syeyoung.dungeonsguide.launcher.coremod.DGTweaker")
+ property('dg.loader', 'devenv')
+ client()
+ vmArgs.remove("-XstartOnFirstThread")
+ }
+ }
+ forge {
+ pack200Provider.set(new dev.architectury.pack200.java.Pack200Adapter())
+ }
+}
+
+
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}