Yan,

What is your build command / process?

Ray

On Mon, 2023-12-11 at 07:01 -0800, Yan Zhou wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

HI,

i am using CAS 6.6.12 overlay, new to Gradle, so I maybe missing something 
obvious.

I need to create my own authentication handler class, so, In my build.gradle, I 
added:

implementation "org.apereo.cas:cas-server-core-authentication-api"
implementation "org.apereo.cas:cas-server-core-api-authentication"

keep getting compiler error, although the classes are there in my classpath.

this is the portion of my build.gradle file. the dependencies are listed there.

dependencies {
/**
* Do NOT modify the lines below or else you will risk breaking dependency 
management.
*/
implementation 
enforcedPlatform("org.apereo.cas:cas-server-support-bom:${project.'cas.version'}")
implementation 
platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)

/**
* Do NOT modify the lines below or else you will risk breaking the build.
*/
implementation "org.apereo.cas:cas-server-core-api-configuration-model"
implementation "org.apereo.cas:cas-server-webapp-init"

developmentOnly 
"org.springframework.boot:spring-boot-devtools:${project.springBootVersion}"

/**
* CAS dependencies and modules may be listed here.
*
* There is no need to specify the version number for each dependency
* since versions are all resolved and controlled by the dependency management
* plugin via the CAS bom.
**/
implementation "org.apereo.cas:cas-server-support-rest"
implementation "org.apereo.cas:cas-server-support-saml-idp"
implementation "org.apereo.cas:cas-server-support-pac4j-webflow"
implementation "org.apereo.cas:cas-server-support-json-service-registry"
implementation "org.apereo.cas:cas-server-core-authentication-api"
implementation "org.apereo.cas:cas-server-core-api-authentication"
implementation "org.apereo.cas:cas-server-core-webflow-api"
implementation "org.apereo.cas:cas-server-core-api-webflow"
implementation "org.apereo.cas:cas-server-core-web-api"

if (project.hasProperty("casModules")) {
...................
}

testImplementation "org.springframework.boot:spring-boot-starter-test"
}

this is the output of gradle build, i verified that the classes are right there 
in the two jars, not sure why the build cannot find the two symbols: 
AuthenticationHandler and AbstractAuthenticationHandler.

2023-12-11T09:40:59.478-0500 [INFO] 
[org.gradle.jvm.toolchain.internal.DefaultToolchainJavaCompiler] Compiling with 
toolchain 'C:\Program Files\Java\jdk-11.0.12'.
2023-12-11T09:40:59.484-0500 [DEBUG] 
[org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler] Compiler 
arguments: --release 11 -d 
C:\apereocas66x\cas-overlay-template\build\classes\java\main -encoding UTF-8 -h 
C:\apereocas66x\cas-overlay-template\build\generated\sources\headers\java\main 
-g -sourcepath "" -processorpath 
C:\Users\ya....ou\.gradle\caches\modules-2\files-2.1\org.projectlombok\lombok\1.18.28\a2ff5da8bcd8b1b26f36b806ced63213362c6dcc\lombok-1.18.28.jar
 -s 
C:\apereocas66x\cas-overlay-template\build\generated\sources\annotationProcessor\java\main
 -XDuseUnsharedTable=true -classpath 
C:\Users\ya....ou\.gradle\caches\modules-2\files-2.1\org.apereo.cas\cas-server-core-authentication-api\6.6.12\93b4e0a396cb935b7f967a813a70181976934f0e\cas-server-core-authentication-api-6.6.12.jar;
 ..... 
C:\Users\ya....ou\.gradle\caches\modules-2\files-2.1\org.apereo.cas\cas-server-core-api-authentication\6.6.12\38150afad77cd42a83879eb4027e272c85b6047c\cas-server-core-api-authentication-6.6.12.jar;......C:\Users\ya....ou\.m3\repository\com\github\scribejava\scribejava-java8\8.3.1\scribejava-java8-8.3.1.jar
 -parameters -Xlint:-processing 
C:\apereocas66x\cas-overlay-template\src\main\java\com\quest\cas\trusted\QdxTrustedSamlAuthenticationEventExecutionPlanConfiguration.java
 
C:\apereocas66x\cas-overlay-template\src\main\java\com\quest\cas\trusted\QdxTrustedSamlAuthenticationHandler.java
 
C:\apereocas66x\cas-overlay-template\src\main\java\org\apereo\cas\config\CasOverlayOverrideConfiguration.java
2023-12-11T09:40:59.485-0500 [INFO] 
[org.gradle.api.internal.tasks.compile.JdkJavaCompiler] Compiling with JDK Java 
compiler API.
2023-12-11T09:41:01.136-0500 [ERROR] [system.err] 
C:\apereocas66x\cas-overlay-template\src\main\java\com\quest\cas\trusted\QdxTrustedSamlAuthenticationEventExecutionPlanConfiguration.java:20:
 error: cannot find symbol
2023-12-11T09:41:01.137-0500 [ERROR] [system.err]     public 
AuthenticationHandler qdxTrustedSamlAuthenticationHandler() {
2023-12-11T09:41:01.137-0500 [ERROR] [system.err]            ^
2023-12-11T09:41:01.137-0500 [ERROR] [system.err]   symbol:   class 
AuthenticationHandler
2023-12-11T09:41:01.137-0500 [ERROR] [system.err]   location: class 
QdxTrustedSamlAuthenticationEventExecutionPlanConfiguration
2023-12-11T09:41:01.137-0500 [ERROR] [system.err] 
C:\apereocas66x\cas-overlay-template\src\main\java\com\quest\cas\trusted\QdxTrustedSamlAuthenticationHandler.java:9:
 error: cannot find symbol
2023-12-11T09:41:01.138-0500 [ERROR] [system.err] public class 
QdxTrustedSamlAuthenticationHandler extends AbstractAuthenticationHandler {
2023-12-11T09:41:01.138-0500 [ERROR] [system.err]                               
                           ^
2023-12-11T09:41:01.138-0500 [ERROR] [system.err]   symbol: class 
AbstractAuthenticationHandler
2023-12-11T09:41:01.139-0500 [ERROR] [system.err] 2 errors
2023-12-11T09:41:01.456-0500 [LIFECYCLE] 
[org.gradle.internal.operations.DefaultBuildOperationRunner]
2023-12-11T09:41:01.456-0500 [DEBUG] 
[org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build 
operation 'Compile Java for :compileJava'
2023-12-11T09:41:01.456-0500 [DEBUG] 
[org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build 
operation 'Execute compile for :compileJava'
2023-12-11T09:41:01.456-0500 [DEBUG] 
[org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build 
operation 'Executing task ':compileJava''
2023-12-11T09:41:01.457-0500 [DEBUG] 
[org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 
'Snapshot outputs after executing task ':compileJava'' started
2023-12-11T09:41:01.458-0500 [DEBUG] 
[org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build 
operation 'Snapshot outputs after executing task ':compileJava''
2023-12-11T09:41:01.775-0500 [LIFECYCLE] [class 
org.gradle.internal.buildevents.TaskExecutionLogger]
2023-12-11T09:41:01.775-0500 [LIFECYCLE] [class 
org.gradle.internal.buildevents.TaskExecutionLogger] > Task :compileJava FAILED
2023-12-11T09:41:01.456-0500 [DEBUG] 
[org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 
'Compile Java for :compileJava' completed
2023-12-11T09:41:01.456-0500 [DEBUG] 
[org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 
'Execute compile for :compileJava' completed
2023-12-11T09:41:01.456-0500 [DEBUG] 
[org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 
'Executing task ':compileJava'' completed

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/29694ff23b14a4303edcc6faf6ae0372f927884c.camel%40uvic.ca.

Reply via email to