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

HTML report doesn't generates when gradle-lombok plugins is also applied #94

Closed
daggerok opened this issue Jan 6, 2019 · 5 comments
Closed

Comments

@daggerok
Copy link

daggerok commented Jan 6, 2019

Hello, this issue comes from that one: #32

what's wrong

when gradle lombok plugin is applied, spotbugs-gradle-plugin generates XML reports instead of configured HTML format

how to reproduce

to reproduce a bug, please do next:

  1. clone daggerok/spotbugs-gradle-plugin-multi-project-example:
git clone https://github.com/daggerok/spotbugs-gradle-plugin-multi-project-example
  1. uncomment line 25 in root build.gradle file:
//  id 'io.franzbecker.gradle-lombok' version '1.14' apply false
  1. run spotbugs analysis:
./gradlew check -PignoreBugs
  1. and finally, verify wrong reports format:
tree ./build/spotbugs
./build/spotbugs
├── more-sub-projects
│   ├── main.xml
│   └── test.xml
├── more-sub-projects-one-more-sub-project
│   ├── main.xml
│   └── test.xml
└── sub-project
    ├── main.xml
    └── test.xml

as you can see, XML reports was generated instead of configured html format. As soon line 25 will be commented out, html reports will be generated as expected.


Regards,
Maksim

@daggerok daggerok mentioned this issue Jan 6, 2019
@simPod
Copy link

simPod commented Mar 18, 2019

I have also discovered that it generates HTML reports but only up to version 1.6.8.

When upgraded to 1.6.9+ it generates XML 🤔

@daggerok
Copy link
Author

@simPod checkout my solution from 1.6.9 branch. It's generates html report with 1.6.9 version without lombok plugin applied, but it's not when lombok plugin applied (see branch 1.6.9-lombok)

@simPod
Copy link

simPod commented Mar 19, 2019

@daggerok I see. It was probably misbehaving for me and I had to restart gradle daemons. Now it works with 1.7.1 as well.

I have similar issue as you. Having this makes spotbugs generate xml no matter what.

buildscript {
    dependencies {
        classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.3'
    }
}

Removing classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.3' results in html report

@simPod
Copy link

simPod commented Mar 19, 2019

Also any other plugin, like spring boot causes the same

@KengoTODA
Copy link
Member

I cannot reproduce this problem with latest versions:

  • Gradle 5.6 (to use spotbugs-gradle-plugin v4.x)
  • spotbugs 4.0.6
  • spotbugs-gradle-plugin 4.4.3

please feel free to reopen this issue when you could reproduce with them.

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

No branches or pull requests

3 participants