aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-10-16 20:21:00 +1100
committerGitHub <noreply@github.com>2023-10-16 11:21:00 +0200
commit5ebcfe5b19f7bc30c730c69aa4a44c2168218863 (patch)
tree707e563f9c78371996f7185f292abfbc999b51b7
parent0b6d2a73b81c1f43ca03f6527d8ccc95fff50599 (diff)
downloadskyhanni-5ebcfe5b19f7bc30c730c69aa4a44c2168218863.tar.gz
skyhanni-5ebcfe5b19f7bc30c730c69aa4a44c2168218863.tar.bz2
skyhanni-5ebcfe5b19f7bc30c730c69aa4a44c2168218863.zip
Backend: Latest neu in dev env (#580)
new version of neu in dev env, with help of nea #580
-rw-r--r--build.gradle.kts34
-rw-r--r--gradle/libs.versions.toml2
-rw-r--r--gradle/wrapper/gradle-wrapper.properties2
3 files changed, 17 insertions, 21 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 320860f92..a340309d1 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -19,14 +19,15 @@ java {
}
sourceSets.main {
- output.setResourcesDir(file("$buildDir/classes/kotlin/main"))
+ output.setResourcesDir(sourceSets.main.flatMap { it.java.classesDirectory })
+ java.srcDir(layout.projectDirectory.dir("src/main/kotlin"))
+ kotlin.destinationDirectory.set(java.destinationDirectory)
}
repositories {
mavenCentral()
mavenLocal()
maven("https://repo.spongepowered.org/maven/")
- // If you don't want to log in with your real minecraft account, remove this line
maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
maven("https://jitpack.io") {
content {
@@ -37,15 +38,15 @@ repositories {
maven("https://maven.notenoughupdates.org/releases")
}
-val shadowImpl by configurations.creating {
+val shadowImpl: Configuration by configurations.creating {
configurations.implementation.get().extendsFrom(this)
}
-val shadowModImpl by configurations.creating {
+val shadowModImpl: Configuration by configurations.creating {
configurations.modImplementation.get().extendsFrom(this)
}
-val devenvMod by configurations.creating {
+val devenvMod: Configuration by configurations.creating {
isTransitive = false
isVisible = false
}
@@ -74,16 +75,13 @@ dependencies {
exclude(group = "org.jetbrains.kotlin")
}
- // If you don't want to log in with your real minecraft account, remove this line
modRuntimeOnly("me.djtheredstoner:DevAuth-forge-legacy:1.1.0")
- @Suppress("VulnerableLibrariesLocal")
- modImplementation("com.github.hannibal002:notenoughupdates:4957f0b:all") {
+ modCompileOnly("com.github.hannibal002:notenoughupdates:4957f0b:all") {
exclude(module = "unspecified")
isTransitive = false
}
- @Suppress("VulnerableLibrariesLocal")
- devenvMod("com.github.hannibal002:notenoughupdates:4957f0b:all") {
+ devenvMod("com.github.NotEnoughUpdates:NotEnoughUpdates:v2.1.1-alpha22:all") {
exclude(module = "unspecified")
isTransitive = false
}
@@ -118,22 +116,17 @@ kotlin {
loom {
launchConfigs {
"client" {
- // If you don't want mixins, remove these lines
property("mixin.debug", "true")
property("asmhelper.verbose", "true")
arg("--tweakClass", "org.spongepowered.asm.launch.MixinTweaker")
- arg("--mixin", "mixins.skyhanni.json")
- val modFiles = devenvMod
- .incoming.artifacts.resolvedArtifacts.get()
- arg("--mods", modFiles.joinToString(",") { it.file.relativeTo(file("run")).path })
+ arg("--mods", devenvMod.resolve().joinToString(",") { it.relativeTo(file("run")).path })
}
}
forge {
pack200Provider.set(dev.architectury.pack200.java.Pack200Adapter())
- // If you don't want mixins, remove this lines
mixinConfig("mixins.skyhanni.json")
}
- // If you don't want mixins, remove these lines
+ @Suppress("UnstableApiUsage")
mixin {
defaultRefmapName.set("mixins.skyhanni.refmap.json")
}
@@ -152,6 +145,10 @@ tasks.processResources {
}
}
+tasks.compileJava {
+ dependsOn(tasks.processResources)
+}
+
tasks.withType(JavaCompile::class) {
options.encoding = "UTF-8"
}
@@ -164,7 +161,6 @@ tasks.withType(Jar::class) {
this["ForceLoadAsMod"] = "true"
this["Main-Class"] = "SkyHanniInstallerFrame"
- // If you don't want mixins, remove these lines
this["TweakClass"] = "org.spongepowered.asm.launch.MixinTweaker"
this["MixinConfigs"] = "mixins.skyhanni.json"
}
@@ -204,4 +200,4 @@ compileKotlin.kotlinOptions {
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
-}
+} \ No newline at end of file
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 376f286e7..fe51b0357 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -1,6 +1,6 @@
[versions]
libautoupdate = "1.0.3"
-moulconfig = "1.2.0"
+moulconfig = "1.3.0"
[libraries]
moulconfig = { module = "org.notenoughupdates.moulconfig:MoulConfig", version.ref = "moulconfig" }
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 8049c684f..db9a6b825 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists