Skip to content

Commit 88bc8f1

Browse files
committed
Merge upstream buildscript changes
1 parent 4895ed7 commit 88bc8f1

File tree

6 files changed

+34
-25
lines changed

6 files changed

+34
-25
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*.mapping text eol=lf
1+
* text eol=lf

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
distribution: adopt
1212
java-version: 17
1313
- uses: gradle/wrapper-validation-action@v1
14-
- run: ./gradlew build checkMappings --stacktrace
14+
- run: ./gradlew build checkMappings --stacktrace --warning-mode fail
1515
- name: Upload artifacts
1616
uses: actions/upload-artifact@v2
1717
with:

HEADER

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
This file is free for everyone to use under the Creative Commons Zero license.
1+
/*
2+
* This file is free for everyone to use under the Creative Commons Zero license.
3+
*/
4+

build.gradle

+20-16
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ buildscript {
1414
dependencies {
1515
classpath "cuchaz:enigma-cli:${project.enigma_version}"
1616
classpath "com.github.Chocohead:Stitch:8befa96d4b"
17-
classpath "commons-io:commons-io:2.8.0"
17+
classpath "commons-io:commons-io:2.11.0"
1818
classpath "de.undercouch:gradle-download-task:4.1.1"
19-
classpath("com.github.js6pak:tiny-remapper:c389241") {
20-
transitive = false
21-
}
19+
classpath "net.fabricmc:tiny-remapper:${project.tiny_remapper_version}"
2220
classpath "net.fabricmc.unpick:unpick:${project.unpick_version}"
2321
classpath "net.fabricmc.unpick:unpick-format-utils:${project.unpick_version}"
2422
classpath "net.fabricmc:name-proposal:${project.name_proposal_version}"
@@ -27,9 +25,9 @@ buildscript {
2725

2826
plugins {
2927
id "java" // for constants, packages, javadoc
30-
id "de.undercouch.download" version "4.1.1"
28+
id "de.undercouch.download" version "4.1.2"
3129
id "maven-publish"
32-
id "org.cadixdev.licenser" version "0.6.1"
30+
id "com.diffplug.spotless" version "6.4.2"
3331
id "net.fabricmc.filament" version "0.3.0"
3432
}
3533

@@ -67,17 +65,23 @@ repositories {
6765
}
6866

6967
configurations {
70-
enigmaRuntime
68+
asm
69+
enigmaRuntime {
70+
extendsFrom asm
71+
}
7172
javadocClasspath
7273
decompileClasspath
7374
mappingPoetJar {
7475
transitive = false
7576
}
7677
mappingPoet {
7778
extendsFrom mappingPoetJar
79+
extendsFrom asm
7880
transitive = true
7981
}
80-
unpick
82+
unpick {
83+
extendsFrom asm
84+
}
8185
}
8286

8387
def unpickMetaFile = file("unpick-definitions/unpick.json")
@@ -91,11 +95,10 @@ dependencies {
9195
decompileClasspath "net.fabricmc:cfr:${project.cfr_version}"
9296
mappingPoetJar "net.fabricmc:mappingpoet:${project.mappingpoet_version}"
9397
unpick "net.fabricmc.unpick:unpick-cli:${project.unpick_version}"
94-
// Update asm to allow running on JDK 18
95-
unpick "org.ow2.asm:asm:9.2"
96-
unpick "org.ow2.asm:asm-tree:9.2"
97-
unpick "org.ow2.asm:asm-commons:9.2"
98-
unpick "org.ow2.asm:asm-util:9.2"
98+
asm "org.ow2.asm:asm:${project.asm_version}"
99+
asm "org.ow2.asm:asm-tree:${project.asm_version}"
100+
asm "org.ow2.asm:asm-commons:${project.asm_version}"
101+
asm "org.ow2.asm:asm-util:${project.asm_version}"
99102
}
100103

101104
def setupGroup = "jar setup"
@@ -581,9 +584,10 @@ sourceSets {
581584
packageDocs // package info files
582585
}
583586

584-
license {
585-
header file("HEADER")
586-
include "**/*.java"
587+
spotless {
588+
java {
589+
licenseHeaderFile(rootProject.file("HEADER"))
590+
}
587591
}
588592

589593
task constantsJar(type: Jar) {

gradle.properties

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Done to increase the memory available to gradle.
22
org.gradle.jvmargs=-Xmx1G
33

4-
enigma_version=2.0.0
5-
unpick_version=2.2.0
6-
cfr_version=0.0.9
4+
enigma_version=2.1.0
5+
unpick_version=2.3.0
6+
cfr_version=0.1.1
77
name_proposal_version=0.1.4
8+
tiny_remapper_version=0.8.2
9+
asm_version=9.3
810

911
# Javadoc generation/linking
10-
fabric_loader_version=0.11.6
11-
jetbrains_annotations_version=22.0.0
12+
fabric_loader_version=0.13.3
13+
jetbrains_annotations_version=23.0.0
1214
mappingpoet_version=0.3.0
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)