File tree Expand file tree Collapse file tree 3 files changed +87
-11
lines changed Expand file tree Collapse file tree 3 files changed +87
-11
lines changed Original file line number Diff line number Diff line change 63
63
<groupId >org.springframework.boot</groupId >
64
64
<artifactId >spring-boot-maven-plugin</artifactId >
65
65
</plugin >
66
+ <plugin >
67
+ <groupId >org.apache.maven.plugins</groupId >
68
+ <artifactId >maven-compiler-plugin</artifactId >
69
+ <version >${maven-compiler-plugin.version} </version >
70
+ <configuration >
71
+ <source >${java.version} </source >
72
+ <target >${java.version} </target >
73
+ </configuration >
74
+ <executions >
75
+ <!-- Replacing default-compile as it is treated specially by maven -->
76
+ <execution >
77
+ <id >default-compile</id >
78
+ <phase >none</phase >
79
+ </execution >
80
+ <!-- Replacing default-testCompile as it is treated specially by maven -->
81
+ <execution >
82
+ <id >default-testCompile</id >
83
+ <phase >none</phase >
84
+ </execution >
85
+ <execution >
86
+ <id >java-compile</id >
87
+ <phase >none</phase >
88
+ </execution >
89
+ <execution >
90
+ <id >java-test-compile</id >
91
+ <phase >none</phase >
92
+ </execution >
93
+ </executions >
94
+ </plugin >
66
95
<plugin >
67
96
<artifactId >kotlin-maven-plugin</artifactId >
68
97
<groupId >org.jetbrains.kotlin</groupId >
69
98
<version >${kotlin.version} </version >
70
99
<configuration >
71
- <args >
72
- <arg >-Xjsr305=strict</arg >
73
- </args >
74
100
<compilerPlugins >
75
101
<plugin >spring</plugin >
76
102
</compilerPlugins >
98
124
<configuration >
99
125
<sourceDirs >
100
126
<sourceDir >${project.basedir} /src/main/kotlin</sourceDir >
101
- <sourceDir >${project.basedir} /src/main/java</sourceDir >
102
127
</sourceDirs >
103
128
</configuration >
104
129
</execution >
111
136
<configuration >
112
137
<sourceDirs >
113
138
<sourceDir >${project.basedir} /src/test/kotlin</sourceDir >
114
- <sourceDir >${project.basedir} /src/test/java</sourceDir >
115
139
</sourceDirs >
116
140
</configuration >
117
141
</execution >
Original file line number Diff line number Diff line change 80
80
81
81
<build >
82
82
<plugins >
83
+ <plugin >
84
+ <groupId >org.apache.maven.plugins</groupId >
85
+ <artifactId >maven-compiler-plugin</artifactId >
86
+ <version >${maven-compiler-plugin.version} </version >
87
+ <configuration >
88
+ <source >${java.version} </source >
89
+ <target >${java.version} </target >
90
+ </configuration >
91
+ <executions >
92
+ <!-- Replacing default-compile as it is treated specially by maven -->
93
+ <execution >
94
+ <id >default-compile</id >
95
+ <phase >none</phase >
96
+ </execution >
97
+ <!-- Replacing default-testCompile as it is treated specially by maven -->
98
+ <execution >
99
+ <id >default-testCompile</id >
100
+ <phase >none</phase >
101
+ </execution >
102
+ <execution >
103
+ <id >java-compile</id >
104
+ <phase >none</phase >
105
+ </execution >
106
+ <execution >
107
+ <id >java-test-compile</id >
108
+ <phase >none</phase >
109
+ </execution >
110
+ </executions >
111
+ </plugin >
83
112
<plugin >
84
113
<groupId >org.jetbrains.kotlin</groupId >
85
114
<artifactId >kotlin-maven-plugin</artifactId >
86
115
<version >${kotlin.version} </version >
87
116
<configuration >
88
- <args >
89
- <arg >-Xjsr305=strict</arg >
90
- </args >
91
117
<compilerPlugins >
92
118
<plugin >spring</plugin >
93
119
</compilerPlugins >
Original file line number Diff line number Diff line change 79
79
<sourceDirectory >${project.basedir} /src/main/kotlin</sourceDirectory >
80
80
<testSourceDirectory >${project.basedir} /src/test/kotlin</testSourceDirectory >
81
81
<plugins >
82
+ <plugin >
83
+ <groupId >org.apache.maven.plugins</groupId >
84
+ <artifactId >maven-compiler-plugin</artifactId >
85
+ <version >${maven-compiler-plugin.version} </version >
86
+ <configuration >
87
+ <source >${java.version} </source >
88
+ <target >${java.version} </target >
89
+ </configuration >
90
+ <executions >
91
+ <!-- Replacing default-compile as it is treated specially by maven -->
92
+ <execution >
93
+ <id >default-compile</id >
94
+ <phase >none</phase >
95
+ </execution >
96
+ <!-- Replacing default-testCompile as it is treated specially by maven -->
97
+ <execution >
98
+ <id >default-testCompile</id >
99
+ <phase >none</phase >
100
+ </execution >
101
+ <execution >
102
+ <id >java-compile</id >
103
+ <phase >none</phase >
104
+ </execution >
105
+ <execution >
106
+ <id >java-test-compile</id >
107
+ <phase >none</phase >
108
+ </execution >
109
+ </executions >
110
+ </plugin >
82
111
<plugin >
83
112
<groupId >org.jetbrains.kotlin</groupId >
84
113
<artifactId >kotlin-maven-plugin</artifactId >
85
114
<configuration >
86
- <args >
87
- <arg >-Xjsr305=strict</arg >
88
- </args >
89
115
<compilerPlugins >
90
116
<plugin >spring</plugin >
91
117
<plugin >jpa</plugin >
You can’t perform that action at this time.
0 commit comments