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

Cannot run 'bakePreview' task when using gradle 7.4.2 #68

Open
jhrom opened this issue Jul 8, 2022 · 3 comments · May be fixed by #72
Open

Cannot run 'bakePreview' task when using gradle 7.4.2 #68

jhrom opened this issue Jul 8, 2022 · 3 comments · May be fixed by #72

Comments

@jhrom
Copy link

jhrom commented Jul 8, 2022

When I try to start bakePreview task, exception is thrown:

Caused by: groovy.lang.MissingMethodException: No signature of method:
org.gradle.internal.logging.services.DefaultLoggingManager.setLevel() is applicable for argument types: (org.gradle.api.logging.LogLevel) values: [INFO]
Possible solutions: getLevel()
at org.jbake.gradle.JBakeServeTask.serve(JBakeServeTask.groovy:49)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

Other tasks work correctly

I'll submit fix for it soon

@jhrom
Copy link
Author

jhrom commented Jul 8, 2022

68-gradle-fix.patch.txt

Because of the lack of permissions, I was not able to create a new branch. I attached the fix as a patch.

@tjuricek-at-salesforce
Copy link

This is not working with gradle 8.0 as well, the error just shows up a little differently.

Execution failed for task ':bakePreview'.
> Cannot set readonly property: level for class: org.gradle.internal.logging.services.DefaultLoggingManager

@mariogarcia
Copy link

Same here:

  • Gradle 7.2
  • JDK11
* What went wrong:
Execution failed for task ':website:bakePreview'.
> Cannot set readonly property: level for class: org.gradle.internal.logging.services.DefaultLoggingManager

mariogarcia added a commit to mariogarcia/jbake-gradle-plugin that referenced this issue Feb 24, 2023
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

Successfully merging a pull request may close this issue.

3 participants