From 11cfd7f02f5fe15b7252e191084c24c9b33dfcb1 Mon Sep 17 00:00:00 2001 From: Joe Lauer Date: Sat, 9 Nov 2024 08:35:22 -0500 Subject: [PATCH] Add blaze command to release using Java 17; fixed module pom.xml --- .blaze/blaze.java | 20 ++++++++++++++++++++ rocker-test-template17/pom.xml | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.blaze/blaze.java b/.blaze/blaze.java index 199e094..5bb68ac 100644 --- a/.blaze/blaze.java +++ b/.blaze/blaze.java @@ -111,6 +111,26 @@ public void test_all_jdks() throws Exception { jdks.forEach(jdk -> log.info(" {}", jdk)); } + @Task(order = 98) + public void release() throws Exception { + // we MUST be running on Java 17+ + final JavaHome javaHome = new JavaHomeFinder() + .jdk() + .version(17) + .preferredDistributions() + .find(); + + log.info(""); + log.info("Using JDK {}", javaHome); + log.info(""); + + exec("mvn", "release:prepare", "release:perform") + .workingDir(this.projectDir) + .env("JAVA_HOME", javaHome.getDirectory().toString()) + .verbose() + .run(); + } + @Task(order=99, value="Use by maintainers only. Updates REAME.md with latest git tag.") public void after_release() throws Exception { int exitValue = (int)exec("git", "diff-files", "--quiet") diff --git a/rocker-test-template17/pom.xml b/rocker-test-template17/pom.xml index 91059b3..ab691b7 100644 --- a/rocker-test-template17/pom.xml +++ b/rocker-test-template17/pom.xml @@ -8,7 +8,7 @@ com.fizzed rocker - 2.0.2-SNAPSHOT + 2.1.1-SNAPSHOT