proguard icon indicating copy to clipboard operation
proguard copied to clipboard

Migrate to Shadow 9

Open Goooler opened this issue 3 months ago • 3 comments

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)                                 

Goooler avatar Sep 25 '25 07:09 Goooler

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?

rubenpieters avatar Sep 29 '25 08:09 rubenpieters

That's the JDK to run, which means "the minimum version for someone building this project".

Goooler avatar Sep 29 '25 08:09 Goooler