-
Notifications
You must be signed in to change notification settings - Fork 465
Migrate to Shadow 9 #497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Migrate to Shadow 9 #497
Conversation
| } | ||
| } | ||
|
|
||
| assemble.dependsOn fatJar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shadowJar tasks are relied on by assemble tasks from Shadow 9.
| configurations = [project.configurations.runtimeClasspath] | ||
| manifest { | ||
| attributes( | ||
| 'Manifest-Version': '1.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the default value, we don't need to declare them explicitly.
Run `diffuse diff --jar old/retrace.jar new/retrace.jar > retrace.jar.diff`
```
OLD: retrace.jar
NEW: retrace.jar
JAR │ old │ new │ diff
───────┼───────────┼───────────┼────────
class │ 18.6 MiB │ 18.6 MiB │ -6 KiB
other │ 147.5 KiB │ 147.5 KiB │ 0 B
───────┼───────────┼───────────┼────────
total │ 18.7 MiB │ 18.7 MiB │ -6 KiB
CLASSES │ old │ new │ diff
─────────┼───────┼───────┼────────────
classes │ 4982 │ 4981 │ -1 (+0 -1)
methods │ 50236 │ 50236 │ 0 (+0 -0)
fields │ 14109 │ 14109 │ 0 (+0 -0)
=================
==== JAR ====
=================
size │ diff │ path
──────┼──────────┼─────────────────────────────────────────
│ -4.6 KiB │ - module-info.class
│ -1.4 KiB │ - META-INF/versions/9/module-info.class
──────┼──────────┼─────────────────────────────────────────
0 B │ -6 KiB │ (total)
```
Run `diffuse diff --jar old/proguardgui.jar new/proguardgui.jar > proguardgui.jar.diff`
```
OLD: proguardgui.jar
NEW: proguardgui.jar
JAR │ old │ new │ diff
───────┼───────────┼───────────┼────────
class │ 18.8 MiB │ 18.8 MiB │ -6 KiB
other │ 240.6 KiB │ 240.6 KiB │ 0 B
───────┼───────────┼───────────┼────────
total │ 19.1 MiB │ 19.1 MiB │ -6 KiB
CLASSES │ old │ new │ diff
─────────┼───────┼───────┼────────────
classes │ 5087 │ 5086 │ -1 (+0 -1)
methods │ 51116 │ 51116 │ 0 (+0 -0)
fields │ 14524 │ 14524 │ 0 (+0 -0)
=================
==== JAR ====
=================
size │ diff │ path
──────┼──────────┼─────────────────────────────────────────
│ -4.6 KiB │ - module-info.class
│ -1.4 KiB │ - META-INF/versions/9/module-info.class
──────┼──────────┼─────────────────────────────────────────
0 B │ -6 KiB │ (total)
```
Run `diffuse diff --jar old/proguard.jar new/proguard.jar > proguard.jar.diff`
```
OLD: proguard.jar
NEW: proguard.jar
JAR │ old │ new │ diff
───────┼───────────┼───────────┼────────
class │ 18.6 MiB │ 18.6 MiB │ -6 KiB
other │ 147.6 KiB │ 147.6 KiB │ 0 B
───────┼───────────┼───────────┼────────
total │ 18.7 MiB │ 18.7 MiB │ -6 KiB
CLASSES │ old │ new │ diff
─────────┼───────┼───────┼────────────
classes │ 4975 │ 4974 │ -1 (+0 -1)
methods │ 50184 │ 50184 │ 0 (+0 -0)
fields │ 14052 │ 14052 │ 0 (+0 -0)
=================
==== JAR ====
=================
size │ diff │ path
──────┼──────────┼─────────────────────────────────────────
│ -4.6 KiB │ - module-info.class
│ -1.4 KiB │ - META-INF/versions/9/module-info.class
──────┼──────────┼─────────────────────────────────────────
0 B │ -6 KiB │ (total)
```
Run `diffuse diff --jar old/proguard-ant.jar new/proguard-ant.jar > proguard-ant.jar.diff`
```
OLD: proguard-ant.jar
NEW: proguard-ant.jar
JAR │ old │ new │ diff
───────┼───────────┼───────────┼──────────
class │ 22.9 MiB │ 22.9 MiB │ -6 KiB
other │ 204.8 KiB │ 202.3 KiB │ -2.5 KiB
───────┼───────────┼───────────┼──────────
total │ 23.1 MiB │ 23.1 MiB │ -8.5 KiB
CLASSES │ old │ new │ diff
─────────┼───────┼───────┼────────────
classes │ 6158 │ 6157 │ -1 (+0 -1)
methods │ 64173 │ 64173 │ 0 (+0 -0)
fields │ 19680 │ 19680 │ 0 (+0 -0)
=================
==== JAR ====
=================
size │ diff │ path
──────┼──────────┼─────────────────────────────────────────
│ -4.6 KiB │ - module-info.class
│ -1.4 KiB │ - META-INF/versions/9/module-info.class
│ -2.5 KiB │ - META-INF/INDEX.LIST
──────┼──────────┼─────────────────────────────────────────
0 B │ -8.5 KiB │ (total)
```
Run `diffuse diff --jar proguard-gradle-7.7.1-old.jar proguard-gradle-7.7.1-new.jar > proguard-gradle-7.7.1.jar.diff`
```
OLD: proguard-gradle-7.7.1-old.jar
NEW: proguard-gradle-7.7.1-new.jar
JAR │ old │ new │ diff
───────┼───────────┼───────────┼────────
class │ 18.8 MiB │ 18.8 MiB │ -6 KiB
other │ 148.4 KiB │ 148.5 KiB │ +21 B
───────┼───────────┼───────────┼────────
total │ 18.9 MiB │ 18.9 MiB │ -6 KiB
CLASSES │ old │ new │ diff
─────────┼───────┼───────┼────────────
classes │ 5038 │ 5037 │ -1 (+0 -1)
methods │ 50946 │ 50946 │ 0 (+0 -0)
fields │ 14196 │ 14196 │ 0 (+0 -0)
=================
==== JAR ====
=================
size │ diff │ path
───────┼──────────┼─────────────────────────────────────────
│ -4.6 KiB │ - module-info.class
│ -1.4 KiB │ - META-INF/versions/9/module-info.class
108 B │ +21 B │ ∆ META-INF/MANIFEST.MF
───────┼──────────┼─────────────────────────────────────────
108 B │ -6 KiB │ (total)
```
|
|
In the compatibility matrix ( https://github.com/GradleUp/shadow ) I see that this raises the minimum java version. This is the minimum version for someone building this project, not the minimum java version of the actual jar, is that correct? |
|
That's the JDK to run, which means "the minimum version for someone building this project". |



Uh oh!
There was an error while loading. Please reload this page.