Skip to content

Commit

Permalink
Fix compilation error for 11.2+, upgrade gradle, upgrade JDK to 21
Browse files Browse the repository at this point in the history
Fix compilation error for 11.2+, upgrade gradle, upgrade JDK to 21.

Thanks to borntohonk for the help.
  • Loading branch information
StevensND committed Oct 13, 2024
1 parent 6c208c5 commit 178cbba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A loader for Ghidra supporting a variety of Nintendo Switch file formats.

## Building

- Ensure you have ``JAVA_HOME`` set to the path of your JDK 17 installation.
- Ensure you have ``JAVA_HOME`` set to the path of your JDK 21 installation.
- Set ``GHIDRA_INSTALL_DIR`` to your Ghidra install directory. This can be done in one of the following ways:
- **Windows**: Running ``set GHIDRA_INSTALL_DIR=<Absolute path to Ghidra without quotations>``
- **macos/Linux**: Running ``export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>``
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def ghidraUserDir = System.getProperty("user.home") + "/.ghidra/.${DISTRO_PREFIX

dependencies {
implementation 'commons-primitives:commons-primitives:1.0'
localDeps group: 'org.lz4', name: 'lz4-java', version: '1.5.1'
api configurations.localDeps
implementation group: 'org.lz4', name: 'lz4-java', version: '1.8.0'
localDeps group: 'org.lz4', name: 'lz4-java', version: '1.8.0'

runtimeOnly fileTree(dir: ghidraInstallDir + '/Ghidra/patch', include: "**/*.jar")
runtimeOnly fileTree(dir: ghidraInstallDir + '/Ghidra/Configurations', include: "**/*.jar")
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 178cbba

Please sign in to comment.