cas-management master (6.1.4-snapshot) build from overlay broken cas 6.1.4-snapshot repos gone

51 views
Skip to first unread message

randomuser878

unread,
Jul 14, 2020, 12:24:19 PM7/14/20
to CAS Community
Hello

  unable to re-build cas-management overlay master (6.1.4-snapshot) any longer. The dependencies to cas 6.1.4-snapshot is becoming an issue.
 
  1) if anyone knows how to decouple dependency on cas 6.1.4-snapshot through build.gradle or gradle.properites and use say 6.1.4 or higher, that would be much appreciated.
 2) cas 6.1.4-snapshot repos looks like they are gone. If you know an additional base URL where they can be found, much appreciated.
   checked at - and followed subfolder(s) example cas-server-support-ldap
    https://repo.maven.apache.org/maven2/org/apereo/cas
    https://jcenter.bintray.com/org/apereo/cas/
    https://oss.sonatype.org/content/repositories/snapshots/org/apereo/cas/cas-server-support-ldap/ 
   The last URL you have to follow per module and the last url now contains only 6.1.7 snapshot of cas.  I suspect this is the point of failure.

   Thanks.

  
 

Ray Bon

unread,
Jul 14, 2020, 1:16:55 PM7/14/20
to cas-...@apereo.org
Where did you get that version of cas-management overlay?

You could just drop -snapshot.

Ray
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.

randomuser878

unread,
Jul 14, 2020, 1:50:45 PM7/14/20
to CAS Community, Ray Bon
Understood about cas-management-overlay  master gradle.properties uses 6.1.0-RC4

Up until recently was able to use the values from cas-management code repo (master) as it had some important bug fixes compared to 6.1.0-RC4.
Not being able to select attributes to release was a deal breaker for me (bug). That patch was Dec 10 2019.

Now can no longer build it as it depends on cas-xyz 6.1.4-SNAPSHOT that looks like it is gone from the repositories list.

Here is a delta from cas-management-overlay and extracted from cas-management
Total 3 files affected, 2 changed, 1 added

1) gradle.properties
---------------
casmgmt.version=6.1.4-SNAPSHOT
springBootVersion=2.2.0.M3

cas.version=6.1.4-SNAPSHOT

# Use -jetty, -undertow to other containers
# Or blank if you want to deploy to an external container
# appServer=-tomcat
appServer=

sourceCompatibility=11
targetCompatibility=11

gradleVersion=5.6.2

gradleMavenPluginVersion=3.8.4

gradleLombokVersion=3.2.0
lombokVersion=1.18.10

--------------------
2) build.gradle compare to default cas-management-overlay build.gradle
1 added repo location, and about 13 lines added to dependencies list as shown
...
repositories {
    mavenLocal()
    mavenCentral()
    jcenter()
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
    maven { url 'https://build.shibboleth.net/nexus/content/repositories/releases/' }
    maven { url "https://repo.spring.io/milestone/" }
    maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }

    // Added
    maven { url "https://repo.spring.io/snapshot/" }
}
...
dependencies {
    // Other CAS Management dependencies/modules may be listed here...
    if (project.hasProperty("external")) {
        compile "org.apereo.cas:cas-mgmt-webapp:${project.'casmgmt.version'}"
    } else {
        compile "org.apereo.cas:cas-mgmt-webapp${project.appServer}:${project.'casmgmt.version'}"
    }
    compile "org.apereo.cas:cas-mgmt-core-authentication:${project.'casmgmt.version'}"
    compile "org.apereo.cas:cas-mgmt-core-authz:${project.'casmgmt.version'}"
    compile "org.apereo.cas:cas-mgmt-config-authz-ldap:${project.'casmgmt.version'}"
    compile "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-jpa-service-registry:${project.'cas.version'}"
    compile "org.apereo.cas:cas-mgmt-api-core:${project.'casmgmt.version'}"
    compile "org.projectlombok:lombok:1.18.8"
}

--- added file on the same folder as gradle.properties, I think I needed it when tried to recompile code, do not remember at this point
3) lombok.config file contents
lombok.log.fieldName=LOGGER
lombok.log.fieldIsStatic=true

lombok.toString.doNotUseGetters=true
lombok.equalsAndHashCode.doNotUseGetters=true

lombok.addLombokGeneratedAnnotation = true

config.stopBubbling=true
-----------------------------------------------

Appreciate your help.
Open to entire recompile of cas-management but whatever tried before could not make it compatible to use main release of cas main repo i.e. cas 6.1.4+

If you happen to have recompile gradle.properties, build.gradle and equivalent, much appreciated.

Thanks.




Ray Bon

unread,
Jul 14, 2020, 2:14:27 PM7/14/20
to cas-...@apereo.org
I am just at the beginning of work on cas-management overlay, and now I have uPortal issues to deal with, sigh.
I saw that it was not possible to select attributes for release and thought that was odd. Planned to look into it later. Glad to hear that at least there is fix.

I will come back to this later, probably August.

Ray
Reply all
Reply to author
Forward
0 new messages