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
Attempting to build this with gradle 7.0 on Mac (I'm a gradle novice, so I seem to be in the target population for this sample...) I got the failure:
>XX javaparser-gradle-sample % gradle --warning-mode all shadowJar
> Configure project :
The testCompile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the testImplementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.8/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
at build_dsnwk311xnn9kogym6xt0jtx$_run_closure2.doCall(/Users/mike/GitHub/javaparser-gradle-sample/build.gradle:24)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The AbstractArchiveTask.version property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the archiveVersion property instead. See https://docs.gradle.org/6.8/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:version for more details.
at build_dsnwk311xnn9kogym6xt0jtx$_run_closure4$_closure6.doCall(/Users/mike/GitHub/javaparser-gradle-sample/build.gradle:47)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
I got rid of the first error by changing testCompile to testImplementation, but I didn't understand the second error.
The text was updated successfully, but these errors were encountered:
I got rid of the second error by change the line (near the end of build.gradle)
'Implementation-Version': version,
to
'Implementation-Version': archiveVersion,
I'm now getting another error
* What went wrong:
Execution failed for task ':compileJava'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
(It doesn't. That's not where Java gets installed these days...)
Attempting to build this with gradle 7.0 on Mac (I'm a gradle novice, so I seem to be in the target population for this sample...) I got the failure:
I got rid of the first error by changing
testCompile
totestImplementation
, but I didn't understand the second error.The text was updated successfully, but these errors were encountered: