diff --git a/build.gradle b/build.gradle
index c203ce07..beecbf4e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -57,7 +57,7 @@ compileTestGroovy {
}
def libertyAntVersion = "1.9.16"
-def libertyCommonVersion = "1.8.36"
+def libertyCommonVersion = "1.8.37-SNAPSHOT"
dependencies {
implementation gradleApi()
diff --git a/src/test/groovy/io/openliberty/tools/gradle/TestSpringBootApplication30.groovy b/src/test/groovy/io/openliberty/tools/gradle/TestSpringBootApplication30.groovy
index c017bfd2..7cde4470 100644
--- a/src/test/groovy/io/openliberty/tools/gradle/TestSpringBootApplication30.groovy
+++ b/src/test/groovy/io/openliberty/tools/gradle/TestSpringBootApplication30.groovy
@@ -210,7 +210,18 @@ public class TestSpringBootApplication30 extends AbstractIntegrationTest{
try {
BuildResult result = runTasksFailResult(buildDir, 'deploy', 'libertyStart')
String output = result.getOutput()
- assertTrue(output.contains("Found multiple springBootApplication elements specified in the server configuration. Only one springBootApplication can be configured per Liberty server."))
+ assertTrue(output.contains("Found multiple springBootApplication elements specified in the server configuration file"))
+ } catch (Exception e) {
+ throw new AssertionError ("Fail on task deploy.", e)
+ }
+ }
+
+ @Test
+ public void test_spring_boot_with_springbootapplication_nodes_apps_include_30() {
+ try {
+ BuildResult result = runTasksFailResult(buildDir, 'deploy', 'libertyStart')
+ String output = result.getOutput()
+ assertTrue(output.contains("Found multiple springBootApplication elements specified in the server configuration in files"))
} catch (Exception e) {
throw new AssertionError ("Fail on task deploy.", e)
}
diff --git a/src/test/resources/sample.springboot3/src/main/liberty/alternateConfig/server_springboot.xml b/src/test/resources/sample.springboot3/src/main/liberty/alternateConfig/server_springboot.xml
new file mode 100644
index 00000000..7a542c04
--- /dev/null
+++ b/src/test/resources/sample.springboot3/src/main/liberty/alternateConfig/server_springboot.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ servlet-6.0
+
+
+ springBoot-3.0
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/test/resources/sample.springboot3/src/main/liberty/config/included_server.xml b/src/test/resources/sample.springboot3/src/main/liberty/config/included_server.xml
new file mode 100644
index 00000000..9c2cb215
--- /dev/null
+++ b/src/test/resources/sample.springboot3/src/main/liberty/config/included_server.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/src/test/resources/sample.springboot3/test_spring_boot_with_springbootapplication_nodes_apps_include_30.gradle b/src/test/resources/sample.springboot3/test_spring_boot_with_springbootapplication_nodes_apps_include_30.gradle
new file mode 100644
index 00000000..d23c9727
--- /dev/null
+++ b/src/test/resources/sample.springboot3/test_spring_boot_with_springbootapplication_nodes_apps_include_30.gradle
@@ -0,0 +1,39 @@
+buildscript {
+ ext {
+ springBootVersion = '3.1.3'
+ }
+ repositories {
+ mavenLocal()
+ mavenCentral()
+ maven {
+ url "https://plugins.gradle.org/m2/"
+ }
+ }
+ dependencies {
+ classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
+ classpath "io.openliberty.tools:liberty-gradle-plugin:$lgpVersion"
+ }
+}
+
+apply plugin: 'java'
+apply plugin: 'org.springframework.boot'
+apply plugin: 'liberty'
+
+group = 'liberty.gradle'
+version = '1.0-SNAPSHOT'
+sourceCompatibility = 17
+
+repositories {
+ mavenCentral()
+}
+dependencies {
+ implementation("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
+ testImplementation('org.springframework.boot:spring-boot-starter-test')
+ libertyRuntime group: 'io.openliberty', name: 'openliberty-runtime', version: '23.0.0.10'
+}
+
+liberty {
+ server {
+ serverXmlFile = file("src/main/liberty/alternateConfig/server_springboot.xml")
+ }
+}
\ No newline at end of file