File tree Expand file tree Collapse file tree 8 files changed +66
-25
lines changed
input/jaxrs-controller-v1
output/jpa-mysql-repository Expand file tree Collapse file tree 8 files changed +66
-25
lines changed Original file line number Diff line number Diff line change 78
78
</dependency >
79
79
<dependency >
80
80
<groupId >org.glassfish.jersey.core</groupId >
81
- <artifactId >jersey-common </artifactId >
81
+ <artifactId >jersey-server </artifactId >
82
82
<scope >test</scope >
83
83
</dependency >
84
84
</dependencies >
Original file line number Diff line number Diff line change 70
70
<artifactId >slf4j-simple</artifactId >
71
71
<scope >test</scope >
72
72
</dependency >
73
- <dependency >
74
- <groupId >org.glassfish.jersey.core</groupId >
75
- <artifactId >jersey-common</artifactId >
76
- <scope >test</scope >
77
- </dependency >
78
73
</dependencies >
79
74
80
75
</project >
Original file line number Diff line number Diff line change 15
15
<properties >
16
16
<maven .compiler.source>11</maven .compiler.source>
17
17
<maven .compiler.target>11</maven .compiler.target>
18
+ <spring-boot .version>2.4.1</spring-boot .version>
18
19
<mutation .skip>true</mutation .skip>
19
- <spring-boot .version>2.4.4</spring-boot .version>
20
20
<jackson .version>2.8.5</jackson .version>
21
21
<coverage .line>0</coverage .line>
22
22
<coverage .branch>0</coverage .branch>
38
38
<dependencies >
39
39
<dependency >
40
40
<groupId >org.springframework.boot</groupId >
41
- <artifactId >spring-boot-starter-web </artifactId >
41
+ <artifactId >spring-boot-starter-jersey </artifactId >
42
42
</dependency >
43
43
<dependency >
44
44
<groupId >${project.groupId} </groupId >
77
77
</dependencies >
78
78
79
79
<build >
80
+ <finalName >spring-application</finalName >
80
81
<plugins >
81
82
<plugin >
82
83
<groupId >org.springframework.boot</groupId >
83
84
<artifactId >spring-boot-maven-plugin</artifactId >
85
+ <configuration >
86
+ <layers >
87
+ <enabled >true</enabled >
88
+ <configuration >${project.basedir} /src/layers.xml</configuration >
89
+ </layers >
90
+ </configuration >
91
+ </plugin >
92
+ <plugin >
93
+ <groupId >org.springframework.boot</groupId >
94
+ <artifactId >spring-boot-maven-plugin</artifactId >
95
+ <configuration >
96
+ <mainClass >br.com.helpdev.SpringSampleApplication</mainClass >
97
+ </configuration >
98
+
99
+ <executions >
100
+ <execution >
101
+ <goals >
102
+ <goal >repackage</goal >
103
+ </goals >
104
+ </execution >
105
+ </executions >
106
+
84
107
</plugin >
85
108
</plugins >
86
109
</build >
110
+
87
111
</project >
Original file line number Diff line number Diff line change
1
+ <layers xmlns =" http://www.springframework.org/schema/boot/layers"
2
+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi:schemaLocation=" http://www.springframework.org/schema/boot/layers
4
+ https://www.springframework.org/schema/boot/layers/layers-2.3.xsd" >
5
+ <application >
6
+ <into layer =" spring-boot-loader" >
7
+ <include >org/springframework/boot/loader/**</include >
8
+ </into >
9
+ <into layer =" application" />
10
+ </application >
11
+ <dependencies >
12
+ <into layer =" snapshot-dependencies" >
13
+ <include >*:*:*SNAPSHOT</include >
14
+ </into >
15
+ <into layer =" dependencies" />
16
+ </dependencies >
17
+ <layerOrder >
18
+ <layer >dependencies</layer >
19
+ <layer >spring-boot-loader</layer >
20
+ <layer >snapshot-dependencies</layer >
21
+ <layer >application</layer >
22
+ </layerOrder >
23
+ </layers >
Original file line number Diff line number Diff line change 4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
5
6
6
@ SpringBootApplication (
7
- scanBasePackages = {"br.com.helpdev" , "br.com.helpdev.output" }
7
+ scanBasePackages = {"br.com.helpdev" }
8
8
)
9
9
public class SpringSampleApplication {
10
10
Original file line number Diff line number Diff line change
1
+ package br .com .helpdev .config ;
2
+
3
+ import org .glassfish .jersey .server .ResourceConfig ;
4
+ import org .springframework .stereotype .Component ;
5
+
6
+ @ Component
7
+ public class WebJerseyConfiguration extends ResourceConfig {
8
+
9
+ public WebJerseyConfiguration () {
10
+ packages ("br.com.helpdev.controller" );
11
+ }
12
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 64
64
<validation-api .version>2.0.1.Final</validation-api .version>
65
65
<microprofile-fault-tolerance .version>3.0</microprofile-fault-tolerance .version>
66
66
<modelmapper .version>2.3.0</modelmapper .version>
67
- <glassfish .version>2.22.2 </glassfish .version>
67
+ <glassfish .test. version>2.32 </glassfish .test .version>
68
68
<jaxb-api .version>2.3.1</jaxb-api .version>
69
69
</properties >
70
70
269
269
</dependency >
270
270
<dependency >
271
271
<groupId >org.glassfish.jersey.core</groupId >
272
- <artifactId >jersey-common</artifactId >
273
- <version >${glassfish.version} </version >
274
- <scope >test</scope >
272
+ <artifactId >jersey-server</artifactId >
273
+ <version >${glassfish.test.version} </version >
275
274
</dependency >
276
275
<dependency >
277
276
<groupId >com.github.tomakehurst</groupId >
You can’t perform that action at this time.
0 commit comments