Skip to content
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

Fix deprecation warnings for gradle 7 #216

Merged
merged 2 commits into from
Feb 3, 2020
Merged

Conversation

madmike200590
Copy link
Collaborator

@madmike200590 madmike200590 commented Jan 13, 2020

Addresses issue #214

  • changed deprecated dependency config "compile" to "implementation"
  • changed deprecated property "archiveName" to use "archiveFileName" for bundledJar task
  • exclude all "LICENSE.txt" and "NOTICE.txt" files from bundled jar

Note that LICENSE and NOTICE files are excluded from bundled jar in order to avoid having to handle duplicate files since all apache commons dependencies have their own files of that name which would have to be properly handled (ideally merged) otherwise. The aforementioned "proper handling" would require use of the gradle shadow plugin, which unfortunately is not gradle 7 compliant itself (as of version 5.2.0)

* changed deprecated dependency config "compile" to "implementation"
* changed deprecated property "archiveName" to use "archiveFileName" for bundledJar task
* exclude all "LICENSE.txt" and "NOTICE.txt" files from bundled jar (to avoid handling duplicates in classpath, since all apache commons dependencies have their own files of that name which would have to be merged otherwise)
@codecov
Copy link

codecov bot commented Jan 13, 2020

Codecov Report

Merging #216 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             master   #216      +/-   ##
==========================================
- Coverage     79.01%    79%   -0.02%     
+ Complexity     2072   2071       -1     
==========================================
  Files           145    145              
  Lines          6582   6582              
  Branches       1152   1152              
==========================================
- Hits           5201   5200       -1     
  Misses          979    979              
- Partials        402    403       +1
Impacted Files Coverage Δ Complexity Δ
...in/java/at/ac/tuwien/kr/alpha/common/Interner.java 90% <0%> (-10%) 3% <0%> (-1%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b7d809f...2094e41. Read the comment docs.

Copy link
Member

@lorenzleutgeb lorenzleutgeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one comment regarding exclusion of specific files, all other changes LGTM.

build.gradle Outdated Show resolved Hide resolved
@AntoniusW AntoniusW merged commit 3c27810 into master Feb 3, 2020
@AntoniusW AntoniusW deleted the gradle7_compliancy branch February 3, 2020 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants