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
To reproduce:
gh repo clone spring-projects/spring-security-samples
cd spring-security-samples/
cd servlet/spring-boot/java/oauth2/login/
./gradlew bootRun
Gives the following error:
hosermage@LAPTOP-1RPE37PF:~/projects/spring-security-samples/servlet/spring-boot/java/oauth2/login$ ./gradlew bootRun
FAILURE: Build failed with an exception.
* Where:
Build file '/home/hosermage/projects/spring-security-samples/servlet/spring-boot/java/oauth2/login/build.gradle' line: 2
* What went wrong:
Could not compile build file '/home/hosermage/projects/spring-security-samples/servlet/spring-boot/java/oauth2/login/build.gradle'.
> startup failed:
build file '/home/hosermage/projects/spring-security-samples/servlet/spring-boot/java/oauth2/login/build.gradle': 2: only alias(libs.plugins.someAlias) plugin identifiers where `libs` is a valid version catalog
For more information on the plugins {} block, please refer to https://docs.gradle.org/8.3/userguide/plugins.html#sec:plugins_block in the Gradle documentation.
@ line 2, column 2.
alias(libs.plugins.org.springframework.boot)
^
build file '/home/hosermage/projects/spring-security-samples/servlet/spring-boot/java/oauth2/login/build.gradle': 3: only alias(libs.plugins.someAlias) plugin identifiers where `libs` is a valid version catalog
For more information on the plugins {} block, please refer to https://docs.gradle.org/8.3/userguide/plugins.html#sec:plugins_block in the Gradle documentation.
@ line 3, column 2.
alias(libs.plugins.io.spring.dependency.management)
^
2 errors
* 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 530ms
hosermage@LAPTOP-1RPE37PF:~/projects/spring-security-samples/servlet/spring-boot/java/oauth2/login$
The text was updated successfully, but these errors were encountered:
That works. Also adding the toml file to servlet/spring-boot/java/oauth2/login/gradle/libs.versions.toml allows you to run ./gradlew bootRun from the login directory
Docs could use updating for people unfamiliar with gradle (like myself)
To reproduce:
gh repo clone spring-projects/spring-security-samples
cd spring-security-samples/
cd servlet/spring-boot/java/oauth2/login/
./gradlew bootRun
Gives the following error:
The text was updated successfully, but these errors were encountered: