Skip to content

Commit 2d20234

Browse files
Removed spring-ai-app
1 parent d064734 commit 2d20234

File tree

13 files changed

+17
-382
lines changed

13 files changed

+17
-382
lines changed

.github/workflows/e2e-test.yaml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,37 +38,26 @@ jobs:
3838
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting"
3939
mvn $MVN_ARGS
4040
41-
- name: "Run Spring Boot tests"
41+
- name: "Run tests"
4242
run: |
4343
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} surefire:test -pl :spring-app -DskipTests=false"
4444
mvn $MVN_ARGS "-Daicore.landscape=${{ matrix.environment }}"
4545
env:
4646
# See "End-to-end test application instructions" on the README.md to update the secret
4747
AICORE_SERVICE_KEY: ${{ secrets[matrix.secret-name] }}
4848

49-
- name: "Run Spring AI tests"
49+
- name: "Start Application Locally"
5050
run: |
51-
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} surefire:test -pl :spring-ai-app -DskipTests=false"
52-
mvn $MVN_ARGS "-Daicore.landscape=${{ matrix.environment }}"
53-
env:
54-
# See "End-to-end test application instructions" on the README.md to update the secret
55-
AICORE_SERVICE_KEY: ${{ secrets[matrix.secret-name] }}
56-
57-
- name: "Start Applications Locally"
58-
run: |
59-
for project in spring-app spring-ai-app; do
60-
cd sample-code/$project
61-
mvn spring-boot:run &
62-
timeout=15
63-
while ! nc -z localhost 8080; do
64-
sleep 1
65-
timeout=$((timeout - 1))
66-
if [ $timeout -le 0 ]; then
67-
echo "Server did not start within 15 seconds."
68-
exit 1
69-
fi
70-
done
71-
cd ..
51+
cd sample-code/spring-app
52+
mvn spring-boot:run &
53+
timeout=15
54+
while ! nc -z localhost 8080; do
55+
sleep 1
56+
timeout=$((timeout - 1))
57+
if [ $timeout -le 0 ]; then
58+
echo "Server did not start within 15 seconds."
59+
exit 1
60+
fi
7261
done
7362
env:
7463
# See "End-to-end test application instructions" on the README.md to update the secret

docs/guides/ORCHESTRATION_CHAT_COMPLETION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Prompt prompt = new Prompt("What is the capital of France?", opts);
285285
ChatResponse response = client.call(prompt);
286286
```
287287

288-
Please find [an example in our Spring AI application](../../sample-code/spring-ai-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java).
288+
Please find [an example in our Spring Boot application](../../sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/SpringAiOrchestrationController.java).
289289

290290
## Using a Configuration from AI Launchpad
291291

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,6 @@
194194
<artifactId>spring-app</artifactId>
195195
<version>${project.version}</version>
196196
</dependency>
197-
<dependency>
198-
<groupId>com.sap.ai.sdk.app</groupId>
199-
<artifactId>spring-ai-app</artifactId>
200-
<version>${project.version}</version>
201-
</dependency>
202197
</dependencies>
203198
</dependencyManagement>
204199
<dependencies>
@@ -713,7 +708,6 @@ https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/ma
713708
</property>
714709
</activation>
715710
<modules>
716-
<module>sample-code/spring-ai-app</module>
717711
<module>sample-code/spring-app</module>
718712
</modules>
719713
</profile>

sample-code/spring-ai-app/README.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

sample-code/spring-ai-app/pom.xml

Lines changed: 0 additions & 190 deletions
This file was deleted.

sample-code/spring-ai-app/src/main/java/com/sap/ai/sdk/app/Application.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

sample-code/spring-ai-app/src/main/java/com/sap/ai/sdk/app/AsynchronousConfiguration.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

sample-code/spring-ai-app/src/main/java/com/sap/ai/sdk/app/ControllerExceptionHandler.java

Lines changed: 0 additions & 30 deletions
This file was deleted.

sample-code/spring-ai-app/src/main/resources/logback-spring.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)