Skip to content

Commit

Permalink
chore: update default Groovy version to 4.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china authored Aug 29, 2023
1 parent 0541427 commit c8b8acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/dev/jbang/net/GroovyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import dev.jbang.util.Util;

public class GroovyManager {
public static final String DEFAULT_GROOVY_VERSION = "3.0.9";
public static final String DEFAULT_GROOVY_VERSION = "4.0.14";

public static String resolveInGroovyHome(String cmd, String requestedVersion) {
Path groovyHome = getGroovy(requestedVersion);
Expand Down Expand Up @@ -77,7 +77,7 @@ private static Path getGroovycsPath() {
}

private static String getGroovyDownloadUrl(String version) {
int groovyMajorVersion = 3;
int groovyMajorVersion = 4;
Matcher matcher = Pattern.compile("(\\d)\\..*").matcher(version);
if (matcher.find()) {
groovyMajorVersion = Integer.parseInt(matcher.group(1));
Expand Down

0 comments on commit c8b8acd

Please sign in to comment.