Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into next
Browse files Browse the repository at this point in the history
# Conflicts:
#	build.gradle
  • Loading branch information
shedaniel committed Dec 7, 2023
2 parents d16a1ac + e8c6caf commit 3beefd4
Show file tree
Hide file tree
Showing 19 changed files with 483 additions and 479 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
tab_width = 4

[*.gradle]
indent_style = tab

[*.java]
indent_style = tab
ij_continuation_indent_size = 8
ij_java_imports_layout = $*,|,java.**,|,javax.**,|,*,|,net.minecraft.**,|,net.fabricmc.**
ij_java_class_count_to_use_import_on_demand = 999

[.editorconfig]
indent_style = space
indent_size = 4
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ jobs:
build:
strategy:
matrix:
java: [8-jdk, 11-jdk, 16-jdk]
runs-on: ubuntu-20.04
java: [11-jdk, 17-jdk, 21-jdk]
runs-on: ubuntu-22.04
container:
image: openjdk:${{ matrix.java }}
image: eclipse-temurin:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gradle/wrapper-validation-action@v1
- run: chmod +x ./gradlew
- run: ./gradlew build test --stacktrace
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
- next
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
container:
image: openjdk:16-jdk
image: eclipse-temurin:21-jdk
options: --user root
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gradle/wrapper-validation-action@v1
- run: chmod +x ./gradlew
- run: ./gradlew build publish --stacktrace
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
.idea/
!src/test/resources/**
/tiny-remapper/
/out/
26 changes: 16 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ plugins {
id 'java-library'
id 'maven-publish'
id 'checkstyle'
id 'com.diffplug.spotless' version '5.14.2'
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'com.diffplug.spotless' version '6.22.0'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

version = '1.10.' + (System.getenv("GITHUB_RUN_NUMBER") ?: "9999")

def ENV = System.getenv()

group = 'dev.architectury'
archivesBaseName = 'tiny-remapper'

base {
archivesName = 'tiny-remapper'
}

repositories {
mavenCentral()
Expand All @@ -25,12 +25,15 @@ dependencies {
api 'org.ow2.asm:asm-commons:9.6'
implementation 'org.ow2.asm:asm-tree:9.6'
implementation 'org.ow2.asm:asm-util:9.6'
implementation "net.fabricmc:mapping-io:0.5.0"

testImplementation 'org.junit.jupiter:junit-jupiter:5.6.2'
}

java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType(JavaCompile).configureEach {
Expand All @@ -43,7 +46,7 @@ tasks.withType(JavaCompile).configureEach {

shadowJar {
relocate 'net.fabricmc.tinyremapper', 'dev.architectury.tinyremapper'
classifier null
archiveClassifier = null
configurations = []
}

Expand All @@ -62,7 +65,7 @@ jar {
'Implementation-Version': archiveVersion,
'Main-Class': "dev.architectury.tinyremapper.Main"
}
classifier 'raw'
archiveClassifier = 'raw'
}

checkstyle {
Expand All @@ -71,11 +74,14 @@ checkstyle {
}

spotless {
ratchetFrom 'origin/master'
enforceCheck false
enforceCheck false

java {
licenseHeaderFile(rootProject.file('HEADER')).yearSeparator(', ')
removeUnusedImports()
importOrder('java', 'javax', '', 'net.minecraft', 'net.fabricmc')
indentWithTabs()
trimTrailingWhitespace()
}
}

Expand Down
2 changes: 1 addition & 1 deletion checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

<module name="ImportOrder">
<property name="groups" value="java,javax,*,net.minecraft,net.fabricmc"/>
<property name="ordered" value="false"/><!-- the plugin orders alphabetically without considering separators.. -->
<property name="ordered" value="true"/>
<property name="separated" value="true"/>
<property name="option" value="top"/>
<property name="sortStaticImportsAlphabetically" value="true"/>
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 3beefd4

Please sign in to comment.