Skip to content

Commit

Permalink
Add blaze command to release using Java 17; fixed module pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlauer committed Nov 9, 2024
1 parent 9456914 commit 11cfd7f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .blaze/blaze.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion rocker-test-template17/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.fizzed</groupId>
<artifactId>rocker</artifactId>
<version>2.0.2-SNAPSHOT</version>
<version>2.1.1-SNAPSHOT</version>
</parent>

<properties>
Expand Down

0 comments on commit 11cfd7f

Please sign in to comment.