Comments (23)
Thank you @KengoTODA for reopening. Gradle 4.10 was released today. I updated the example to use it and I can confirm that spotbugs-gradle-plugin 1.6.2 still fails with the latest Gradle release. Spotbugs users cannot use Gradle 4.10. Do you have any thoughts about my PR? Can we merge it and create version 1.6.3?
from spotbugs-gradle-plugin.
@KengoTODA can you please release a new version of the plugin to unblock Gradle 4.10 upgrades. I completely understand that you may be occupied with other things. In that case, can you add another maintainer for the project? I believe that @chali would be willing to help out.
from spotbugs-gradle-plugin.
1.6.3 has been released.
BTW our repository has RELEASE_PROCEDURE.md
so everyone can propose a PR to release this plugin. Please have a try next. :)
from spotbugs-gradle-plugin.
As an additional data point, I too am experiencing the same build failure using the Spotbugs plugin with the released version of Gradle 4.10.
from spotbugs-gradle-plugin.
@KengoTODA thanks for merging the PR. Can we get a release?
from spotbugs-gradle-plugin.
Yes! @KengoTODA I'm happy to help.
from spotbugs-gradle-plugin.
@KengoTODA can we get a release with the fix from @chali. This issue is a blocker for upgrading Gradle in our enterprise. Thanks.
from spotbugs-gradle-plugin.
Note that the above reference from the Gradle team is simply to point a user at this issue since they were experiencing the same problem reported here. It is not meant to indicate that Gradle is doing anything about this issue.
@KengoTODA we are still waiting to hear from you.
from spotbugs-gradle-plugin.
Is there something holding up this being released?
from spotbugs-gradle-plugin.
@KengoTODA please respond. We are getting to the point where the project may need to be forked and nobody wants that level of confusion if it can be so easily avoided.
from spotbugs-gradle-plugin.
@KengoTODA I would like to suggest following change which should help to be compatible across Gradle versions. #40 Would you have time to review it? We would love to adopt the new version of Gradle as soon as it is out and this would be a blocker for us. Thank you.
from spotbugs-gradle-plugin.
Also I can't build my projects with SpotBugs Gradle Plugin 1.6.2 and Gradle 4.10 with the same error message. The PR chali suggested is quite simple and well documented. Why won't your apply it?
from spotbugs-gradle-plugin.
A new version is on its way: #48
from spotbugs-gradle-plugin.
I have emailed @KengoTODA asking him to merge #40 and create a release.
from spotbugs-gradle-plugin.
I updated the example with today's gradle release candidate and the issue is still present.
from spotbugs-gradle-plugin.
Some interesting findings. When I clone the project locally and build a snapshot version on my machine which I add to the example project I don't get the error.
from spotbugs-gradle-plugin.
My findings are:
- When I build
spotbugs-gradle-plugin
with Gradle4.7
(also with4.8
,4.9
) and consume it in a project with Gradle4.10-rc-1
the project configuration fails. - When I build
spotbugs-gradle-plugin
with Gradle4.10-rc-1
and then consume it from a project with Gradle4.10-rc-1
the project configuration is successful.
I found that the JDK version doesn't matter. I think changes in interfaces which ProjectInternal
is implementing are the reason why this problem is appearing.
Gradle 4.9: interface ProjectInternal extends Project, ProjectIdentifier, FileOperations, ProcessOperations, DomainObjectContext, DependencyMetaDataProvider, ModelRegistryScope, PluginAwareInternal
Gradle 4.10-rc-1: interface ProjectInternal extends Project, ProjectIdentifier, HasFileOperations, DomainObjectContext, DependencyMetaDataProvider, ModelRegistryScope, PluginAwareInternal
from spotbugs-gradle-plugin.
I'm not sure, but is it really OUR problem? The method reference is widely used in Java community, I guess (actually hope) that it's a Gradle side matter?
from spotbugs-gradle-plugin.
I tried to build this project with Gradle version 4.10-rc-2
and 4.11-20180820000011+0000
, and both of them can pass ./gradlew build
in my local. I'll push a commit that runs build on these versions.
from spotbugs-gradle-plugin.
Yes, I was able to build the plugin with those distributions without a problem too. The issue is when you try to consume plugin build against older gradle Gradle API in a project using a newer version. The method reference is used but the conversation I posted shows documented bugs in some corner cases which I believe we are seeing here https://stackoverflow.com/questions/33929304/weird-exception-invalid-receiver-type-class-java-lang-object-not-a-subtype-of The problem might be initiated by the change in Gradle but arguably this plugin is using internal API which shouldn't be consumed so hard to say whos problem is the issue. Without a new release, the plugin cannot be consumed in a project using Gradle 4.10.
from spotbugs-gradle-plugin.
Example project mentioned in my issue shows the problem https://github.com/chali/spotbugsFailExample/tree/Gradle410LambdaConversionException. Would you, please, reconsider my PR #40
from spotbugs-gradle-plugin.
Temporary release published for those craving a release.
WARNING: I'll might delete this release after 6 months to a year year out. If you need to do a git bisect with this version, you might want to avoid it and wait for an official release.
https://plugins.gradle.org/plugin/com.github.spotbugs.temporary
from spotbugs-gradle-plugin.
Thank you @KengoTODA and @henrik242 for the 1.6.3 release! I just used it in my Gradle 4.10 build and it works great. Cheers!
from spotbugs-gradle-plugin.
Related Issues (20)
- new false positive alert since version '5.2.0' HOT 3
- silence spotbugs warnings HOT 3
- java.lang.NoSuchMethodError: 'org.apache.commons.lang3.Range org.apache.commons.lang3.Range.of(java.lang.Comparable, java.lang.Comparable)' HOT 1
- SpotBugs using wrong Java SDK in Android Studio HOT 4
- plugin should add a space character when displaying failed report files HOT 2
- External stylesheet not used when defined in external gradle file HOT 3
- Replace depreated `BaseVariant` usages
- A failure occurred while executing com.github.spotbugs.snom.internal.SpotBugsRunnerForWorker$SpotBugsExecutor HOT 5
- Plugin does not run on JDK8 HOT 1
- Reports not created for cached task HOT 2
- Groovy valueOf(String) for effort and reportLevel not working HOT 2
- Reports not being created HOT 1
- Configuration Cache compatibilities
- Spotbugs fails to run appropriately when space is present in project path
- [BUG] Disabling spotbugsIntegrationTest Task in Separate Gradle Configuration File HOT 1
- How to use reportLevel 'high' but pick specific bugs from other categories HOT 1
- 6.0.0-beta.3 - cannot set `reportLevel` property HOT 2
- Configurations for effort and reportLevel are broken. HOT 14
- Dependency Dashboard
- Spotbugs plugin for gradle 6.0.0-beta4 is broken in Netbeans 19 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotbugs-gradle-plugin.