Skip to content

Commit 9f28d25

Browse files
committed
Updated springboot2 sample to use new package
1 parent d026ca2 commit 9f28d25

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

samples/springboot2/pet-store/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ repositories {
1111

1212
dependencies {
1313
compile (
14-
'org.springframework.boot:spring-boot-starter-web:2.1.1.RELEASE',
15-
'com.amazonaws.serverless:aws-serverless-java-container-spring:[1.0,)',
14+
implementation('org.springframework.boot:spring-boot-starter-web:2.1.1.RELEASE') {
15+
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
16+
},
17+
'com.amazonaws.serverless:aws-serverless-java-container-springboot2:[1.0,)',
1618
'io.symphonia:lambda-logging:1.0.1'
1719
)
1820
testCompile("junit:junit")

samples/springboot2/pet-store/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>org.springframework.boot</groupId>
1212
<artifactId>spring-boot-starter-parent</artifactId>
13-
<version>2.1.1.RELEASE</version>
13+
<version>2.1.8.RELEASE</version>
1414
</parent>
1515

1616
<properties>
@@ -22,11 +22,17 @@
2222
<dependency>
2323
<groupId>org.springframework.boot</groupId>
2424
<artifactId>spring-boot-starter-web</artifactId>
25+
<exclusions>
26+
<exclusion>
27+
<groupId>org.springframework.boot</groupId>
28+
<artifactId>spring-boot-starter-tomcat</artifactId>
29+
</exclusion>
30+
</exclusions>
2531
</dependency>
2632

2733
<dependency>
2834
<groupId>com.amazonaws.serverless</groupId>
29-
<artifactId>aws-serverless-java-container-spring</artifactId>
35+
<artifactId>aws-serverless-java-container-springboot2</artifactId>
3036
<version>[0.1,)</version>
3137
</dependency>
3238

0 commit comments

Comments
 (0)