Skip to content

Commit 559e3c4

Browse files
committed
Update Lambda API 3.1 -> 3.2
1 parent 607412e commit 559e3c4

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

build.gradle

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@ group project.modGroup
33

44
buildscript {
55
repositories {
6-
maven { url = 'https://files.minecraftforge.net/maven' }
7-
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
6+
maven { url = 'https://maven.minecraftforge.net/' }
7+
maven { url = 'https://repo.spongepowered.org/maven/' }
88
}
99

1010
dependencies {
1111
classpath 'net.minecraftforge.gradle:ForgeGradle:4.+'
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
13+
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
1314
}
1415
}
1516

1617
apply plugin: 'idea'
1718
apply plugin: 'kotlin'
1819
apply plugin: 'net.minecraftforge.gradle'
20+
apply plugin: 'com.github.johnrengelman.shadow'
1921

2022
compileJava {
2123
sourceCompatibility = targetCompatibility = '1.8'
@@ -66,7 +68,7 @@ dependencies {
6668
minecraft "net.minecraftforge:forge:$minecraftVersion-$forgeVersion"
6769

6870
// Online maven dependency coming soon
69-
implementation files("lib/lambda-3.1-api.jar")
71+
implementation files("lib/lambda-3.2-api.jar")
7072

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

136138
test {
137139
useJUnitPlatform()
140+
}
141+
142+
jar.finalizedBy('reobfJar')
143+
144+
shadowJar {
145+
archiveClassifier.set('')
146+
configurations = []
147+
relocate 'kotlin', 'com.lambda.shadow.kotlin'
148+
relocate 'kotlinx', 'com.lambda.shadow.kotlinx'
149+
finalizedBy 'reobfShadowJar'
150+
}
151+
152+
reobf {
153+
shadowJar {}
154+
jar {
155+
enabled = false
156+
}
157+
}
158+
159+
artifacts {
160+
shadowJar
138161
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ forgeVersion=14.23.5.2860
99
mappingsChannel=stable
1010
mappingsVersion=39-1.12
1111

12-
kotlinVersion=1.7.0
13-
kotlinxCoroutinesVersion=1.6.2
12+
kotlinVersion=1.7.10
13+
kotlinxCoroutinesVersion=1.6.4

src/main/resources/plugin_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"authors": [ "Constructor" ],
55
"description": "Build highways with ease",
66
"url": "https://github.com/lambda-plugins/HighwayTools",
7-
"min_api_version": "3.1",
7+
"min_api_version": "3.2",
88
"main_class": "HighwayToolsPlugin"
99
}

0 commit comments

Comments
 (0)