Skip to content

Support Ledger 1.3.7 with MC 1.21.4 #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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