| 30 Oct 2024 |
emily | * we really need to find a way to build Java dependencies from source | 18:27:48 |
emily | source is very likely to get archived or have another source, random mystery meat .jars are bad for supply-chain security and bad for longevity | 18:28:05 |
emily | anyway yeah just yeet both the GUI and the CLI. tragic but nothing we can easily do | 18:28:54 |
emily | unless someone wants to write a from-source jd-core package | 18:29:20 |
emily | In reply to @emilazy:matrix.org source is very likely to get archived or have another source, random mystery meat .jars are bad for supply-chain security and bad for longevity sketch of a solution: we MITM to file:/// and maintain a reverse DNS → Nixpkgs package mapping | 18:31:10 |
emily | dunno if Gradle supports a more "native" way of doing this | 18:31:19 |
emily | looks like there's some flatDir thing for getting deps from the fs | 18:32:03 |
emily | not sure how bad the incompatible version proliferation is in Java | 18:32:25 |
emily | anyway if you update the PR to drop the CLI too I'll merge :( | 18:35:47 |
emily | there's actually a jar at https://github.com/java-decompiler/jd-core/releases. we could use that, if we care. | 18:56:29 |
emily | the actual Gradle fixes were trivial
diff --git a/build.gradle b/build.gradle
index 8fd6d27a49..20c6c2461c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,16 +1,14 @@
buildscript {
repositories {
- jcenter()
+ mavenCentral()
}
dependencies {
- classpath 'edu.sc.seis.gradle:launch4j:2.4.4'
classpath 'net.sf.proguard:proguard-gradle:6.1.0'
}
}
apply plugin: 'java'
apply plugin: 'distribution'
-apply plugin: 'edu.sc.seis.launch4j'
// Common configuration //
rootProject.version='1.6.6'
@@ -29,7 +27,7 @@
}
repositories {
- jcenter()
+ mavenCentral()
}
configurations {
@@ -105,16 +103,3 @@
libraryjars System.getProperty('java.home') + '/lib/rt.jar'
libraryjars System.getProperty('java.home') + '/jmods/'
}
-
-// Java executable wrapper for Windows //
-launch4j {
- createExe.dependsOn 'proguard'
-
- version = textVersion = project.version
- fileDescription = productName = 'JD-GUI'
- errTitle 'JD-GUI Windows Wrapper'
- copyright 'JD-GUI (C) 2008-2019 Emmanuel Dupuy'
- icon projectDir.path + '/src/launch4j/resources/images/jd-gui.ico'
- jar projectDir.path + '/' + proguard.outJarFiles[0]
- bundledJrePath = '%JAVA_HOME%'
-}
| 18:56:52 |
Tomodachi94 (they/them) | Ultimately up to you whether or not to update it | 20:14:01 |
Tomodachi94 (they/them) | Feel free to close it if you PR a fix | 20:14:11 |
emily | yeah I don't care enough :) | 20:17:35 |