Giter Site home page Giter Site logo

Comments (23)

chali avatar chali commented on July 28, 2024 17

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.

baron1405 avatar baron1405 commented on July 28, 2024 10

@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.

KengoTODA avatar KengoTODA commented on July 28, 2024 8

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.

baron1405 avatar baron1405 commented on July 28, 2024 7

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.

baron1405 avatar baron1405 commented on July 28, 2024 7

@KengoTODA thanks for merging the PR. Can we get a release?

from spotbugs-gradle-plugin.

chali avatar chali commented on July 28, 2024 7

Yes! @KengoTODA I'm happy to help.

from spotbugs-gradle-plugin.

baron1405 avatar baron1405 commented on July 28, 2024 5

@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.

baron1405 avatar baron1405 commented on July 28, 2024 5

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.

JLLeitschuh avatar JLLeitschuh commented on July 28, 2024 5

Is there something holding up this being released?

from spotbugs-gradle-plugin.

baron1405 avatar baron1405 commented on July 28, 2024 3

@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.

chali avatar chali commented on July 28, 2024 2

@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.

makkimesser avatar makkimesser commented on July 28, 2024 2

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.

henrik242 avatar henrik242 commented on July 28, 2024 2

A new version is on its way: #48

from spotbugs-gradle-plugin.

baron1405 avatar baron1405 commented on July 28, 2024 1

I have emailed @KengoTODA asking him to merge #40 and create a release.

from spotbugs-gradle-plugin.

chali avatar chali commented on July 28, 2024

I updated the example with today's gradle release candidate and the issue is still present.

from spotbugs-gradle-plugin.

chali avatar chali commented on July 28, 2024

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.

chali avatar chali commented on July 28, 2024

My findings are:

  • When I build spotbugs-gradle-plugin with Gradle 4.7 (also with 4.8, 4.9) and consume it in a project with Gradle 4.10-rc-1 the project configuration fails.
  • When I build spotbugs-gradle-plugin with Gradle 4.10-rc-1 and then consume it from a project with Gradle 4.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.

KengoTODA avatar KengoTODA commented on July 28, 2024

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.

KengoTODA avatar KengoTODA commented on July 28, 2024

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.

chali avatar chali commented on July 28, 2024

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.

chali avatar chali commented on July 28, 2024

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.

JLLeitschuh avatar JLLeitschuh commented on July 28, 2024

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.

baron1405 avatar baron1405 commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.