Closed kazurayam closed 10 months ago
I noticed that the project requires JDK17 as of the tag 1.3.0.
So I changed JDK to 17 using the SDKMAN! tool:
$ sdk install java 17.0.8-amzn
I needed to reboot my Mac to let the environment variable JAVA_HOME
to point the JDK 17 binary
$ java -version
openjdk version "17.0.8" 2023-07-18 LTS
OpenJDK Runtime Environment Corretto-17.0.8.7.1 (build 17.0.8+7-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.8.7.1 (build 17.0.8+7-LTS, mixed mode, sharing)
Then I tried building the project again.
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/kazuakiurayama/github/selenium-webdriver-java/selenium-webdriver-junit4/build.gradle' line: 4
* What went wrong:
An exception occurred applying plugin request [id: 'org.springframework.boot', version: '3.1.4']
> Failed to apply plugin [id 'org.springframework.boot']
> Spring Boot plugin requires Gradle 7.x (7.4 or later). The current version is Gradle 6.4.1
* 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 23s
The messages changed. This means that changing JDK version to 17 was successful. The gradle build now runs. So this issue should be closed.
Though there is another problem. I will follow in another issue.
I had JDK11 and Gradle 6.4.1 installed:
I cloned out the master branch https://github.com/kazurayam/selenium-webdriver-java , and just tried to build the project
Then I got the following error: