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

bakeInit gradle task is downloading to the temp folder but not getting copied to the src folder in Windows #65

Open
fazeem84 opened this issue Dec 30, 2021 · 2 comments

Comments

@fazeem84
Copy link

fazeem84 commented Dec 30, 2021

The build is not executed without adding without adding commons-configuration, so added this dependency in build script configuration
to execute it successfully.

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath  'commons-configuration:commons-configuration:1.10'
    }
}

plugins {
    id 'org.jbake.site' version '5.5.0'
}
bakeInit {
    template = 'freemarker'
}



and build executed without any failure, but the template are not getting generated in the JBake folder

image

but it seems template's are downloaded and extracted in temp folder

image

so issue seems to be in init.groovy

image

`

@hoplite82
Copy link

hoplite82 commented May 26, 2022

Had the same issue. Copied per Hand to src in Projekt and the gradle task bake worked. But bakePreview not.
The buildfolder was saved in .gradle/temp

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath  'commons-configuration:commons-configuration:1.10'
    }
}

plugins {
    id 'org.jbake.site' version '5.5.0'
    id 'groovy'
    id 'java-library'
}
repositories {
    mavenCentral()
    jcenter()
}
jbake {
   srcDirName = 'src/jbake'
   destDirName = 'jbakeOut'
   clearCache = true
}


FAILURE: Build failed with an exception.

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

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

@jmini
Copy link

jmini commented Jun 1, 2022

Same error for me while running gradle bakeInit, following the README.adoc file:

=== Init
You can initialise the project structure by running the following command:
----
gradle bakeInit
----

Got:

> Task :bakeInit FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bakeInit'.
> java.lang.ClassNotFoundException: org.apache.commons.configuration.CompositeConfiguration

* 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 632ms

You need to configure the buildscript section as explained by @fazeem84.

jmini added a commit to jmini/jbake-gradle-sample that referenced this issue Jun 1, 2022
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