Skip to content

Commit

Permalink
Adpat to 0.11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
djeang committed Feb 7, 2024
1 parent 7fb3369 commit 32b8fe7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .idea/dev.jeka.template-examples.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions jeka-src/_dev/Build.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import dev.jeka.core.api.tooling.git.JkVersionFromGit;
import dev.jeka.core.tool.JkInjectClasspath;
import dev.jeka.core.tool.JkInjectProperty;
import dev.jeka.core.tool.JkJekaVersionCompatibilityChecker;
import dev.jeka.core.tool.JkJekaVersionRanges;
import dev.jeka.core.tool.KBean;
import dev.jeka.core.tool.builtins.self.SelfKBean;
import dev.jeka.core.tool.builtins.tooling.maven.MavenKBean;
Expand All @@ -21,6 +21,9 @@
@JkInjectClasspath("dev.jeka:springboot-plugin")
class Build extends KBean {

public static final String VERSION_BREAK_URL =
"https://raw.githubusercontent.com/jeka-dev/template-examples/master/breaking_versions.txt";

private final SelfKBean selfKBean = load(SelfKBean.class);


Expand All @@ -38,13 +41,8 @@ protected void init() {
selfKBean.setModuleId("dev.jeka:template-examples");

// Include version range in manifest
String jekaVersion = JkInfo.getJekaVersion();
selfKBean.manifestCustomizers.add(manifest ->
JkJekaVersionCompatibilityChecker.setCompatibilityRange(
manifest,
jekaVersion,
"https://raw.githubusercontent.com/jeka-dev/template-examples/master/breaking_versions.txt")
);
selfKBean.manifestCustomizers.add(
JkJekaVersionRanges.manifestCustomizer(JkInfo.getJekaVersion(), VERSION_BREAK_URL));

// Handle version with git
JkVersionFromGit.of().handleVersioning(selfKBean);
Expand Down

0 comments on commit 32b8fe7

Please sign in to comment.