Trevor, Test classes are not part of packaged jars. If you want test classes, you have to copy them into your src directory. Beware, you may have to copy in dependencies of the test classes too; and remember to update them when you upgrade. Is it possible to rework your logic to extend the existing flow, instead of changing it?
Ray On Fri, 2023-09-08 at 17:14 -0700, Trevor Fong wrote: Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information. Hi All, I'm trying to customize the AUP template view and some of the logic behind its SUBMIT button. The problem is that I'm running into some compiler errors when I try to do a "./gradlew clean build": $ ./gradlew clean build Configuration on demand is an incubating feature. > Task :compileTestJava FAILED /Users/tjfong/git/aws-setup/cas6/cas-6.6.11-dev/cas-overlay-template-6.6.11/src/test/java/org/apereo/cas/aup/LdapAcceptableUsagePolicyRepositoryTests.java:3: error: package org.apereo.cas.adaptors.ldap does not exist import org.apereo.cas.adaptors.ldap.LdapIntegrationTestsOperations; ^ /Users/tjfong/git/aws-setup/cas6/cas-6.6.11-dev/cas-overlay-template-6.6.11/src/test/java/org/apereo/cas/aup/LdapAcceptableUsagePolicyRepositoryTests.java:7: error: package org.apereo.cas.util.junit does not exist import org.apereo.cas.util.junit.EnabledIfListeningOnPort; ^ /Users/tjfong/git/aws-setup/cas6/cas-6.6.11-dev/cas-overlay-template-6.6.11/src/test/java/org/apereo/cas/aup/LdapAcceptableUsagePolicyRepositoryTests.java:9: error: package com.unboundid.ldap.sdk does not exist import com.unboundid.ldap.sdk.LDAPConnection; ^ /Users/tjfong/git/aws-setup/cas6/cas-6.6.11-dev/cas-overlay-template-6.6.11/src/test/java/org/apereo/cas/aup/LdapAcceptableUsagePolicyRepositoryTests.java:52: error: cannot find symbol public class LdapAcceptableUsagePolicyRepositoryTests extends BaseAcceptableUsagePolicyRepositoryTests { ^ symbol: class BaseAcceptableUsagePolicyRepositoryTests /Users/tjfong/git/aws-setup/cas6/cas-6.6.11-dev/cas-overlay-template-6.6.11/src/test/java/org/apereo/cas/aup/LdapAcceptableUsagePolicyRepositoryTests.java:41: error: cannot find symbol @EnabledIfListeningOnPort(port = 10389) ^ symbol: class EnabledIfListeningOnPort 5 errors FAILURE: Build failed with an exception. Would someone be able to tell me if I'm following the right path (see below) or tell me what I'm doing wrong? Presumably I need to add extra 'implementation "org.apereo.cas:blah"' references to build.gradle - how do I find out what to add? Here's what I did to get thus far: cd /opt/cas/workspace/ git clone https://github.com/apereo/cas.git ## There doesn't seem to be a v6.6.11 tag? git checkout v6.6.10 cd /opt/cas/workspace/cas-6.6.11-dev getcas --directory cas-overlay-template-6.6.11 --type cas-overlay --casVersion 6.6.11 --modules support-jpa-ticket-registry,support-jpa-service-registry,support-ldap,support-saml,support-duo,support-audit-jdbc,support-aup-ldap,support-aup-webflow ## Copy files that we want to customize from cas to the overlay cp -prnv /opt/cas/workspace/cas/support/cas-server-support-aup-ldap/src/* /opt/cas/workspace/cas-6.6.11-dev/cas-overlay-template-6.6.11/src/ ## Customize: # cas-overlay-template-6.6.11/src/main/resources/templates/aup/casAcceptableUsagePolicyView.html # cas-overlay-template-6.6.11/src/main/java/org/apereo/cas/aup/LdapAcceptableUsagePolicyRepository.java ## Add additional implementations to build.gradle to get rid of "class not found" type build errors # implementation "org.apereo.cas:cas-server-support-aup-core" # implementation "org.apereo.cas:cas-server-support-ldap-core" # implementation "org.apereo.cas:cas-server-core-util" # implementation "org.apereo.cas:cas-server-core-web-api" cd /opt/cas/workspace cd cas-6.6.11-dev/cas-overlay-template* ./gradlew clean build See build errors above. Thanks a lot, Trev -- - 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 cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/c4de80d79889315b8bf0c700b84f1f66de2c114a.camel%40uvic.ca.