aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-26 18:04:45 +0200
committerLinnea Gräf <nea@nea.moe>2024-04-26 18:15:54 +0200
commit7e0151569477df63601be50c82177ecfd21e5deb (patch)
treef30e5440a1855de92d2b424ef79339d3d6cf5f34 /build.gradle.kts
parent041da7c7d179df01c4048a81ddf40a9f13c3ce77 (diff)
downloadFirmament-7e0151569477df63601be50c82177ecfd21e5deb.tar.gz
Firmament-7e0151569477df63601be50c82177ecfd21e5deb.tar.bz2
Firmament-7e0151569477df63601be50c82177ecfd21e5deb.zip
Bump to 1.20.5
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts33
1 files changed, 21 insertions, 12 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 700db54..311da61 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -15,8 +15,8 @@ plugins {
kotlin("jvm") version "1.9.23"
kotlin("plugin.serialization") version "1.9.23"
// id("com.bnorm.power.kotlin-power-assert") version "0.13.0"
- id("dev.architectury.loom") version "1.5.389"
- id("com.github.johnrengelman.shadow") version "7.1.2"
+ id("dev.architectury.loom") version "1.6.394"
+ id("com.github.johnrengelman.shadow") version "8.1.1"
id("moe.nea.licenseextractificator")
// id("io.github.juuxel.loom-vineflower") version "1.11.0"
id("io.shcm.shsupercm.fabric.fletchingtable") version "1.5"
@@ -25,17 +25,17 @@ plugins {
java {
withSourcesJar()
toolchain {
- languageVersion.set(JavaLanguageVersion.of(17))
+ languageVersion.set(JavaLanguageVersion.of(21))
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
- jvmTarget = "17"
+ jvmTarget = "21"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
- jvmTarget = "17"
+ jvmTarget = "21"
}
repositories {
@@ -47,11 +47,6 @@ repositories {
includeGroup("maven.modrinth")
}
}
- maven("https://jitpack.io/") {
- content {
- includeGroupByRegex("(com|io)\\.github\\..+")
- }
- }
maven("https://repo.sleeping.town") {
content {
includeGroup("com.unascribed")
@@ -71,6 +66,13 @@ repositories {
maven("https://server.bbkr.space/artifactory/libs-release")
maven("https://repo.nea.moe/releases")
maven("https://maven.notenoughupdates.org/releases")
+ maven("https://repo.nea.moe/mirror")
+ maven("https://jitpack.io/") {
+ content {
+ includeGroupByRegex("(com|io)\\.github\\..+")
+ excludeModule("io.github.cottonmc", "LibGui")
+ }
+ }
}
kotlin {
@@ -132,7 +134,8 @@ dependencies {
nonModImplentation(libs.nealisp)
shadowMe(libs.nealisp)
- modApi(libs.fabric.api)
+ modCompileOnly(libs.fabric.api)
+ modRuntimeOnly(libs.fabric.api.deprecated)
modApi(libs.architectury)
modCompileOnly(libs.jarvis.api)
include(libs.jarvis.fabric)
@@ -187,6 +190,12 @@ loom {
property("firmament.debug", "true")
property("mixin.debug", "true")
+ parseEnvFile(file(".env")).forEach { (t, u) ->
+ environmentVariable(t, u)
+ }
+ parseEnvFile(file(".properties")).forEach{ (t, u) ->
+ property(t,u)
+ }
vmArg("-ea")
vmArg("-XX:+AllowEnhancedClassRedefinition")
vmArg("-XX:HotswapAgent=external")
@@ -197,7 +206,7 @@ loom {
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
- options.release.set(17)
+ options.release.set(21)
}
tasks.jar {