Skip to content

Commit

Permalink
Update Lambda API 3.1 -> 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Avanatiker committed Aug 1, 2022
1 parent 607412e commit 559e3c4
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
29 changes: 26 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ group project.modGroup

buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
maven { url = 'https://maven.minecraftforge.net/' }
maven { url = 'https://repo.spongepowered.org/maven/' }
}

dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:4.+'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
}
}

apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'com.github.johnrengelman.shadow'

compileJava {
sourceCompatibility = targetCompatibility = '1.8'
Expand Down Expand Up @@ -66,7 +68,7 @@ dependencies {
minecraft "net.minecraftforge:forge:$minecraftVersion-$forgeVersion"

// Online maven dependency coming soon
implementation files("lib/lambda-3.1-api.jar")
implementation files("lib/lambda-3.2-api.jar")

implementation('org.spongepowered:mixin:0.8.3') {
exclude module: 'commons-io'
Expand Down Expand Up @@ -135,4 +137,25 @@ processResources {

test {
useJUnitPlatform()
}

jar.finalizedBy('reobfJar')

shadowJar {
archiveClassifier.set('')
configurations = []
relocate 'kotlin', 'com.lambda.shadow.kotlin'
relocate 'kotlinx', 'com.lambda.shadow.kotlinx'
finalizedBy 'reobfShadowJar'
}

reobf {
shadowJar {}
jar {
enabled = false
}
}

artifacts {
shadowJar
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ forgeVersion=14.23.5.2860
mappingsChannel=stable
mappingsVersion=39-1.12

kotlinVersion=1.7.0
kotlinxCoroutinesVersion=1.6.2
kotlinVersion=1.7.10
kotlinxCoroutinesVersion=1.6.4
Binary file not shown.
Binary file renamed lib/lambda-3.1-api.jar → lib/lambda-3.2-api.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/resources/plugin_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"authors": [ "Constructor" ],
"description": "Build highways with ease",
"url": "https://github.com/lambda-plugins/HighwayTools",
"min_api_version": "3.1",
"min_api_version": "3.2",
"main_class": "HighwayToolsPlugin"
}

0 comments on commit 559e3c4

Please sign in to comment.