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

0.16.1 crash: missing getProperty() implementation #193

Open
akarnokd opened this issue May 5, 2021 · 8 comments
Open

0.16.1 crash: missing getProperty() implementation #193

akarnokd opened this issue May 5, 2021 · 8 comments

Comments

@akarnokd
Copy link

akarnokd commented May 5, 2021

Hi. I upgraded to 0.16.1 and now my build (Gradle 6.8.3) crashes with the following error:

Receiver class com.hierynomus.gradle.license.LicenseBasePlugin does not define or inherit an implementation of the resolved method 'abstract java.lang.Object getProperty(java.lang.String)' of interface groovy.lang.GroovyObject.

Caused by: java.lang.AbstractMethodError: Receiver class com.hierynomus.gradle.license.LicenseBasePlugin does not define or inherit an implementation of the resolved method 'abstract java.lang.Object getProperty(java.lang.String)' of interface groovy.lang.GroovyObject.
at com.hierynomus.gradle.license.LicenseBasePlugin$_createExtension_closure2.doCall(LicenseBasePlugin.groovy:73)

0.15.0 still works.

@NilsOliverLinden
Copy link

NilsOliverLinden commented May 5, 2021

It seems Gradle 7.0 and license-gradle-plugin 0.16.1 are compatible.

@hierynomus
Copy link
Owner

Yes, that's what I used when releasing/testing 0.16.1 indeed. I'll check with 6.0+ to see whether something can be done to improve this.

@rarcher
Copy link

rarcher commented May 22, 2021

I am also experiencing this issue. In Gradle 6.3, in my case.

@rarcher
Copy link

rarcher commented May 22, 2021

Work-around seems to be to upgrade Gradle and the plugin at the same time, as 0.15.0 seems to be incompatible with Gradle 7.

@Samuel3
Copy link

Samuel3 commented Jun 16, 2021

@rarcher If you have a bigger project with multiple Gradle plugins it is not always so easy to update the Gradle version due to the plugin constraints. I would really appreciate a fix for Gradle 7.0 as well as the versions below.

@torgeros
Copy link

torgeros commented Jul 4, 2021

something when running version 0.15.0 with gradle:

Executing tasks: [downloadLicenses] in project XXXXXXXXXXXXXXXXXXXXXXXXX

> Task :app:downloadLicenses

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 141ms
1 actionable task: 1 executed
14:32:12: Task execution finished 'downloadLicenses'.

@xtreme-shane-lattanzio
Copy link

I am also running into this.Are there plans to have the new version be backwards compatible with older versions of gradle?

@ngyukman
Copy link

ngyukman commented Aug 27, 2021

From our experience, building the plugin using 6.9 can support both gradle 6 and gradle 7
committed #202 to fix the issue

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

8 participants