This is an automated email from the ASF dual-hosted git repository.
ntimofeev pushed a commit to branch STABLE-4.2
in repository https://gitbox.apache.org/repos/asf/cayenne.git
The following commit(s) were added to refs/heads/STABLE-4.2 by this push:
new b84148e21 CAY-2883 License and notice templates are not processed by
the Gradle build - JDK 8 compatibility
b84148e21 is described below
commit b84148e21177b2c768bf70f799fa42daf9a66ac7
Author: Nikita Timofeev <[email protected]>
AuthorDate: Thu Mar 27 18:09:52 2025 +0400
CAY-2883 License and notice templates are not processed by the Gradle build
- JDK 8 compatibility
---
cayenne-gradle-plugin/build.gradle | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cayenne-gradle-plugin/build.gradle
b/cayenne-gradle-plugin/build.gradle
index dc37d4766..543c7a614 100644
--- a/cayenne-gradle-plugin/build.gradle
+++ b/cayenne-gradle-plugin/build.gradle
@@ -79,7 +79,9 @@ task versionFile {
}
def processLicenseFile(fileName) {
- def context = new VelocityContext(Map.of("binary", false))
+ Map<String, Object> params = new HashMap<>()
+ params.put("binary", false)
+ def context = new VelocityContext(params)
def outputWriter = new FileWriter(new
File("$buildDir/resources/main/META-INF/cayenne/${fileName}.txt"))
def template
def templateFile = new
File("$buildDir/resources/tpl/META-INF/cayenne/${fileName}.txt.vm");