summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes8
-rw-r--r--.github/workflows/build.yml9
-rw-r--r--.github/workflows/release.yml7
-rw-r--r--enigma-swing/build.gradle10
-rw-r--r--enigma/build.gradle10
-rw-r--r--enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java2
-rw-r--r--gradle/wrapper/gradle-wrapper.jarbin59536 -> 61574 bytes
-rw-r--r--gradle/wrapper/gradle-wrapper.properties3
-rwxr-xr-xgradlew28
-rw-r--r--gradlew.bat181
10 files changed, 139 insertions, 119 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..afd59d8f
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,8 @@
1#
2# https://help.github.com/articles/dealing-with-line-endings/
3#
4# Linux start script should use lf
5/gradlew text eol=lf
6
7# These are Windows script files and should use crlf
8*.bat text eol=crlf
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0abdf58e..f2fbb3a6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -4,14 +4,13 @@ jobs:
4 build: 4 build:
5 strategy: 5 strategy:
6 matrix: 6 matrix:
7 java: [ 17-jdk ] 7 java: [ 17-jdk, 19-jdk ]
8 runs-on: ubuntu-20.04 8 runs-on: ubuntu-22.04
9 container: 9 container:
10 image: openjdk:${{ matrix.java }} 10 image: eclipse-temurin:${{ matrix.java }}
11 options: --user root 11 options: --user root
12 steps: 12 steps:
13 - uses: actions/checkout@v1 13 - uses: actions/checkout@v3
14 - uses: gradle/wrapper-validation-action@v1
15 - run: ./gradlew build --stacktrace --warning-mode fail 14 - run: ./gradlew build --stacktrace --warning-mode fail
16 - uses: Juuxel/publish-checkstyle-report@v1 15 - uses: Juuxel/publish-checkstyle-report@v1
17 if: ${{ failure() }} 16 if: ${{ failure() }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9a4dc97d..87fd901a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -2,13 +2,12 @@ name: Release
2on: [ workflow_dispatch ] # Manual trigger 2on: [ workflow_dispatch ] # Manual trigger
3jobs: 3jobs:
4 build: 4 build:
5 runs-on: ubuntu-20.04 5 runs-on: ubuntu-22.04
6 container: 6 container:
7 image: openjdk:17-jdk 7 image: eclipse-temurin:19-jdk
8 options: --user root 8 options: --user root
9 steps: 9 steps:
10 - uses: actions/checkout@v1 10 - uses: actions/checkout@v3
11 - uses: gradle/wrapper-validation-action@v1
12 - run: ./gradlew checkVersion build publish --stacktrace 11 - run: ./gradlew checkVersion build publish --stacktrace
13 env: 12 env:
14 MAVEN_URL: ${{ secrets.MAVEN_URL }} 13 MAVEN_URL: ${{ secrets.MAVEN_URL }}
diff --git a/enigma-swing/build.gradle b/enigma-swing/build.gradle
index a4a13d88..fff4dafe 100644
--- a/enigma-swing/build.gradle
+++ b/enigma-swing/build.gradle
@@ -8,10 +8,10 @@ dependencies {
8 implementation project(':enigma-server') 8 implementation project(':enigma-server')
9 9
10 implementation 'net.sf.jopt-simple:jopt-simple:6.0-alpha-3' 10 implementation 'net.sf.jopt-simple:jopt-simple:6.0-alpha-3'
11 implementation 'com.formdev:flatlaf:1.6.1' 11 implementation 'com.formdev:flatlaf:2.6'
12 implementation 'com.formdev:flatlaf-extras:1.6.1' // for SVG icons 12 implementation 'com.formdev:flatlaf-extras:2.6' // for SVG icons
13 implementation 'de.sciss:syntaxpane:1.2.0' 13 implementation 'de.sciss:syntaxpane:1.2.1'
14 implementation 'com.github.lukeu:swing-dpi:0.9' 14 implementation 'com.github.lukeu:swing-dpi:0.10'
15 implementation 'org.drjekyll:fontchooser:2.5.2' 15 implementation 'org.drjekyll:fontchooser:2.5.2'
16} 16}
17 17
@@ -25,4 +25,4 @@ publishing {
25 publication.from components.java 25 publication.from components.java
26 } 26 }
27 } 27 }
28} 28} \ No newline at end of file
diff --git a/enigma/build.gradle b/enigma/build.gradle
index 9df805d4..810b35db 100644
--- a/enigma/build.gradle
+++ b/enigma/build.gradle
@@ -3,15 +3,15 @@ configurations {
3} 3}
4 4
5dependencies { 5dependencies {
6 implementation 'org.ow2.asm:asm:9.3' 6 implementation 'org.ow2.asm:asm:9.4'
7 implementation 'org.ow2.asm:asm-commons:9.3' 7 implementation 'org.ow2.asm:asm-commons:9.4'
8 implementation 'org.ow2.asm:asm-tree:9.3' 8 implementation 'org.ow2.asm:asm-tree:9.4'
9 implementation 'org.ow2.asm:asm-util:9.3' 9 implementation 'org.ow2.asm:asm-util:9.4'
10 10
11 implementation 'net.fabricmc:procyon-fabric-compilertools:0.5.35.13' 11 implementation 'net.fabricmc:procyon-fabric-compilertools:0.5.35.13'
12 implementation 'net.fabricmc:cfr:0.2.0' 12 implementation 'net.fabricmc:cfr:0.2.0'
13 13
14 proGuard 'com.guardsquare:proguard-base:7.2.0-beta2' 14 proGuard 'com.guardsquare:proguard-base:7.3.0'
15 15
16 testImplementation 'com.google.jimfs:jimfs:1.2' 16 testImplementation 'com.google.jimfs:jimfs:1.2'
17} 17}
diff --git a/enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java b/enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java
index 46086e56..22210b01 100644
--- a/enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java
+++ b/enigma/src/test/java/cuchaz/enigma/TestInnerClasses.java
@@ -46,7 +46,7 @@ public class TestInnerClasses {
46 CachingClassProvider classProvider = new CachingClassProvider(jcp); 46 CachingClassProvider classProvider = new CachingClassProvider(jcp);
47 index = JarIndex.empty(); 47 index = JarIndex.empty();
48 index.indexJar(jcp.getClassNames(), classProvider, ProgressListener.none()); 48 index.indexJar(jcp.getClassNames(), classProvider, ProgressListener.none());
49 decompiler = Decompilers.PROCYON.create(classProvider, new SourceSettings(false, false)); 49 decompiler = Decompilers.CFR.create(classProvider, new SourceSettings(false, false));
50 } 50 }
51 51
52 @Test 52 @Test
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index 7454180f..943f0cbf 100644
--- a/gradle/wrapper/gradle-wrapper.jar
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index e750102e..f398c33c 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,6 @@
1distributionBase=GRADLE_USER_HOME 1distributionBase=GRADLE_USER_HOME
2distributionPath=wrapper/dists 2distributionPath=wrapper/dists
3distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip 3distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
4networkTimeout=10000
4zipStoreBase=GRADLE_USER_HOME 5zipStoreBase=GRADLE_USER_HOME
5zipStorePath=wrapper/dists 6zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
index c53aefaa..65dcd68d 100755
--- a/gradlew
+++ b/gradlew
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# 3#
4# Copyright © 2015-2021 the original authors. 4# Copyright © 2015-2021 the original authors.
5# 5#
6# Licensed under the Apache License, Version 2.0 (the "License"); 6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License. 7# you may not use this file except in compliance with the License.
@@ -32,10 +32,10 @@
32# Busybox and similar reduced shells will NOT work, because this script 32# Busybox and similar reduced shells will NOT work, because this script
33# requires all of these POSIX shell features: 33# requires all of these POSIX shell features:
34# * functions; 34# * functions;
35# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 35# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36# «${var#prefix}», «${var%suffix}», and «$( cmd )»; 36# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37# * compound commands having a testable exit status, especially «case»; 37# * compound commands having a testable exit status, especially «case»;
38# * various built-in commands including «command», «set», and «ulimit». 38# * various built-in commands including «command», «set», and «ulimit».
39# 39#
40# Important for patching: 40# Important for patching:
41# 41#
@@ -55,7 +55,7 @@
55# Darwin, MinGW, and NonStop. 55# Darwin, MinGW, and NonStop.
56# 56#
57# (3) This script is generated from the Groovy template 57# (3) This script is generated from the Groovy template
58# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 58# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59# within the Gradle project. 59# within the Gradle project.
60# 60#
61# You can find Gradle at https://github.com/gradle/gradle/. 61# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
80 esac 80 esac
81done 81done
82 82
83APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 83# This is normally unused
84 84# shellcheck disable=SC2034
85APP_NAME="Gradle"
86APP_BASE_NAME=${0##*/} 85APP_BASE_NAME=${0##*/}
86APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87 87
88# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 88# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 89DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 143if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144 case $MAX_FD in #( 144 case $MAX_FD in #(
145 max*) 145 max*)
146 # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147 # shellcheck disable=SC3045
146 MAX_FD=$( ulimit -H -n ) || 148 MAX_FD=$( ulimit -H -n ) ||
147 warn "Could not query maximum file descriptor limit" 149 warn "Could not query maximum file descriptor limit"
148 esac 150 esac
149 case $MAX_FD in #( 151 case $MAX_FD in #(
150 '' | soft) :;; #( 152 '' | soft) :;; #(
151 *) 153 *)
154 # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155 # shellcheck disable=SC3045
152 ulimit -n "$MAX_FD" || 156 ulimit -n "$MAX_FD" ||
153 warn "Could not set maximum file descriptor limit to $MAX_FD" 157 warn "Could not set maximum file descriptor limit to $MAX_FD"
154 esac 158 esac
@@ -205,6 +209,12 @@ set -- \
205 org.gradle.wrapper.GradleWrapperMain \ 209 org.gradle.wrapper.GradleWrapperMain \
206 "$@" 210 "$@"
207 211
212# Stop when "xargs" is not available.
213if ! command -v xargs >/dev/null 2>&1
214then
215 die "xargs is not available"
216fi
217
208# Use "xargs" to parse quoted args. 218# Use "xargs" to parse quoted args.
209# 219#
210# With -n1 it outputs one arg per line, with the quotes and backslashes removed. 220# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
diff --git a/gradlew.bat b/gradlew.bat
index 107acd32..6689b85b 100644
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -1,89 +1,92 @@
1@rem 1@rem
2@rem Copyright 2015 the original author or authors. 2@rem Copyright 2015 the original author or authors.
3@rem 3@rem
4@rem Licensed under the Apache License, Version 2.0 (the "License"); 4@rem Licensed under the Apache License, Version 2.0 (the "License");
5@rem you may not use this file except in compliance with the License. 5@rem you may not use this file except in compliance with the License.
6@rem You may obtain a copy of the License at 6@rem You may obtain a copy of the License at
7@rem 7@rem
8@rem https://www.apache.org/licenses/LICENSE-2.0 8@rem https://www.apache.org/licenses/LICENSE-2.0
9@rem 9@rem
10@rem Unless required by applicable law or agreed to in writing, software 10@rem Unless required by applicable law or agreed to in writing, software
11@rem distributed under the License is distributed on an "AS IS" BASIS, 11@rem distributed under the License is distributed on an "AS IS" BASIS,
12@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13@rem See the License for the specific language governing permissions and 13@rem See the License for the specific language governing permissions and
14@rem limitations under the License. 14@rem limitations under the License.
15@rem 15@rem
16 16
17@if "%DEBUG%" == "" @echo off 17@if "%DEBUG%"=="" @echo off
18@rem ########################################################################## 18@rem ##########################################################################
19@rem 19@rem
20@rem Gradle startup script for Windows 20@rem Gradle startup script for Windows
21@rem 21@rem
22@rem ########################################################################## 22@rem ##########################################################################
23 23
24@rem Set local scope for the variables with windows NT shell 24@rem Set local scope for the variables with windows NT shell
25if "%OS%"=="Windows_NT" setlocal 25if "%OS%"=="Windows_NT" setlocal
26 26
27set DIRNAME=%~dp0 27set DIRNAME=%~dp0
28if "%DIRNAME%" == "" set DIRNAME=. 28if "%DIRNAME%"=="" set DIRNAME=.
29set APP_BASE_NAME=%~n0 29@rem This is normally unused
30set APP_HOME=%DIRNAME% 30set APP_BASE_NAME=%~n0
31 31set APP_HOME=%DIRNAME%
32@rem Resolve any "." and ".." in APP_HOME to make it shorter. 32
33for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 33@rem Resolve any "." and ".." in APP_HOME to make it shorter.
34 34for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 35
36set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 36@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37 37set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38@rem Find java.exe 38
39if defined JAVA_HOME goto findJavaFromJavaHome 39@rem Find java.exe
40 40if defined JAVA_HOME goto findJavaFromJavaHome
41set JAVA_EXE=java.exe 41
42%JAVA_EXE% -version >NUL 2>&1 42set JAVA_EXE=java.exe
43if "%ERRORLEVEL%" == "0" goto execute 43%JAVA_EXE% -version >NUL 2>&1
44 44if %ERRORLEVEL% equ 0 goto execute
45echo. 45
46echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 46echo.
47echo. 47echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48echo Please set the JAVA_HOME variable in your environment to match the 48echo.
49echo location of your Java installation. 49echo Please set the JAVA_HOME variable in your environment to match the
50 50echo location of your Java installation.
51goto fail 51
52 52goto fail
53:findJavaFromJavaHome 53
54set JAVA_HOME=%JAVA_HOME:"=% 54:findJavaFromJavaHome
55set JAVA_EXE=%JAVA_HOME%/bin/java.exe 55set JAVA_HOME=%JAVA_HOME:"=%
56 56set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57if exist "%JAVA_EXE%" goto execute 57
58 58if exist "%JAVA_EXE%" goto execute
59echo. 59
60echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 60echo.
61echo. 61echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62echo Please set the JAVA_HOME variable in your environment to match the 62echo.
63echo location of your Java installation. 63echo Please set the JAVA_HOME variable in your environment to match the
64 64echo location of your Java installation.
65goto fail 65
66 66goto fail
67:execute 67
68@rem Setup the command line 68:execute
69 69@rem Setup the command line
70set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 70
71 71set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72 72
73@rem Execute Gradle 73
74"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 74@rem Execute Gradle
75 75"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76:end 76
77@rem End local scope for the variables with windows NT shell 77:end
78if "%ERRORLEVEL%"=="0" goto mainEnd 78@rem End local scope for the variables with windows NT shell
79 79if %ERRORLEVEL% equ 0 goto mainEnd
80:fail 80
81rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 81:fail
82rem the _cmd.exe /c_ return code! 82rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 83rem the _cmd.exe /c_ return code!
84exit /b 1 84set EXIT_CODE=%ERRORLEVEL%
85 85if %EXIT_CODE% equ 0 set EXIT_CODE=1
86:mainEnd 86if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87if "%OS%"=="Windows_NT" endlocal 87exit /b %EXIT_CODE%
88 88
89:omega 89:mainEnd
90if "%OS%"=="Windows_NT" endlocal
91
92:omega