diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-09 16:11:01 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-09 16:11:01 +0200 |
commit | c78b1fb14719c820766facf470ca51dde44ec6cc (patch) | |
tree | 31dab05121c7bb150493dcde32b25dca0d95ecd8 /build.gradle.kts | |
parent | 7b60acb67b0e00a59e9042dd7d9ae9fd0586a437 (diff) | |
download | veloxcaelo-c78b1fb14719c820766facf470ca51dde44ec6cc.tar.gz veloxcaelo-c78b1fb14719c820766facf470ca51dde44ec6cc.tar.bz2 veloxcaelo-c78b1fb14719c820766facf470ca51dde44ec6cc.zip |
Add README1.0.0
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index a5c7bb7..48d55d4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,6 +16,18 @@ repositories { maven("https://repo.polyfrost.cc/releases") maven("https://maven.notenoughupdates.org/releases/") mavenCentral() + maven("https://nea.moe/redir-repo") { + metadataSources { artifact() } + content { + includeGroup("optifine") + } + } +} + +val optifineConfig by configurations.creating { +} +configurations.compileOnly { + extendsFrom(optifineConfig) } unimined.minecraft { @@ -28,10 +40,16 @@ unimined.minecraft { loader("11.15.1.2318-1.8.9") mixinConfig("veloxcaelo.mixins.json") } + mods { + remap(optifineConfig) { + namespace("official") + } + } runs { this.config("client") { this.args.addAll( listOf( + "--mods", optifineConfig.resolve().joinToString(",") { it.toRelativeString(this.workingDir) }, "--tweakClass", "org.spongepowered.asm.launch.MixinTweaker", "--tweakClass", "io.github.notenoughupdates.moulconfig.tweaker.DevelopmentResourceTweaker", ) @@ -45,20 +63,6 @@ unimined.minecraft { } -val downloadOptifine by tasks.creating { - val outputFile = layout.buildDirectory.file("download/optifine.jar") - outputs.file(outputFile) - doLast { - outputFile.get().asFile.parentFile.mkdirs() - uri("https://optifine.net/download?f=preview_OptiFine_1.8.9_HD_U_M6_pre2.jar") - .toURL() - .openStream().use { input -> - outputFile.get().asFile.outputStream().use { output -> - input.copyTo(output) - } - } - } -} val shadowModImpl by configurations.creating { configurations.named("modImplementation").get().extendsFrom(this) } @@ -69,8 +73,8 @@ val shadowImpl by configurations.creating { dependencies { testImplementation("org.jetbrains.kotlin:kotlin-test") shadowImpl("org.spongepowered:mixin:0.7.11-SNAPSHOT") - shadowModImpl("org.notenoughupdates.moulconfig:legacy:3.0.0-beta.5") - compileOnly(project.files(downloadOptifine)) + shadowModImpl("org.notenoughupdates.moulconfig:legacy:3.0.0-beta.7") + optifineConfig("optifine:optifine:1.8.9") compileOnly("org.jetbrains:annotations:24.1.0") } |