Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
id 'fabric-loom' version '1.6.+'
id 'fabric-loom' version '1.9-SNAPSHOT'
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version "1.8.22"
id 'org.jetbrains.kotlin.jvm' version "2.0.0"
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21

archivesBaseName = project.archives_base_name
version = project.mod_version
Expand All @@ -28,9 +28,11 @@ dependencies {
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Yes this has to be capitalised
modImplementation "com.github.quiltservertools:Ledger:1.3.0+local"
// To publish Ledger on mavenLocal, see this page:
// https://www.quiltservertools.net/Ledger/latest/api/extension_development/
modImplementation "com.github.quiltservertools:Ledger:1.3.7+local"

modImplementation "net.fabricmc:fabric-language-kotlin:1.9.4+kotlin.1.8.21"
modImplementation "net.fabricmc:fabric-language-kotlin:1.11.0+kotlin.2.0.0"

implementation(include("com.zaxxer:HikariCP:5.0.1"))

Expand Down Expand Up @@ -58,7 +60,15 @@ processResources {
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"

it.options.release = 17
it.options.release = 21
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions.jvmTarget = "21"
}

kotlin {
jvmToolchain(21)
}

java {
Expand Down