Adubbz / Ghidra-Switch-Loader

Nintendo Switch loader for Ghidra
ISC License
285 stars 43 forks source link

Gradle Update #58

Closed StevensND closed 1 month ago

StevensND commented 1 month ago

image

I was trying to update SwitchLoader to latest Ghidra version: 11.2

I'm getting this error about Gradle. I saw that you're using 7.5.1 and the latest Gradle version is 8.10.2

Can you update this?. Thanks.

StevensND commented 1 month ago

Managed to solve the Gradle version error but now I'm getting this error ...

image

StevensND commented 1 month ago

@Adubbz @TSRBerry

TSRBerry commented 1 month ago

I'm still on Ghidra 11.0.3. Once the Arch repositories update to Ghidra 11.2 I'll have a look.

borntohonk commented 1 month ago

@StevensND latest gradle requirements is JDK 21

this line is no longer permitted in the context("configuration" cannot be dependency anymore), and must be removed https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/build.gradle#L64

https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/gradle/wrapper/gradle-wrapper.properties#L3 swap for distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip

after addressing this, then a new issue appears

https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/src/main/java/adubbz/nx/loader/nso0/NSO0Adapter.java#L18-L19

in other words.

remove https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/build.gradle#L63-L64

add implementation group: 'org.lz4', name: 'lz4-java', version: '1.8.0' localDeps group: 'org.lz4', name: 'lz4-java', version: '1.8.0'

remove https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/gradle/wrapper/gradle-wrapper.properties#L3

add distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip

borntohonk commented 1 month ago

SwitchLoader-1.6.0-6c208c5-Ghidra_11.2.zip

StevensND commented 1 month ago

@StevensND latest gradle requirements is JDK 21

this line is no longer permitted in the context("configuration" cannot be dependency anymore), and must be removed https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/build.gradle#L64

https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/gradle/wrapper/gradle-wrapper.properties#L3 swap for distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip

after addressing this, then a new issue appears

https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/src/main/java/adubbz/nx/loader/nso0/NSO0Adapter.java#L18-L19

in other words.

remove https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/build.gradle#L63-L64

add implementation group: 'org.lz4', name: 'lz4-java', version: '1.8.0' localDeps group: 'org.lz4', name: 'lz4-java', version: '1.8.0'

remove https://github.com/Adubbz/Ghidra-Switch-Loader/blob/master/gradle/wrapper/gradle-wrapper.properties#L3

add distributionUrl=https://services.gradle.org/distributions/gradle-8.10.2-bin.zip

Cool. TYSM for the help!!.

I was only missing:

add implementation group: 'org.lz4', name: 'lz4-java', version: '1.8.0' localDeps group: 'org.lz4', name: 'lz4-java', version: '1.8.0'

Because I had no idea that I needed to modify that. Again: Tysm ♥