docToolchain / docker-image

MIT License
2 stars 18 forks source link

Running the image fails because of deprecated gradle features #43

Open alexanderjung-sdxag opened 1 year ago

alexanderjung-sdxag commented 1 year ago

Running the command for windows (docker with Windows/WSL2) yields the following output:

c:\...\src>docker run --rm --entrypoint /bin/bash -it -v %cd%:/project doctoolchain/doctoolchain:v2.2.1 -c "doctoolchain . %1 %2 %3 %4 %5 %6 %7 %8 %9 -PinputPath=src/main/asciidoc -PmainConfigFile=config/docToolchain.groovy && exit"
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :

Config file '/project/config/docToolchain.groovy' does not exist'
[ant:input]
[ant:input] do you want me to create a default one for you? (y, n)
y
You are using one or more deprecated Asciidoctor Gradle plugin features. To help with migration run with --warning-mode=all.

FAILURE: Build failed with an exception.

* Where:
Script '/home/dtcuser/docToolchain/scripts/AsciiDocBasics.gradle' line: 40

* What went wrong:
A problem occurred evaluating script.
> /project/config/docToolchain.groovy (No such file or directory)

* 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 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 21s
rdmueller commented 11 months ago

sorry, haven't noticed this issue before.

Have you already tried to follow the tutorial on https://doctoolchain.org/docToolchain/v2.0.x/020_tutorial/010_Install.html The doctoolchain wrapper helps you to come up with the right docker command to start everything up. It might be that the docs over here are outdated.