-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #928 from arunvenmany-ibm/springboot_multi_node_fix
changes for springbootappplication nodes in multiple config files
- Loading branch information
Showing
5 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/test/resources/sample.springboot3/src/main/liberty/alternateConfig/server_springboot.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<server description="new server"> | ||
|
||
<featureManager> | ||
<!-- tag::servlet[] --> | ||
<feature>servlet-6.0</feature> | ||
<!-- end::servlet[] --> | ||
<!-- tag::springboot[] --> | ||
<feature>springBoot-3.0</feature> | ||
<!-- end::springboot[] --> | ||
</featureManager> | ||
|
||
<!-- tag::httpport[] --> | ||
<httpEndpoint id="defaultHttpEndpoint" | ||
host="*" | ||
httpPort="9080" | ||
httpsPort="9443" /> | ||
<!-- end::httpport[] --> | ||
<include location="${server.config.dir}/included_server.xml"/> | ||
<springBootApplication id="guide-spring-boot" | ||
location="guide-spring-boot-0.1.0.jar" | ||
name="guide-spring-boot" /> | ||
|
||
<!-- end::springBootApplication[] --> | ||
|
||
</server> |
6 changes: 6 additions & 0 deletions
6
src/test/resources/sample.springboot3/src/main/liberty/config/included_server.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<server description="new server"> | ||
<springBootApplication id="guide-spring-boot" | ||
location="guide-spring-boot-0.2.0.jar" | ||
name="guide-spring-boot" /> | ||
</server> |
39 changes: 39 additions & 0 deletions
39
...mple.springboot3/test_spring_boot_with_springbootapplication_nodes_apps_include_30.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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") | ||
} | ||
} |