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

Error when execute any tasks in Gradle 6.3 #53

Closed
dbuos opened this issue May 6, 2020 · 4 comments · Fixed by #59
Closed

Error when execute any tasks in Gradle 6.3 #53

dbuos opened this issue May 6, 2020 · 4 comments · Fixed by #59
Assignees
Labels
bug Something isn't working work-in-progress

Comments

@dbuos
Copy link
Contributor

dbuos commented May 6, 2020

When I execute gradle generateModel --name=[name] in gradle version > 6 (6.3), the plgin fails with following error:

  • Where:
    Build file '/Users/daniel/Projects/banco/dojo-reactive/build.gradle' line: 23

  • What went wrong:
    An exception occurred applying plugin request [id: 'net.saliman.cobertura', version: '3.0.0']

Failed to apply plugin [id 'net.saliman.cobertura']
Could not create task ':generateCoberturaReport'.
> Could not create task of type 'GenerateReportTask'.
> No signature of method: static org.gradle.util.DeprecationLogger.whileDisabled() is applicable for argument types: (net.saliman.gradle.plugin.cobertura.GenerateReportTask$1) values: [net.saliman.gradle.plugin.cobertura.GenerateReportTask$1@1a5e6363]

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2s

FAILURE: Build failed with an exception.

@dbuos dbuos added the bug Something isn't working label May 6, 2020
@alx-val
Copy link

alx-val commented May 27, 2020

@dbuos I can work on this issue.

@dbuos
Copy link
Contributor Author

dbuos commented May 27, 2020

Great! the issue is all yours! @alx-val

@santitigaga
Copy link
Contributor

@dbuos I can work on this issue.
Hi @alx-val , please check the PR in cobertura plugin stevesaliman/gradle-cobertura-plugin#170 maybe this fix the error.

@alx-val
Copy link

alx-val commented May 29, 2020

The problem is when we use gradle local major to 6.1.1, because after this version, gradle changes path and class DeprecationLogger from import org.gradle.util.DeprecationLogger to import org.gradle.internal.deprecation.DeprecationLogger, so I recomend including in the instruction file Readme.md but use gralde wrapper. When the PR (link) for plugin net.saliman.gradle.plugin.cobertura is approved so we modify the wrapper version, plugin architecture version and publish this.

@santitigaga thanks for you help

@santitigaga santitigaga assigned juancgalvis and unassigned dbuos and alx-val Jun 4, 2020
@santitigaga santitigaga linked a pull request Jun 4, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working work-in-progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants