[ 
https://issues.apache.org/jira/browse/FINERACT-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16791477#comment-16791477
 ] 

Mua Ndzo Laurent commented on FINERACT-702:
-------------------------------------------

Hello [~vorburger] i integrated the plugin (latest) from 
[https://spotbugs.readthedocs.io/en/latest/gradle.html#configure-gradle-plugin] 
into the codebase and upon running *./gradlew check* to see how it successfully 
applied i noticed that the plugin works only with a higher gradle. Here is the 
output.
{code:java}
Listening for transport dt_socket at address: 8005 Download 
https://plugins.gradle.org/m2/gradle/plugin/com/github/spotbugs/spotbugs-gradle-plugin/1.6.11/spotbugs-gradle-plugin-1.6.11.pom
 Download 
https://plugins.gradle.org/m2/gradle/plugin/com/github/spotbugs/spotbugs-gradle-plugin/1.6.11/spotbugs-gradle-plugin-1.6.11.jar
 FAILURE: Build failed with an exception. * Where: Build file 
'/Users/rachmann/Documents/open_source/fineract/fineract/fineract-provider/build.gradle'
 line: 54 * What went wrong: A problem occurred evaluating root project 
'fineract-provider'. > Failed to apply plugin [id 'com.github.spotbugs'] > 
Gradle version Gradle 2.10 is unsupported. Please use Gradle 5.0 or later. * 
Try: Run with --stacktrace option to get the stack trace. Run with --info or 
--debug option to get more log output. BUILD FAILED Total time: 35.217 secs
{code}
I downgraded to 

*gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:1.6.2*  And this time 
around it says let me use Gradle 4.0 or later.

I can't seem to find the spotBugs log file version suitable for our case 
(Gradle 2.10). Any help would be appreciated thanks

> Integrate SpotBugs and fail build if equals but not hashCode is implemented
> ---------------------------------------------------------------------------
>
>                 Key: FINERACT-702
>                 URL: https://issues.apache.org/jira/browse/FINERACT-702
>             Project: Apache Fineract
>          Issue Type: Improvement
>            Reporter: Michael Vorburger.ch
>            Priority: Major
>              Labels: starter
>
> This project should activate SpotBugs (the successor to FindBugs) and make it 
> fail the build for any violations to a at least a subset of rules which are 
> almost always guaranteed to be bugs.
> For example, 
> https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html#he-class-defines-equals-and-uses-object-hashcode-he-equals-use-hashcode
>  which would have caught what I manually spotted (but shouldn't have to) in 
> https://github.com/apache/fineract/pull/524.
> FINERACT-402 has some history, but it's clearly not activated to enforce.
> FINERACT-696 could then be built on top of this.
> [~myrle] perhaps you know of any volunteer interested in doing this?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to