File tree Expand file tree Collapse file tree 2 files changed +72
-1
lines changed
Expand file tree Collapse file tree 2 files changed +72
-1
lines changed Original file line number Diff line number Diff line change 8787 install_petclinic " land-of-apps/spring-petclinic" old-java-support
8888fi
8989
90- patch -N -p1 -d build/fixtures/spring-petclinic < test/petclinic/pom.patch
90+ # Select the appropriate patch file based on Java version
91+ if is_java 25; then
92+ PATCH_FILE=" test/petclinic/pom-java25.patch"
93+ else
94+ PATCH_FILE=" test/petclinic/pom.patch"
95+ fi
96+
97+ # Apply patch, but only ignore if already applied (not other failures)
98+ if ! patch -N -p1 -d build/fixtures/spring-petclinic < " $PATCH_FILE " 2>&1 | tee /tmp/patch_output.txt; then
99+ if grep -q " Reversed (or previously applied) patch detected" /tmp/patch_output.txt; then
100+ echo " Patch already applied, continuing..."
101+ else
102+ echo " ERROR: Patch failed to apply!"
103+ cat /tmp/patch_output.txt
104+ exit 1
105+ fi
106+ fi
91107
92108
93109install_scala_test_app
Original file line number Diff line number Diff line change 1+ diff --git a/pom.xml b/pom.xml
2+ index fb38cc3..6cb8530 100644
3+ --- a/pom.xml
4+ +++ b/pom.xml
5+ @@ -65,6 +65,23 @@
6+ <dependency>
7+ <groupId>org.springframework.boot</groupId>
8+ <artifactId>spring-boot-starter-webmvc</artifactId>
9+ + <exclusions>
10+ + <exclusion>
11+ + <groupId>org.springframework.boot</groupId>
12+ + <artifactId>spring-boot-starter-tomcat</artifactId>
13+ + </exclusion>
14+ + </exclusions>
15+ + </dependency>
16+ + <dependency>
17+ + <groupId>com.appland</groupId>
18+ + <artifactId>annotation</artifactId>
19+ + <version>LATEST</version>
20+ + <scope>system</scope>
21+ + <systemPath>${env.ANNOTATION_JAR}</systemPath>
22+ + </dependency>
23+ + <dependency>
24+ + <groupId>com.fasterxml.jackson.core</groupId>
25+ + <artifactId>jackson-databind</artifactId>
26+ </dependency>
27+
28+ <dependency>
29+ @@ -407,5 +424,26 @@
30+ </pluginManagement>
31+ </build>
32+ </profile>
33+ + <profile>
34+ + <id>tomcat</id>
35+ + <activation>
36+ + <activeByDefault>true</activeByDefault>
37+ + </activation>
38+ + <dependencies>
39+ + <dependency>
40+ + <groupId>org.springframework.boot</groupId>
41+ + <artifactId>spring-boot-starter-tomcat</artifactId>
42+ + </dependency>
43+ + </dependencies>
44+ + </profile>
45+ + <profile>
46+ + <id>jetty</id>
47+ + <dependencies>
48+ + <dependency>
49+ + <groupId>org.springframework.boot</groupId>
50+ + <artifactId>spring-boot-starter-jetty</artifactId>
51+ + </dependency>
52+ + </dependencies>
53+ + </profile>
54+ </profiles>
55+ </project>
You can’t perform that action at this time.
0 commit comments