-
Notifications
You must be signed in to change notification settings - Fork 30
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
DepClean Gradle Plugin implementation. #93
Conversation
Hello @tdurieux @bbaudry |
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.
Could you remove all the Gradle folders, we would like to avoid to have .ar files inside the project?
Could you remove all the .gradle folder from the test resources?
Could you rename the folder depclean-gradle-plugin/src/Test to test?
It is for the moment difficult to review the changes when so many files are included in the PR. After you remove the folders I will continue to review the PR
I already removed them but I forgot to remove their caches, but now I removed them too.
Renamed 👍🏽
Are you talking about gradle.wrapper folders? If no, then please can you be more specific but If yes then in my knowledge we should not involve these folders in .gitignore as they are important ones. But if you want these folders to be ignored for now then I can remove them too. So please can you be more specific about this question that what I have to do. |
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.
Good job, the PR seems good. There are few elements that need to improve but it should be relatively fast.
depclean-gradle-plugin/src/main/java/se/kth/depclean/depcleanGradleAction.java
Outdated
Show resolved
Hide resolved
depclean-gradle-plugin/src/main/java/se/kth/depclean/DepCleanGradleTask.java
Outdated
Show resolved
Hide resolved
depclean-gradle-plugin/src/main/java/se/kth/depclean/DepCleanGradleTask.java
Outdated
Show resolved
Hide resolved
...an-gradle-plugin/src/main/java/se/kth/depclean/analysis/GradleProjectDependencyAnalysis.java
Outdated
Show resolved
Hide resolved
...an-gradle-plugin/src/main/java/se/kth/depclean/analysis/GradleProjectDependencyAnalysis.java
Outdated
Show resolved
Hide resolved
...dle-plugin/src/test/resources/all_dependencies_used/gradle/wrapper/gradle-wrapper.properties
Outdated
Show resolved
Hide resolved
depclean-gradle-plugin/src/main/java/se/kth/depclean/DepCleanGradleAction.java
Show resolved
Hide resolved
/** | ||
* If true, the project's classes in target/test-classes are not going to be analyzed. | ||
*/ | ||
private final boolean isIgnoredTest; |
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.
Could you create the same parameters that we have in the maven plugins? (could be done in a separate PR)
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.
I added all the parameters that we have in the maven plugin except for 3 parameters about which I talked about here
Please take a look there and then reply accordingly.
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.
I would still implement those parameters, we can have set the default to false for those additional parameters but those are useful.
Hello @tdurieux Thank you. |
depclean-gradle-plugin/src/main/java/se/kth/depclean/DepCleanGradleAction.java
Outdated
Show resolved
Hide resolved
...le-plugin/src/main/java/se/kth/depclean/analysis/DefaultGradleProjectDependencyAnalyzer.java
Outdated
Show resolved
Hide resolved
Looks good. |
…ties classes for Action class
Hii @tdurieux, |
I just realized that Github Action does not execute the test from the gradle plugin. Could you update https://github.com/castor-software/depclean/blob/master/.github/workflows/build.yml to include the gradle plugin tests. It is a good job, continue like this! |
…were not building automatically, resulting failure of tests)
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Hii @tdurieux Thank you |
Hii @tdurieux Thank you |
Hii @tdurieux Thank you |
The work of this PR is divided and implemented int these PRs : |
Currently, I think I have implemented the core logic correctly, but still, there are some drawbacks that I am still trying to improve.
Also, the code that I have written until now is very unmanaged, there are lots of unnecessary commented out code, there are lots of method that I used for debugging and I provided very few java docs, so sorry for that. Please ignore these parts of code.
Currently to test the plugin,
gradle clean build
without changing anything,gradle publishToMavenLocal
gradle clean build
gradle copyDependenciesLocally
task.gradle debloat
task and you can see the results.Thank you