Skip to content

Commit 3beefd4

Browse files
committed
Merge remote-tracking branch 'upstream/master' into next
# Conflicts: # build.gradle
2 parents d16a1ac + e8c6caf commit 3beefd4

19 files changed

+483
-479
lines changed

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
tab_width = 4
8+
9+
[*.gradle]
10+
indent_style = tab
11+
12+
[*.java]
13+
indent_style = tab
14+
ij_continuation_indent_size = 8
15+
ij_java_imports_layout = $*,|,java.**,|,javax.**,|,*,|,net.minecraft.**,|,net.fabricmc.**
16+
ij_java_class_count_to_use_import_on_demand = 999
17+
18+
[.editorconfig]
19+
indent_style = space
20+
indent_size = 4

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ jobs:
44
build:
55
strategy:
66
matrix:
7-
java: [8-jdk, 11-jdk, 16-jdk]
8-
runs-on: ubuntu-20.04
7+
java: [11-jdk, 17-jdk, 21-jdk]
8+
runs-on: ubuntu-22.04
99
container:
10-
image: openjdk:${{ matrix.java }}
10+
image: eclipse-temurin:${{ matrix.java }}
1111
options: --user root
1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
1416
- uses: gradle/wrapper-validation-action@v1
1517
- run: chmod +x ./gradlew
1618
- run: ./gradlew build test --stacktrace

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
- next
66
jobs:
77
build:
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-22.04
99
container:
10-
image: openjdk:16-jdk
10+
image: eclipse-temurin:21-jdk
1111
options: --user root
1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
1416
- uses: gradle/wrapper-validation-action@v1
1517
- run: chmod +x ./gradlew
1618
- run: ./gradlew build publish --stacktrace

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
.idea/
1313
!src/test/resources/**
1414
/tiny-remapper/
15+
/out/

build.gradle

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ plugins {
22
id 'java-library'
33
id 'maven-publish'
44
id 'checkstyle'
5-
id 'com.diffplug.spotless' version '5.14.2'
6-
id 'com.github.johnrengelman.shadow' version '6.1.0'
5+
id 'com.diffplug.spotless' version '6.22.0'
6+
id 'com.github.johnrengelman.shadow' version '8.1.1'
77
}
88

9-
sourceCompatibility = JavaVersion.VERSION_1_8
10-
targetCompatibility = JavaVersion.VERSION_1_8
11-
129
version = '1.10.' + (System.getenv("GITHUB_RUN_NUMBER") ?: "9999")
1310

1411
def ENV = System.getenv()
1512

1613
group = 'dev.architectury'
17-
archivesBaseName = 'tiny-remapper'
14+
15+
base {
16+
archivesName = 'tiny-remapper'
17+
}
1818

1919
repositories {
2020
mavenCentral()
@@ -25,12 +25,15 @@ dependencies {
2525
api 'org.ow2.asm:asm-commons:9.6'
2626
implementation 'org.ow2.asm:asm-tree:9.6'
2727
implementation 'org.ow2.asm:asm-util:9.6'
28+
implementation "net.fabricmc:mapping-io:0.5.0"
2829

2930
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.2'
3031
}
3132

3233
java {
3334
withSourcesJar()
35+
sourceCompatibility = JavaVersion.VERSION_1_8
36+
targetCompatibility = JavaVersion.VERSION_1_8
3437
}
3538

3639
tasks.withType(JavaCompile).configureEach {
@@ -43,7 +46,7 @@ tasks.withType(JavaCompile).configureEach {
4346

4447
shadowJar {
4548
relocate 'net.fabricmc.tinyremapper', 'dev.architectury.tinyremapper'
46-
classifier null
49+
archiveClassifier = null
4750
configurations = []
4851
}
4952

@@ -62,7 +65,7 @@ jar {
6265
'Implementation-Version': archiveVersion,
6366
'Main-Class': "dev.architectury.tinyremapper.Main"
6467
}
65-
classifier 'raw'
68+
archiveClassifier = 'raw'
6669
}
6770

6871
checkstyle {
@@ -71,11 +74,14 @@ checkstyle {
7174
}
7275

7376
spotless {
74-
ratchetFrom 'origin/master'
75-
enforceCheck false
77+
enforceCheck false
7678

7779
java {
7880
licenseHeaderFile(rootProject.file('HEADER')).yearSeparator(', ')
81+
removeUnusedImports()
82+
importOrder('java', 'javax', '', 'net.minecraft', 'net.fabricmc')
83+
indentWithTabs()
84+
trimTrailingWhitespace()
7985
}
8086
}
8187

checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
<module name="ImportOrder">
7272
<property name="groups" value="java,javax,*,net.minecraft,net.fabricmc"/>
73-
<property name="ordered" value="false"/><!-- the plugin orders alphabetically without considering separators.. -->
73+
<property name="ordered" value="true"/>
7474
<property name="separated" value="true"/>
7575
<property name="option" value="top"/>
7676
<property name="sortStaticImportsAlphabetically" value="true"/>

gradle/wrapper/gradle-wrapper.jar

4.41 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)