johnrengelman / shadow

Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries. Gradle version of Maven's Shade plugin.
http://imperceptiblethoughts.com/shadow/
Apache License 2.0
3.61k stars 390 forks source link

Gradle Warning: CopyProcessingSpec.setFileMode(Integer) method has been deprecated #924

Open alexanderankin opened 5 days ago

alexanderankin commented 5 days ago

including the plugin on gradle 8.8 results in the following message printed:

The CopyProcessingSpec.setFileMode(Integer) method has been deprecated. This is scheduled to be removed in Gradle 9.0. Please use the filePermissions(Action) method instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.8/userguide/upgrading_version_8.html#unix_file_permissions_deprecated

Shadow Version

id 'com.github.johnrengelman.shadow' version '8.1.1'

Gradle Version

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

Expected Behavior

no warning printed

Actual Behavior

warning as described above

Gradle Build Script(s)

do not believe it is relevant

Content of Shadow JAR (jar tf <jar file> - post link to GIST if too long)

do not believe it is relevant


i plan to revisit this issue but feel free to close if it is not useful (or welcome).

edit: turns out it is probably just this line of code:

https://github.com/johnrengelman/shadow/blob/9c5182d2d9c5f7141e4d2a525ec94d6111283cd9/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.groovy#L129

in this method:

https://github.com/johnrengelman/shadow/blob/9c5182d2d9c5f7141e4d2a525ec94d6111283cd9/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.groovy#L117-L134

called in the main apply method:

https://github.com/johnrengelman/shadow/blob/9c5182d2d9c5f7141e4d2a525ec94d6111283cd9/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.groovy#L30-L45

Goooler commented 2 days ago

See #876.