Skip to content

Commit 1e5cdce

Browse files
authored
Yaci Store download url for 2.0.0-beta1 (#122)
* fix: Update download url for yaci-store native build * Bump version for beta
1 parent dabceb7 commit 1e5cdce

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

applications/cli/config/download.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
node.version=10.1.4
33
ogmios.version=6.11.2
44
kupo.version=2.10.0
5-
yaci.store.version=0.2.0-graal-preview1
6-
yaci.store.jar.version=0.1.1
5+
6+
yaci.store.tag=rel-native-2.0.0-beta1-devkit
7+
yaci.store.version=2.0.0-beta1-devkit
8+
yaci.store.jar.version=2.0.0-beta1
79

810
#node.url=
911
#ogmios.url=

applications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/common/DownloadService.java

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ public class DownloadService {
4242
@Value("${yaci.store.version:#{null}}")
4343
private String yaciStoreVersion;
4444

45+
@Value("${yaci.store.tag:#{null}}")
46+
private String yaciStoreTag;
47+
4548
@Value("${yaci.store.jar.version:#{null}}")
4649
private String yaciStoreJarVersion;
4750

@@ -67,7 +70,7 @@ public boolean downloadNode(boolean overwrite) {
6770
String downloadPath = resolveNodeDownloadPath();
6871

6972
if ( downloadPath == null) {
70-
writeLn(error("Download URL for cardano-node is not set. Please set the download URL in application.properties"));
73+
writeLn(error("Download URL for cardano-node is not set. Please set the download URL in download.properties"));
7174
return false;
7275
}
7376

@@ -108,7 +111,7 @@ public boolean downloadYaciStoreNative(boolean overwrite) {
108111
String downloadPath = resolveYaciStoreNativeDownloadPath();
109112

110113
if ( downloadPath == null) {
111-
writeLn(error("Download URL for yaci-store is not set. Please set the download URL in application.properties"));
114+
writeLn(error("Download URL for yaci-store is not set. Please set the download URL in download.properties"));
112115
return false;
113116
}
114117

@@ -171,7 +174,7 @@ public boolean downloadYaciStoreJar(boolean overwrite) {
171174
String downloadPath = resolveYaciStoreJarDownloadPath();
172175

173176
if ( downloadPath == null) {
174-
writeLn(error("Download URL for yaci-store-jar is not set. Please set the download URL in application.properties"));
177+
writeLn(error("Download URL for yaci-store-jar is not set. Please set the download URL in download.properties"));
175178
return false;
176179
}
177180

@@ -201,7 +204,7 @@ public boolean downloadJre(boolean overwrite) {
201204
String downloadPath = JreResolver.resolveJreDownloadUrl();
202205

203206
if ( downloadPath == null) {
204-
writeLn(error("Download URL for JRE is not set. Please set the download URL in application.properties"));
207+
writeLn(error("Download URL for JRE is not set. Please set the download URL in download.properties"));
205208
return false;
206209
}
207210

@@ -240,7 +243,7 @@ public boolean downloadOgmios(boolean overwrite) {
240243
String downloadPath = resolveOgmiosDownloadPath();
241244

242245
if ( downloadPath == null) {
243-
writeLn(error("Download URL for ogmios is not set. Please set the download URL in application.properties"));
246+
writeLn(error("Download URL for ogmios is not set. Please set the download URL in download.properties"));
244247
return false;
245248
}
246249

@@ -277,7 +280,7 @@ public boolean downloadKupo(boolean overwrite) {
277280
String downloadPath = resolveKupoDownloadPath();
278281

279282
if ( downloadPath == null) {
280-
writeLn(error("Download URL for Kupo is not set. Please set the download URL in application.properties"));
283+
writeLn(error("Download URL for Kupo is not set. Please set the download URL in download.properties"));
281284
return false;
282285
}
283286

@@ -433,7 +436,7 @@ private String resolveNodeDownloadPath() {
433436
}
434437

435438
if (StringUtils.isEmpty(nodeVersion)) {
436-
writeLn(error("Node version is not set. Please set the node version (node.version) or node download url (node.url) in application.properties"));
439+
writeLn(error("Node version is not set. Please set the node version (node.version) or node download url (node.url) in download.properties"));
437440
return null;
438441
}
439442

@@ -459,7 +462,12 @@ private String resolveYaciStoreNativeDownloadPath() {
459462
}
460463

461464
if (StringUtils.isEmpty(yaciStoreVersion)) {
462-
writeLn(error("YaciStore version is not set. Please set the yaci-store version (yaci.store.version) or yaci-store download url (yaci.store.url) in application.properties"));
465+
writeLn(error("YaciStore version is not set. Please set the yaci-store version (yaci.store.version) or yaci-store download url (yaci.store.url) in download.properties"));
466+
return null;
467+
}
468+
469+
if (StringUtils.isEmpty(yaciStoreTag)) {
470+
writeLn(error("YaciStore download tag is not set. Please set the yaci-store tag (yaci.store.tag) or yaci-store download url (yaci.store.url) in download.properties"));
463471
return null;
464472
}
465473

@@ -481,7 +489,7 @@ private String resolveYaciStoreNativeDownloadPath() {
481489
}
482490

483491

484-
String url = YACI_STORE_DOWNLOAD_URL + "/rel-graal-" + yaciStoreVersion + "/yaci-store-" + yaciStoreVersion + "-" + osPrefix + "-" + cpuArch +"-n2c.zip";
492+
String url = YACI_STORE_DOWNLOAD_URL + "/" + yaciStoreTag + "/yaci-store-" + yaciStoreVersion + "-" + osPrefix + "-" + cpuArch +"-n2c.zip";
485493
return url;
486494
}
487495

@@ -491,7 +499,7 @@ private String resolveYaciStoreJarDownloadPath() {
491499
}
492500

493501
if (StringUtils.isEmpty(yaciStoreJarVersion)) {
494-
writeLn(error("YaciStore Jar version is not set. Please set the yaci-store version (yaci.store.jar.version) or yaci-store download url (yaci.store.jar.url) in application.properties"));
502+
writeLn(error("YaciStore Jar version is not set. Please set the yaci-store version (yaci.store.jar.version) or yaci-store download url (yaci.store.jar.url) in download.properties"));
495503
return null;
496504
}
497505

@@ -505,7 +513,7 @@ private String resolveOgmiosDownloadPath() {
505513
}
506514

507515
if (StringUtils.isEmpty(ogmiosVersion)) {
508-
writeLn(error("Ogmios version is not set. Please set the ogmios version (ogmios.version) or ogmios download url (ogmios.url) in application.properties"));
516+
writeLn(error("Ogmios version is not set. Please set the ogmios version (ogmios.version) or ogmios download url (ogmios.url) in download.properties"));
509517
return null;
510518
}
511519

@@ -536,7 +544,7 @@ private String resolveKupoDownloadPath() {
536544
}
537545

538546
if (StringUtils.isEmpty(kupoVersion)) {
539-
writeLn(error("Kupo version is not set. Please set the kupo version (kupo.version) or kupo download url (kupo.url) in application.properties"));
547+
writeLn(error("Kupo version is not set. Please set the kupo version (kupo.version) or kupo download url (kupo.url) in download.properties"));
540548
return null;
541549
}
542550

config/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
tag=0.10.6-preview
1+
tag=0.10.6-beta
22
revision=

0 commit comments

Comments
 (0)