File tree Expand file tree Collapse file tree 14 files changed +106
-17
lines changed
dependabot/check_this_in_if_it_changes
com.ibm.ws.app.manager.springboot
src/com/ibm/ws/app/manager/springboot/util
test/com/ibm/ws/app/manager/springboot/util
io.openliberty.springboot.fat40.app
src/main/java/com/ibm/ws/springboot/fat40/test/app
io.openliberty.springboot.fat40.multicontext.app/src/main/java/com/ibm/ws/springboot/fat40/multicontext/app
io.openliberty.springboot.fat40_fat/fat/src/com/ibm/ws/springboot/support/fat
io.openliberty.springboot.support.web.server.version40
resources/container/META-INF/spring
src/io/openliberty/springboot/support/web/server/version40/container Expand file tree Collapse file tree 14 files changed +106
-17
lines changed Original file line number Diff line number Diff line change 4661
4661
<artifactId >package-url-java</artifactId >
4662
4662
<version >1.0.1</version >
4663
4663
</dependency >
4664
+ <dependency >
4665
+ <groupId >org.springframework.boot</groupId >
4666
+ <artifactId >spring-boot-actuator-autoconfigure</artifactId >
4667
+ <version >4.0.0-M1</version >
4668
+ </dependency >
4664
4669
<dependency >
4665
4670
<groupId >org.springframework.boot</groupId >
4666
4671
<artifactId >spring-boot-autoconfigure</artifactId >
Original file line number Diff line number Diff line change @@ -928,6 +928,7 @@ org.slf4j:slf4j-api:1.7.36
928
928
org.slf4j:slf4j-jdk14:1.7.36
929
929
org.slf4j:slf4j-simple:1.7.36
930
930
org.sonatype.goodies:package-url-java:1.0.1
931
+ org.springframework.boot:spring-boot-actuator-autoconfigure:4.0.0-M1
931
932
org.springframework.boot:spring-boot-autoconfigure:1.5.9.RELEASE
932
933
org.springframework.boot:spring-boot-autoconfigure:2.7.18
933
934
org.springframework.boot:spring-boot-autoconfigure:3.3.5
Original file line number Diff line number Diff line change @@ -700,10 +700,18 @@ public String toString() {
700
700
}
701
701
702
702
public static String getArtifactId (String jarName ) {
703
- // jarName :: [<dirPath>/]<artifactId>-<version>.jar
703
+ // jarName :: [<dirPath>/]<artifactId>-<version>-M1.jar
704
+ //-M1 in the version of artifact ids is for milestone versions. Getting the right artifact id is essential to filter them out correctly.
704
705
int idxBegAid = jarName .lastIndexOf ('/' ) + 1 ;
705
- int idxEndAid = jarName .lastIndexOf ('-' ) - 1 ;
706
- return ((idxBegAid <= idxEndAid ) && jarName .endsWith (".jar" )) ? jarName .substring (idxBegAid , idxEndAid + 1 ).toLowerCase () : "" ;
706
+ int idxEndAid = -1 ;
707
+
708
+ for (int i = 0 ; i < jarName .length () - 1 ; i ++) {
709
+ if (jarName .charAt (i ) == '-' && Character .isDigit (jarName .charAt (i + 1 ))) {
710
+ idxEndAid = i ;
711
+ break ;
712
+ }
713
+ }
714
+ return ((idxBegAid <= idxEndAid ) && jarName .endsWith (".jar" )) ? jarName .substring (idxBegAid , idxEndAid ).toLowerCase () : "" ;
707
715
}
708
716
709
717
/**
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2018, 2022 IBM Corporation and others.
2
+ * Copyright (c) 2018, 2025 IBM Corporation and others.
3
3
* All rights reserved. This program and the accompanying materials
4
4
* are made available under the terms of the Eclipse Public License 2.0
5
5
* which accompanies this distribution, and is available at
6
6
* http://www.eclipse.org/legal/epl-2.0/
7
- *
7
+ *
8
8
* SPDX-License-Identifier: EPL-2.0
9
9
*
10
10
* Contributors:
@@ -85,7 +85,7 @@ public void testGetArtifactId() throws Exception {
85
85
expected = "a" ; // no dirPath, smallest artifact
86
86
assertTrue ("Artifact name is " + expected , expected .equals (getArtifactId ("a-2.jar" )));
87
87
expected = "b" ; // dirPath, smallest artifact
88
- assertTrue ("Artifact name is " + expected , expected .equals (getArtifactId ("/b-c .jar" )));
88
+ assertTrue ("Artifact name is " + expected , expected .equals (getArtifactId ("/b-2 .jar" )));
89
89
}
90
90
91
91
@ Test
Original file line number Diff line number Diff line change 38
38
-testpath: \
39
39
org.springframework.boot:spring-boot;${springBootVersion40}, \
40
40
org.springframework.boot:spring-boot-autoconfigure;${springBootVersion40}, \
41
+ org.springframework.boot:spring-boot-web-server;${springBootVersion40},
41
42
\
42
43
org.springframework:spring-beans;${springVersion40}, \
43
44
org.springframework:spring-context;${springVersion40}, \
Original file line number Diff line number Diff line change
1
+ /*******************************************************************************
2
+ * Copyright (c) 2018,2023 IBM Corporation and others.
3
+ * All rights reserved. This program and the accompanying materials
4
+ * are made available under the terms of the Eclipse Public License 2.0
5
+ * which accompanies this distribution, and is available at
6
+ * http://www.eclipse.org/legal/epl-2.0/
7
+ *
8
+ * SPDX-License-Identifier: EPL-2.0
9
+ *
10
+ * Contributors:
11
+ * IBM Corporation - initial API and implementation
12
+ *******************************************************************************/
13
+ package com .ibm .ws .springboot .fat40 .test .app ;
14
+
15
+
16
+ import org .springframework .boot .web .server .MimeMappings ;
17
+ import org .springframework .boot .web .server .WebServerFactoryCustomizer ;
18
+ import org .springframework .boot .web .server .servlet .ConfigurableServletWebServerFactory ;
19
+ import org .springframework .stereotype .Component ;
20
+
21
+ @ Component
22
+ public class CustomizationBean implements WebServerFactoryCustomizer <ConfigurableServletWebServerFactory > {
23
+
24
+ @ Override
25
+ public void customize (ConfigurableServletWebServerFactory server ) {
26
+ MimeMappings mappings = new MimeMappings (MimeMappings .DEFAULT );
27
+ mappings .add ("weby" ,"application/json" );
28
+ server .setMimeMappings (mappings );
29
+ }
30
+
31
+ }
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2018,2023 IBM Corporation and others.
2
+ * Copyright (c) 2018,2025 IBM Corporation and others.
3
3
* All rights reserved. This program and the accompanying materials
4
4
* are made available under the terms of the Eclipse Public License 2.0
5
5
* which accompanies this distribution, and is available at
16
16
import org .springframework .context .annotation .Configuration ;
17
17
18
18
@ Configuration
19
- @ ComponentScan ("com.ibm.ws.springboot.fat30 .multicontext.app.part0" )
19
+ @ ComponentScan ("com.ibm.ws.springboot.fat40 .multicontext.app.part0" )
20
20
public class Config {
21
21
// EMPTY
22
22
}
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2018,2023 IBM Corporation and others.
2
+ * Copyright (c) 2018,2025 IBM Corporation and others.
3
3
* All rights reserved. This program and the accompanying materials
4
4
* are made available under the terms of the Eclipse Public License 2.0
5
5
* which accompanies this distribution, and is available at
19
19
20
20
21
21
@ Configuration
22
- @ ComponentScan ("com.ibm.ws.springboot.fat30 .multicontext.app.part00" )
22
+ @ ComponentScan ("com.ibm.ws.springboot.fat40 .multicontext.app.part00" )
23
23
@ PropertySource ("classpath:servlet1.properties" )
24
24
@ EnableAutoConfiguration
25
25
public class ServletConfig1 {
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2018,2023 IBM Corporation and others.
2
+ * Copyright (c) 2018,2025 IBM Corporation and others.
3
3
* All rights reserved. This program and the accompanying materials
4
4
* are made available under the terms of the Eclipse Public License 2.0
5
5
* which accompanies this distribution, and is available at
18
18
import org .springframework .context .annotation .PropertySource ;
19
19
20
20
@ Configuration
21
- @ ComponentScan ("com.ibm.ws.springboot.fat30 .multicontext.app.part01" )
21
+ @ ComponentScan ("com.ibm.ws.springboot.fat40 .multicontext.app.part01" )
22
22
@ PropertySource ("classpath:servlet2.properties" )
23
23
@ EnableAutoConfiguration
24
24
public class ServletConfig2 {
Original file line number Diff line number Diff line change 44
44
ExtractedAppTests40 .class ,
45
45
GenerateWebServerPluginTests40 .class ,
46
46
JakartaFeatureTests40 .class ,
47
- // MimeMapping40.class,
47
+ MimeMapping40 .class ,
48
48
ConfigSpringBootApplicationTagWarTests40 .class ,
49
49
SpringBootUtilityThinTest .class ,
50
50
JSPTests40 .class ,
51
51
MultiModuleProjectTests40 .class ,
52
- // ConfigActuatorXMLOverrideTests40.class,
52
+ ConfigActuatorXMLOverrideTests40 .class ,
53
53
CommonWebFluxTests40 .class ,
54
54
NoServletRequiredAppTests40 .class ,
55
- // MultiContextTests40.class,
55
+ MultiContextTests40 .class ,
56
56
WebAnnotationTests40 .class ,
57
57
WebSocketSpringBootAppTests40 .class ,
58
58
// WebSocketWebAppTests40.class,
You can’t perform that action at this time.
0 commit comments