Configuration classes for tests must be marked with @TestConfiguration

76 views
Skip to first unread message

RM2020

unread,
Oct 12, 2020, 10:44:29 PM10/12/20
to CAS Community
Hi, I am using following https://github.com/apereo/cas/releases/tag/v6.2.3 release to
do my first gradlew.bat clean build tasks and I get following message. How do I resolve this?

> Task :api:cas-server-core-api-configuration-model:checkstyleMain
[ant:checkstyle] [ERROR] C:\Users\rm\Downloads\cas-6.2.3\api\cas-server-core-api-configuration-model\src\main\java\org\apereo\cas\configuration\CasConfigurationProperties.java:63: Configuration classes for tests must be marked with @TestConfiguration [useTestConfiguration]

> Task :api:cas-server-core-api-configuration-model:checkstyleMain FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':api:cas-server-core-api-configuration-model:checkstyleMain'.
> Checkstyle rule violations were found. See the report at: file:///C:/Users/rm/Downloads/cas-6.2.3/api/cas-server-core-api-configuration-model/build/reports/checkstyle/main.html
  Checkstyle files with violations: 1
  Checkstyle violations by severity: [error: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

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.

BUILD FAILED in 3m 39s
47 actionable tasks: 34 executed, 13 up-to-date

Chris Kell

unread,
May 24, 2021, 6:24:20 PM5/24/21
to CAS Community, RM2020
Did you find a solution to this?  I have the exact same problem.  Excluding tests with gradlew -x test doesn't work.
Reply all
Reply to author
Forward
0 new messages