8
8
echo " ### Removes all the generated files from the project"
9
9
rm -rf pom.xml \
10
10
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 -
12
30
13
31
echo " ### Creates a Parent POM"
14
32
echo -e " <?xml version=\" 1.0\" ?>
@@ -24,34 +42,14 @@ echo -e "<?xml version=\"1.0\"?>
24
42
25
43
<modules>
26
44
<module>micronaut-app</module>
45
+ <module>quarkus-app</module>
27
46
<module>springboot-app</module>
28
47
</modules>
29
48
30
49
</project>
31
50
" >> pom.xml
32
51
33
52
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
-
55
53
echo " ### Adding .editorconfig file"
56
54
echo -e " # EditorConfig helps developers define and maintain consistent
57
55
# coding styles between different editors and IDEs
@@ -81,3 +79,6 @@ max_line_length = 1024
81
79
82
80
cp quarkus-app/.editorconfig micronaut-app/.editorconfig
83
81
cp quarkus-app/.editorconfig springboot-app/.editorconfig
82
+
83
+ echo " ### Running all the Tests"
84
+ mvn test-compile
0 commit comments