Skip to content

Commit 54d3dc6

Browse files
committed
put exclude filter directly in springboot3 module
1 parent 40f1e06 commit 54d3dc6

File tree

4 files changed

+36
-10
lines changed

4 files changed

+36
-10
lines changed

aws-serverless-java-container-springboot3/pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>aws-serverless-java-container</artifactId>
55
<groupId>com.amazonaws.serverless</groupId>
6-
<version>2.1.5</version>
6+
<version>2.1.3</version>
77
<relativePath>..</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
@@ -30,12 +30,12 @@
3030
<dependency>
3131
<groupId>com.amazonaws.serverless</groupId>
3232
<artifactId>aws-serverless-java-container-core</artifactId>
33-
<version>2.1.5</version>
33+
<version>2.1.3</version>
3434
</dependency>
3535
<dependency>
3636
<groupId>com.amazonaws.serverless</groupId>
3737
<artifactId>aws-serverless-java-container-core</artifactId>
38-
<version>2.1.5</version>
38+
<version>2.1.3</version>
3939
<classifier>tests</classifier>
4040
<type>test-jar</type>
4141
<scope>test</scope>
@@ -302,6 +302,9 @@
302302
<plugin>
303303
<groupId>com.github.spotbugs</groupId>
304304
<artifactId>spotbugs-maven-plugin</artifactId>
305+
<configuration>
306+
<excludeFilterFile>${project.basedir}/spotbugs-excludeFilter.xml</excludeFilterFile>
307+
</configuration>
305308
<executions>
306309
<!--
307310
Ensures that SpotBug inspects source code when project is compiled.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one
4+
~ or more contributor license agreements. See the NOTICE file
5+
~ distributed with this work for additional information
6+
~ regarding copyright ownership. The ASF licenses this file
7+
~ to you under the Apache License, Version 2.0 (the
8+
~ "License"); you may not use this file except in compliance
9+
~ with the License. You may obtain a copy of the License at
10+
~
11+
~ http://www.apache.org/licenses/LICENSE-2.0
12+
~
13+
~ Unless required by applicable law or agreed to in writing,
14+
~ software distributed under the License is distributed on an
15+
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
~ KIND, either express or implied. See the License for the
17+
~ specific language governing permissions and limitations
18+
~ under the License.
19+
-->
20+
<FindBugsFilter>
21+
<!-- https://github.com/spotbugs/spotbugs/issues/1601 -->
22+
<Match>
23+
<Bug pattern="EI_EXPOSE_REP"/>
24+
</Match>
25+
<Match>
26+
<Bug pattern="EI_EXPOSE_REP2"/>
27+
</Match>
28+
</FindBugsFilter>

aws-serverless-springboot3-archetype/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<parent>
55
<groupId>com.amazonaws.serverless</groupId>
66
<artifactId>aws-serverless-java-container</artifactId>
7-
<version>2.1.5-SNAPSHOT</version>
7+
<version>2.1.3</version>
88
</parent>
99

1010
<groupId>com.amazonaws.serverless.archetypes</groupId>
1111
<artifactId>aws-serverless-springboot3-archetype</artifactId>
12-
<version>2.1.5-SNAPSHOT</version>
12+
<version>2.1.3</version>
1313
<packaging>maven-archetype</packaging>
1414

1515
<scm>

samples/springboot3/pet-store/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
apply plugin: 'java'
22

3-
java {
4-
sourceCompatibility = JavaVersion.VERSION_21
5-
targetCompatibility = JavaVersion.VERSION_21
6-
}
7-
83
repositories {
94
mavenLocal()
105
mavenCentral()

0 commit comments

Comments
 (0)