Skip to content

Commit 63d4410

Browse files
committed
Align the archetype version with current Wanaku version
1 parent 5e9e38f commit 63d4410

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cli/src/main/java/ai/wanaku/cli/main/commands/services/ServicesBase.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ public abstract class ServicesBase extends BaseCommand {
2424
protected String type;
2525

2626
protected void createProject(String baseCmd) {
27-
String cmd = String.format("%s -DartifactId=wanaku-tool-service-%s -Dname=%s -Dwanaku-version=%s -Dwanaku-service-type=%s",
28-
baseCmd, name.toLowerCase(), name, wanakuVersion != null ? wanakuVersion : VersionHelper.VERSION, type);
27+
String version = wanakuVersion != null ? wanakuVersion : VersionHelper.VERSION;
28+
String cmd = String.format("%s -DartifactId=wanaku-tool-service-%s -Dname=%s -Dwanaku-version=%s -Dwanaku-service-type=%s -DarchetypeVersion=%s",
29+
baseCmd, name.toLowerCase(), name, version, type, version);
2930

3031
String[] split = cmd.split(" ");
3132
final File projectDir = new File(path);

cli/src/main/resources/application.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ quarkus.http.host-enabled=false
22
quarkus.banner.enabled = false
33
quarkus.devservices.enabled = false
44

5-
wanaku.cli.tool.create-cmd=mvn -B archetype:generate -DarchetypeGroupId=ai.wanaku -DarchetypeArtifactId=wanaku-tool-service-archetype -DarchetypeVersion=0.0.3 -DgroupId=ai.wanaku -Dpackage=ai.wanaku.tool
6-
wanaku.cli.resource.create-cmd=mvn -B archetype:generate -DarchetypeGroupId=ai.wanaku -DarchetypeArtifactId=wanaku-provider-archetype -DarchetypeVersion=0.0.3 -DgroupId=ai.wanaku -Dpackage=ai.wanaku.provider
5+
wanaku.cli.tool.create-cmd=mvn -B archetype:generate -DarchetypeGroupId=ai.wanaku -DarchetypeArtifactId=wanaku-tool-service-archetype -DgroupId=ai.wanaku -Dpackage=ai.wanaku.tool
6+
wanaku.cli.resource.create-cmd=mvn -B archetype:generate -DarchetypeGroupId=ai.wanaku -DarchetypeArtifactId=wanaku-provider-archetype -DgroupId=ai.wanaku -Dpackage=ai.wanaku.provider
77

88
wanaku.cli.components.wanaku-router=https://github.com/wanaku-ai/wanaku/releases/download/%s/wanaku-router-%s.zip
99
wanaku.cli.components.provider-file=https://github.com/wanaku-ai/wanaku/releases/download/%s/wanaku-provider-file-%s.zip

0 commit comments

Comments
 (0)