problem to update cas 6.3.7.4 to 6.6.14

123 views
Skip to first unread message

Danielo De León

unread,
Dec 29, 2023, 9:09:11 AM12/29/23
to CAS Community
Hi,
I am having problems updating cas 6.3.7.4 to 6.6.14, when I do ./gradlew clean explodeWar I get error messages like this:

/opt/workspace/cas-overlay-template/src/main/java/org/apereo/cas/support/pac4j/authentication/handler/support/DelegatedClientAuthenticationHandler.java:13: error: cannot find symbol
import org.apereo.cas.authentication.principal.ClientCredential;

Any ideas?

Meysam Shirazi

unread,
Dec 31, 2023, 3:41:03 AM12/31/23
to CAS Community, Danielo De León
Hi,
Check your dependencies(cas-server-support-pac4j-api) in your build.gradle file.

Danielo De León

unread,
Jan 2, 2024, 10:09:16 AMJan 2
to CAS Community, Meysam Shirazi, Danielo De León
Hi, thank you for responding, I am not able to add the dependency that you suggest. I attached my build.gradle, could you help me?

buildscript {
    repositories {
        mavenLocal()
        gradlePluginPortal()
        mavenCentral()
        jcenter()
        maven {
            url "https://repo.spring.io/libs-milestone"
            mavenContent { releasesOnly() }
        }
        maven {
            url "https://repo.spring.io/libs-snapshot"
            mavenContent { snapshotsOnly() }
        }
        maven {
            url "https://plugins.gradle.org/m2/"
            mavenContent { releasesOnly() }
        }
    }
    dependencies {
        classpath "de.undercouch:gradle-download-task:${project.gradleDownloadTaskVersion}"
        classpath "org.springframework.boot:spring-boot-gradle-plugin:${project.springBootVersion}"
        classpath "gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:${project.jibVersion}"
        classpath "io.freefair.gradle:maven-plugin:${project.gradleMavenPluginVersion}"
        classpath "io.freefair.gradle:lombok-plugin:${project.gradleLombokPluginVersion}"
classpath "org.apereo.cas.authentication.principal.ClientCredential"
    }
}

repositories {
    mavenLocal()
    mavenCentral()
    jcenter()
    maven {
        url "https://oss.sonatype.org/content/repositories/snapshots"
        mavenContent { snapshotsOnly() }
    }
    maven {
        mavenContent { releasesOnly() }
        url "https://build.shibboleth.net/nexus/content/repositories/releases/"
    }
    maven {
        mavenContent { releasesOnly() }
        url "https://repo.spring.io/milestone/"
    }
    maven {
        url "https://repo.spring.io/snapshot/"
        mavenContent { snapshotsOnly() }
    }
    maven {
        mavenContent { snapshotsOnly() }
        url "https://oss.jfrog.org/artifactory/oss-snapshot-local"
    }
}

def casServerVersion = project.'cas.version'
def casWebApplicationBinaryName = "cas.war"

project.ext."casServerVersion" = casServerVersion
project.ext."casWebApplicationBinaryName" = casWebApplicationBinaryName

apply plugin: "io.freefair.war-overlay"
apply plugin: "io.freefair.lombok"
apply from: rootProject.file("gradle/tasks.gradle")

apply plugin: "war"
apply plugin: "eclipse"
apply plugin: "idea"

apply from: rootProject.file("gradle/springboot.gradle")
apply from: rootProject.file("gradle/dockerjib.gradle")

dependencies {
    // Other CAS dependencies/modules may be listed here...
    implementation "org.apereo.cas:cas-server-support-rest-authentication:${project.'cas.version'}"
    implementation "org.apereo.cas:cas-server-support-pac4j-authentication:${project.'cas.version'}"
    implementation "org.apereo.cas:cas-server-support-pac4j-webflow:${project.'cas.version'}"
    implementation "org.apereo.cas:cas-server-core-api-authentication:${project.'cas.version'}"
    implementation "org.apereo.cas:cas-server-support-pac4j-core:${project.'cas.version'}"
    implementation "org.apereo.cas:cas-server-core-web-api:${project.'cas.version'}"
    implementation "org.apereo.cas:cas-server-core-authentication-api:${project.'cas.version'}"

   

    compile "org.apereo.cas:cas-server-support-google-analytics:${project.'cas.version'}"
    compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.0'
    compile group: 'org.bitbucket.b_c', name: 'jose4j', version: '0.7.0'
   

}

tasks.findByName("jibDockerBuild")
.dependsOn(copyWebAppIntoJib, copyConfigIntoJib)
.finalizedBy(deleteWebAppFromJib)

tasks.findByName("jib")
.dependsOn(copyWebAppIntoJib, copyConfigIntoJib)
.finalizedBy(deleteWebAppFromJib)

configurations.all {
    resolutionStrategy {
        cacheChangingModulesFor 0, "seconds"
        cacheDynamicVersionsFor 0, "seconds"

        preferProjectModules()

        def failIfConflict = project.hasProperty("failOnVersionConflict") && Boolean.valueOf(project.getProperty("failOnVersionConflict"))
        if (failIfConflict) {
            failOnVersionConflict()
        }
    }
}

eclipse {
    classpath {
        downloadSources = true
        downloadJavadoc = true
    }
}

idea {
    module {
        downloadJavadoc = true
        downloadSources = true

Pablo Vidaurri

unread,
Jan 2, 2024, 11:36:34 AMJan 2
to CAS Community, Danielo De León, Meysam Shirazi
Under where it has 
// Other CAS dependencies/modules may be listed here...

include:
implementation "org.apereo.cas:cas-server-support-pac4j-api:${project.'cas.version'}"
Reply all
Reply to author
Forward
0 new messages