Skip to content

Commit e102bab

Browse files
committed
Updates the Bootstrap script to latest fwk version and Java 21
1 parent e9ea625 commit e102bab

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

bootstrap.sh

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,25 @@
88
echo "### Removes all the generated files from the project"
99
rm -rf pom.xml \
1010
quarkus-app \
11-
micronaut-app
11+
micronaut-app \
12+
springboot-app
13+
14+
echo "### Bootstraps the Micronaut App"
15+
curl --location --request GET 'https://launch.micronaut.io/create/default/io.containerapps.javaruntime.workshop.micronaut.micronaut-app?lang=JAVA&build=MAVEN&test=JUNIT&javaVersion=JDK_21&features=data-jpa&features=postgres&features=testcontainers&features=micronaut-test-rest-assured' --output micronaut-app.zip && unzip -o micronaut-app.zip && rm micronaut-app.zip
16+
17+
echo "### Bootstraps the Quarkus App"
18+
mvn io.quarkus:quarkus-maven-plugin:3.18.3:create \
19+
-DplatformVersion=3.18.3 \
20+
-DprojectGroupId=io.containerapps.javaruntime.workshop \
21+
-DprojectArtifactId=quarkus-app \
22+
-DprojectName="Azure Container Apps and Java Runtimes Workshop :: Quarkus" \
23+
-DjavaVersion=21 \
24+
-DclassName="io.containerapps.javaruntime.workshop.quarkus.QuarkusResource" \
25+
-Dpath="/quarkus" \
26+
-Dextensions="resteasy, resteasy-jsonb, hibernate-orm-panache, jdbc-postgresql"
27+
28+
echo "### Bootstraps the Spring Boot App"
29+
curl https://start.spring.io/starter.tgz -d bootVersion=3.4.3 -d javaVersion=21 -d dependencies=web,data-jpa,postgresql,testcontainers -d type=maven-project -d packageName=io.containerapps.javaruntime.workshop.springboot -d artifactId=springboot-app -d version=1.0.0-SNAPSHOT -d baseDir=springboot-app -d name=springboot -d groupId=io.containerapps.javaruntime.workshop -d description=Azure%20Container%20Apps%20and%20Java%20Runtimes%20Workshop%20%3A%3A%20Spring%20Boot | tar -xzvf -
1230

1331
echo "### Creates a Parent POM"
1432
echo -e "<?xml version=\"1.0\"?>
@@ -24,34 +42,14 @@ echo -e "<?xml version=\"1.0\"?>
2442
2543
<modules>
2644
<module>micronaut-app</module>
45+
<module>quarkus-app</module>
2746
<module>springboot-app</module>
2847
</modules>
2948
3049
</project>
3150
" >> pom.xml
3251

3352

34-
echo "### Bootstraps the Micronaut App"
35-
curl --location --request GET 'https://launch.micronaut.io/create/default/io.containerapps.javaruntime.workshop.micronaut.micronaut-app?lang=JAVA&build=MAVEN&test=JUNIT&javaVersion=JDK_17&features=data-jpa&features=postgres&features=testcontainers&features=micronaut-test-rest-assured' --output micronaut-app.zip && unzip -o micronaut-app.zip && rm micronaut-app.zip
36-
37-
echo "### Bootstraps the Quarkus App"
38-
mvn io.quarkus:quarkus-maven-plugin:3.10.0:create \
39-
-DplatformVersion=3.10.0 \
40-
-DprojectGroupId=io.containerapps.javaruntime.workshop \
41-
-DprojectArtifactId=quarkus-app \
42-
-DprojectName="Azure Container Apps and Java Runtimes Workshop :: Quarkus" \
43-
-DjavaVersion=17 \
44-
-DclassName="io.containerapps.javaruntime.workshop.quarkus.QuarkusResource" \
45-
-Dpath="/quarkus" \
46-
-Dextensions="resteasy, resteasy-jsonb, hibernate-orm-panache, jdbc-postgresql"
47-
48-
echo "### Bootstraps the Spring Boot App"
49-
curl https://start.spring.io/starter.tgz -d bootVersion=3.0.5 -d javaVersion=17 -d dependencies=web,data-jpa,postgresql,testcontainers -d type=maven-project -d packageName=io.containerapps.javaruntime.workshop.springboot -d artifactId=springboot-app -d version=1.0.0-SNAPSHOT -d baseDir=springboot-app -d name=springboot -d groupId=io.containerapps.javaruntime.workshop -d description=Azure%20Container%20Apps%20and%20Java%20Runtimes%20Workshop%20%3A%3A%20Spring%20Boot | tar -xzvf -
50-
51-
echo "### Running all the Tests"
52-
mvn test
53-
54-
5553
echo "### Adding .editorconfig file"
5654
echo -e "# EditorConfig helps developers define and maintain consistent
5755
# coding styles between different editors and IDEs
@@ -81,3 +79,6 @@ max_line_length = 1024
8179

8280
cp quarkus-app/.editorconfig micronaut-app/.editorconfig
8381
cp quarkus-app/.editorconfig springboot-app/.editorconfig
82+
83+
echo "### Running all the Tests"
84+
mvn test-compile

0 commit comments

Comments
 (0)