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

Could not get unknown property 'compile' #24

Open
gyorokpeter opened this issue May 13, 2022 · 3 comments
Open

Could not get unknown property 'compile' #24

gyorokpeter opened this issue May 13, 2022 · 3 comments

Comments

@gyorokpeter
Copy link

I'm getting the following error when trying to use the plugin:

org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'com.iadams.sonar-packaging', version: '0.1.3']

By looking at --stacktrace, it seems to come from here:

        at com.iadams.gradle.plugins.SonarPackagingPlugin.apply(SonarPackagingPlugin.groovy:56)
        at com.iadams.gradle.plugins.SonarPackagingPlugin.apply(SonarPackagingPlugin.groovy)

I tried with Gradle version 7.4.2.

@iwarapter
Copy link
Owner

Hi @gyorokpeter i'm not actively maintaining the project anymore - however the last changes only covered tests against gradle 3/4 - https://github.com/iwarapter/gradle-sonar-packaging-plugin/blob/master/src/integTest/groovy/com/iadams/gradle/plugins/GradleCompatabilityIntegSpec.groovy#L63

@otrosien
Copy link

otrosien commented May 13, 2022

you don't need this plugin, it's actually as easy as building with the shadowPlugin and some simple pom modifications as described here: #22 (comment)

see also https://github.com/sonar-perl/sonar-perl/blob/master/sonar-perl-plugin/build.gradle#L59

@gyorokpeter
Copy link
Author

Thanks. I looked at this project because of what the official doc suggests:
https://docs.sonarqube.org/latest/extend/developing-plugin/
Maybe that doc could use an update on how to build a plugin with Gradle.

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