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

Update plugin to latest Gradle standards #3

Merged

Conversation

jjohannes
Copy link
Contributor

@REPLicated I was looking for a simple solution (before I build one myself) that scans a classpath for duplicates. Yours is exactly what I was looking for. I think something like this should be used by much more projects.

I found a few things to update to make it follow latest Gradle standards and make it compatible with the new Configuration Cache feature. Would you be interested in integrating this and release a new version?

Background
I am doing a series of videos about the Classpath and related concepts in Gradle (first part here) and need something like this there soon. And I maintain a GitHub project where I show how latest Gradle features may be used to get rid of dependency chaos - there I would also like to add this plugin (or something similar).

About the changes in this PR:

  • Current Gradle version is now 7.5.1
  • Minimal supported version is now 6.6
  • The Task can now be cached (if Build Cache is active)
  • The Task is now compatible with the Configuration Cache

Note: 6.6+ is needed tow write tasks as abstract classes with abstract getters.

The build now uses the Kotlin DSL so that the embedded-kotlin plugin can be used to compile/run against the Kotlin version embedded in Gradle (this is not supported in Groovy DSL right now).

- Current Gradle version is 7.5.1
- Minimal supported version is now 6.6

6.6+ is needed tow write tasks as abstract classes with abstract
getters.

The build now uses the Kotlin DSL so that the `embedded-kotlin` plugin
can be used to compile/run against the Kotlin version embedded in Gradle
(this is not supported in Groovy DSL right now).
@REPLicated
Copy link
Owner

@jjohannes : Thank you for the contribution and the helpful description. I intend to test the changes in a project where I use this plugin and then release a new version in the next few days.

This makes sure that even if another JDK version is used to build
the plugin (e.g. in an environment where jenv is not installed) the
version stored in the '.java-version' file is used as target.
@REPLicated REPLicated merged commit 313da31 into REPLicated:master Nov 25, 2022
@jjohannes
Copy link
Contributor Author

Thank you @REPLicated for integrating this and releasing a new version!

@jjohannes jjohannes deleted the update_to_latest_gradle_standards branch January 24, 2023 06:48
@jjohannes
Copy link
Contributor Author

@REPLicated just want to let you know that I show the plugin in the video in case you ever want to use that: https://youtu.be/KocTqF0hO_8

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.

2 participants