Skip to content

Commit 5b18143

Browse files
committed
handle module name change
1 parent 9fb2a31 commit 5b18143

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/src/main/java/org/apereo/cas/initializr/contrib/TemplatedProjectContributor.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ protected Map<String, Object> prepareProjectTemplateVariables(final OverlayProje
282282
var parsedCasVersion = VersionUtils.parse(casVersion);
283283
IntStream.rangeClosed(MIN_CAS_MAJOR_VERSION, MAX_CAS_MAJOR_VERSION).forEach(value -> {
284284
if (parsedCasVersion.getMajor() == value) {
285-
templateVariables.put("casVersion" + value, Boolean.TRUE);
285+
templateVariables.put("casVersion" + parsedCasVersion.getMajor(), Boolean.TRUE);
286+
templateVariables.put("casVersion" + parsedCasVersion.getMajor() + parsedCasVersion.getMinor(), Boolean.TRUE);
286287
}
287288
if (parsedCasVersion.getMajor() >= value) {
288289
templateVariables.put("casVersion" + value + "OrAbove", Boolean.TRUE);

app/src/main/resources/common/gradle/build.gradle.mustache

+5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ buildscript {
4848
{{/sbomSupported}}
4949
classpath "de.undercouch:gradle-download-task:${project.gradleDownloadTaskVersion}"
5050
classpath "org.apereo.cas:cas-server-core-api-configuration-model:${project.'cas.version'}"
51+
{{#casVersion72}}
52+
classpath "org.apereo.cas:cas-server-support-configuration-metadata-repository:${project.'cas.version'}"
53+
{{/casVersion72}}
54+
{{^casVersion72}}
5155
classpath "org.apereo.cas:cas-server-core-configuration-metadata-repository:${project.'cas.version'}"
56+
{{/casVersion72}}
5257
{{/casServer}}
5358
}
5459
}

0 commit comments

Comments
 (0)