Skip to content

Commit 0c79d68

Browse files
committed
Update dependencies & slient proguard
- Fix some Java errors
1 parent c1f85f2 commit 0c79d68

File tree

8 files changed

+39
-31
lines changed

8 files changed

+39
-31
lines changed

api/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
apply plugin: 'java'
22

3-
version = '1.0.0'
3+
version = parent.version

app/build.gradle

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
apply plugin: 'java'
22

33
dependencies {
4-
provided 'com.yuvimasory:orange-extensions:1.3.0' // OSX support
5-
compile project(':api')
6-
runtime project(':services')
4+
implementation project(':api')
5+
runtimeOnly project(':services')
76
}
87

98
version = parent.version

app/src/main/java/org/jd/gui/OsxApp.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77

88
package org.jd.gui;
99

10-
import com.apple.eawt.Application;
10+
import java.awt.Desktop;
1111

1212
public class OsxApp extends App {
1313

1414
@SuppressWarnings("unchecked")
1515
public static void main(String[] args) {
16-
// Create an instance of the mac OSX Application class
17-
Application application = Application.getApplication();
16+
Desktop application = Desktop.getDesktop();
1817

1918
App.main(args);
2019

build.gradle

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
buildscript {
22
repositories {
3+
mavenCentral()
34
jcenter()
5+
maven {
6+
url 'https://plugins.gradle.org/m2/'
7+
}
48
}
59
dependencies {
6-
classpath 'com.netflix.nebula:gradle-ospackage-plugin:5.3.0' // RPM & DEB support
7-
classpath 'edu.sc.seis.gradle:launch4j:2.4.4'
8-
classpath 'net.sf.proguard:proguard-gradle:6.1.0'
10+
classpath 'com.netflix.nebula:gradle-ospackage-plugin:9.1.1'
11+
classpath 'edu.sc.seis.launch4j:launch4j:3.0.5'
12+
classpath('com.guardsquare:proguard-gradle:7.3.2') {
13+
exclude group: 'com.android.tools.build'
14+
}
915
}
1016
}
1117

@@ -15,7 +21,7 @@ apply plugin: 'edu.sc.seis.launch4j'
1521
apply plugin: 'nebula.ospackage'
1622

1723
// Common configuration //
18-
rootProject.version='1.6.6'
24+
rootProject.version = '1.7.0'
1925
rootProject.ext.set('jdCoreVersion', '1.1.3')
2026
targetCompatibility = '1.8'
2127

@@ -63,7 +69,7 @@ jar {
6369
subprojects.each { subproject ->
6470
from subproject.sourceSets.main.output.classesDirs
6571
from subproject.sourceSets.main.output.resourcesDir
66-
deps += subproject.configurations.runtime - subproject.configurations.provided
72+
deps += subproject.configurations.runtimeClasspath - subproject.configurations.provided
6773
}
6874
subprojects.each { subproject ->
6975
deps -= subproject.jar.archivePath
@@ -114,10 +120,10 @@ launch4j {
114120

115121
version = textVersion = project.version
116122
fileDescription = productName = 'JD-GUI'
117-
errTitle 'JD-GUI Windows Wrapper'
118-
copyright 'JD-GUI (C) 2008-2019 Emmanuel Dupuy'
119-
icon projectDir.path + '/src/launch4j/resources/images/jd-gui.ico'
120-
jar projectDir.path + '/' + proguard.outJarFiles[0]
123+
errTitle = 'JD-GUI Windows Wrapper'
124+
copyright = 'JD-GUI (C) 2008-2019 Emmanuel Dupuy'
125+
icon = projectDir.path + '/src/launch4j/resources/images/jd-gui.ico'
126+
jarTask = proguard
121127
bundledJrePath = '%JAVA_HOME%'
122128
}
123129

services/build.gradle

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
apply plugin: 'java'
22

33
dependencies {
4-
compile 'com.fifesoft:rsyntaxtextarea:3.0.4'
5-
compile 'org.ow2.asm:asm:7.1'
6-
compile 'org.jd:jd-core:' + parent.jdCoreVersion
7-
compile project(':api')
8-
testCompile 'junit:junit:4.12'
4+
implementation 'com.fifesoft:rsyntaxtextarea:3.3.4'
5+
implementation 'org.ow2.asm:asm:9.5'
6+
implementation 'org.jd:jd-core:' + parent.jdCoreVersion
7+
implementation project(':api')
8+
testImplementation 'junit:junit:4.13.2'
99
}
1010

1111
version = parent.version
1212

1313
// ANTLR //
1414
ext.antlr4 = [
15-
antlrSource: 'src/main/antlr',
16-
destinationDir: 'src-generated/antlr/java',
17-
grammarPackage: 'org.jd.gui.util.parser.antlr'
15+
antlrSource: 'src/main/antlr',
16+
destinationDir: 'src-generated/antlr/java',
17+
grammarPackage: 'org.jd.gui.util.parser.antlr'
1818
]
1919

2020
configurations {
@@ -24,8 +24,8 @@ configurations {
2424
}
2525

2626
dependencies {
27-
compile 'org.antlr:antlr4-runtime:4.5'
28-
antlr4 'org.antlr:antlr4:4.5'
27+
implementation 'org.antlr:antlr4-runtime:4.13.1'
28+
antlr4 'org.antlr:antlr4:4.13.1'
2929
}
3030

3131
task antlr4OutputDir() {

services/src/main/java/org/jd/gui/model/container/GenericContainer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected Collection<Container.Entry> loadChildrenFromFileEntry() throws IOExcep
170170
tmpFile.deleteOnExit();
171171
Files.copy(fsPath, tmpPath);
172172

173-
FileSystem subFileSystem = FileSystems.newFileSystem(tmpPath, null);
173+
FileSystem subFileSystem = FileSystems.newFileSystem(tmpPath, (ClassLoader) null);
174174

175175
if (subFileSystem != null) {
176176
Iterator<Path> rootDirectories = subFileSystem.getRootDirectories().iterator();

services/src/main/java/org/jd/gui/view/component/AbstractTextPage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void mouseClicked(MouseEvent e) {
132132
});
133133

134134
Gutter gutter = scrollPane.getGutter();
135-
gutter.setFoldIcons(COLLAPSED_ICON, EXPANDED_ICON);
135+
// gutter.setFoldIcons(COLLAPSED_ICON, EXPANDED_ICON);
136136
gutter.setFoldIndicatorForeground(gutter.getBorderColor());
137137

138138
add(scrollPane, BorderLayout.CENTER);

src/proguard/resources/proguard.config.txt

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# java -jar proguard.jar @proguard.config.txt
22

3-
#-injars jd-gui-1.4.2.jar
4-
#-outjars jd-gui-1.4.2-min.jar
3+
#-injars jd-gui-1.7.0.jar
4+
#-outjars jd-gui-1.7.0-min.jar
55
#-libraryjars C:/Program Files/Java/jre1.8.0_121/lib/rt.jar
66
#-printmapping myapplication.map
77

@@ -13,7 +13,6 @@
1313
public static void main(java.lang.String[]);
1414
}
1515

16-
-dontwarn com.apple.eawt.**
1716
-keepattributes Signature
1817

1918
-keep public interface org.jd.gui.api.** {*;}
@@ -38,3 +37,8 @@
3837
-adaptresourcefilenames ErrorStrip.properties
3938
-adaptresourcefilenames RSyntaxTextArea.properties
4039
-adaptresourcefilenames FocusableTip.properties
40+
41+
-ignorewarning
42+
43+
-dontpreverify
44+
-dontoptimize

0 commit comments

Comments
 (0)