You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running ./dtcw previewSite or ./dtcw docker previewSite the build fails in task :jettyRun throwing the exception
Caused by: java.lang.NoClassDefFoundError: org/gradle/api/internal/artifacts/dsl/dependencies/DependencyFactory$ClassPathNotation
at org.akhikhl.gretty.DefaultLauncher.getCurrentGroovy(DefaultLauncher.groovy:44)
at org.akhikhl.gretty.DefaultLauncher$getCurrentGroovy$0.callStatic(Unknown Source)
at org.akhikhl.gretty.DefaultLauncher.getRunnerClassPath(DefaultLauncher.groovy:37)
at org.akhikhl.gretty.DefaultLauncher$getRunnerClassPath.callStatic(Unknown Source)
at org.akhikhl.gretty.DefaultLauncher.beforeLaunch(DefaultLauncher.groovy:69)
at org.akhikhl.gretty.LauncherBase.launch(LauncherBase.groovy:141)
❯ ./dtcw docker previewSite
dtcw 0.50 - ##DTCW_GIT_HASH##
docToolchain 3.1.2
OS/arch: Darwin/x86_64
Available docToolchain environments: local sdk docker
Environments with docToolchain [3.1.2]: local docker
Using environment: docker
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/8.1.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
> Task :core:compileJava NO-SOURCE
> Task :core:compileGroovy
> Task :core:processResources NO-SOURCE
> Task :core:classes
> Task :core:jar
> Task :previewSite
> Task :prepareInplaceWebAppFolder NO-SOURCE
> Task :createInplaceWebAppFolder
> Task :compileJava NO-SOURCE
> Task :compileGroovy NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :prepareInplaceWebAppClasses UP-TO-DATE
> Task :prepareInplaceWebApp
> Task :jettyRun FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jettyRun'.
> org/gradle/api/internal/artifacts/dsl/dependencies/DependencyFactory$ClassPathNotation
* 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 31s
5 actionable tasks: 5 executed
Expected behavior
The `previewSite task should finish without throwing an error
Configuration
docToolchain 3.1.2
OS: macOS (docker / java)
Relevant JDK 17, gradle 8.1.1
The text was updated successfully, but these errors were encountered:
Could we get rid of the Webserver dependency then? @rdmueller ? Afaik this dependency is quite old due to lack of Java 8 support in newer versions but since we dropped 8 in v3.x we may now decide to get rid at all
yes, good idea. let's replace it with a hint that you can view build/microsite/output/index.html directly in the browse, or, if you want a server, use python -m http.server.
Who wants to create this PR?
Describe the bug
When running
./dtcw previewSite
or./dtcw docker previewSite
the build fails in task :jettyRun throwing the exceptionTo Reproduce
Steps to reproduce the behavior:
Expected behavior
The `previewSite task should finish without throwing an error
Configuration
The text was updated successfully, but these errors were encountered: