|
17 | 17 |
|
18 | 18 | <properties>
|
19 | 19 | <scala.major.version>2.11</scala.major.version>
|
20 |
| - <scala.minor.version>8</scala.minor.version> |
| 20 | + <scala.minor.version>7</scala.minor.version> |
21 | 21 | <scala.version>${scala.major.version}.${scala.minor.version}</scala.version>
|
22 | 22 | <scalatest.version>2.2.6</scalatest.version>
|
23 |
| - <maven.scala.plugin.version>2.14.1</maven.scala.plugin.version> |
24 | 23 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
25 | 24 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
26 | 25 | <build.timestamp>${maven.build.timestamp}</build.timestamp>
|
27 | 26 | <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
|
28 | 27 | <maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
|
29 | 28 | <maven.project.info.reports.plugin.version>2.9</maven.project.info.reports.plugin.version>
|
| 29 | + <maven.plugin.api.version>3.3.9</maven.plugin.api.version> |
| 30 | + <maven.core.version>3.3.9</maven.core.version> |
| 31 | + <junit.version>4.12</junit.version> |
| 32 | + <maven.reporting.api.version>3.0</maven.reporting.api.version> |
| 33 | + <scala.maven.plugin.version>3.2.2</scala.maven.plugin.version> |
| 34 | + <maven.enforcer.plugin.version>1.4.1</maven.enforcer.plugin.version> |
30 | 35 | </properties>
|
31 | 36 |
|
32 | 37 | <licenses>
|
|
71 | 76 | <dependency>
|
72 | 77 | <groupId>org.apache.maven</groupId>
|
73 | 78 | <artifactId>maven-plugin-api</artifactId>
|
74 |
| - <version>2.0.9</version> |
| 79 | + <version>${maven.plugin.api.version}</version> |
75 | 80 | </dependency>
|
76 | 81 | <dependency>
|
77 | 82 | <groupId>org.apache.maven</groupId>
|
78 |
| - <artifactId>maven-project</artifactId> |
79 |
| - <version>2.0.9</version> |
| 83 | + <artifactId>maven-core</artifactId> |
| 84 | + <version>${maven.core.version}</version> |
80 | 85 | </dependency>
|
81 | 86 | <dependency>
|
82 | 87 | <groupId>org.apache.maven.reporting</groupId>
|
83 | 88 | <artifactId>maven-reporting-api</artifactId>
|
84 |
| - <version>2.0.9</version> |
85 |
| - </dependency> |
86 |
| - <dependency> |
87 |
| - <groupId>org.apache.maven.doxia</groupId> |
88 |
| - <artifactId>doxia-sink-api</artifactId> |
89 |
| - <version>1.0</version> |
90 |
| - </dependency> |
91 |
| - <dependency> |
92 |
| - <groupId>org.codehaus.plexus</groupId> |
93 |
| - <artifactId>plexus-utils</artifactId> |
94 |
| - <version>3.0</version> |
| 89 | + <version>${maven.reporting.api.version}</version> |
95 | 90 | </dependency>
|
96 | 91 | <dependency>
|
97 | 92 | <groupId>org.scalatest</groupId>
|
|
108 | 103 | <dependency>
|
109 | 104 | <groupId>junit</groupId>
|
110 | 105 | <artifactId>junit</artifactId>
|
111 |
| - <version>4.8.1</version> |
| 106 | + <version>${junit.version}</version> |
112 | 107 | <scope>test</scope>
|
113 | 108 | </dependency>
|
114 | 109 | </dependencies>
|
|
128 | 123 |
|
129 | 124 | <plugins>
|
130 | 125 | <plugin>
|
131 |
| - <groupId>org.scala-tools</groupId> |
132 |
| - <artifactId>maven-scala-plugin</artifactId> |
133 |
| - <version>${maven.scala.plugin.version}</version> |
| 126 | + <groupId>net.alchim31.maven</groupId> |
| 127 | + <artifactId>scala-maven-plugin</artifactId> |
| 128 | + <version>${scala.maven.plugin.version}</version> |
| 129 | + <configuration> |
| 130 | + <recompileMode>incremental</recompileMode> |
| 131 | + <scalaVersion>${scala.version}</scalaVersion> |
| 132 | + </configuration> |
134 | 133 | <executions>
|
135 | 134 | <execution>
|
| 135 | + <id>scala-test-compile</id> |
| 136 | + <phase>test-compile</phase> |
136 | 137 | <goals>
|
137 | 138 | <goal>testCompile</goal>
|
138 | 139 | </goals>
|
139 | 140 | </execution>
|
140 | 141 | </executions>
|
141 |
| - <configuration> |
142 |
| - <scalaVersion>${scala.version}</scalaVersion> |
143 |
| - </configuration> |
144 | 142 | </plugin>
|
145 | 143 | <plugin>
|
146 | 144 | <artifactId>maven-compiler-plugin</artifactId>
|
|
182 | 180 | <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
|
183 | 181 | <streamLogs>true</streamLogs>
|
184 | 182 | <settingsFile>src/it/settings.xml</settingsFile>
|
185 |
| - <properties> |
186 |
| - <scala.version>${scala.version}</scala.version> |
187 |
| - <scalatest.version>${scalatest.version}</scalatest.version> |
188 |
| - <maven.scala.plugin.version>${maven.scala.plugin.version}</maven.scala.plugin.version> |
189 |
| - </properties> |
190 | 183 | <goals>
|
191 | 184 | <goal>clean</goal>
|
192 | 185 | <goal>test</goal>
|
|
209 | 202 | </execution>
|
210 | 203 | </executions>
|
211 | 204 | </plugin>
|
| 205 | + <plugin> |
| 206 | + <groupId>org.apache.maven.plugins</groupId> |
| 207 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 208 | + <version>${maven.enforcer.plugin.version}</version> |
| 209 | + <executions> |
| 210 | + <execution> |
| 211 | + <id>enforce-maven</id> |
| 212 | + <goals> |
| 213 | + <goal>enforce</goal> |
| 214 | + </goals> |
| 215 | + <configuration> |
| 216 | + <rules> |
| 217 | + <requireMavenVersion> |
| 218 | + <!-- We get this from scala-maven-plugin --> |
| 219 | + <version>[3.0.4,)</version> |
| 220 | + </requireMavenVersion> |
| 221 | + </rules> |
| 222 | + </configuration> |
| 223 | + </execution> |
| 224 | + </executions> |
| 225 | + </plugin> |
212 | 226 | </plugins>
|
213 | 227 | </build>
|
214 | 228 |
|
|
266 | 280 | </plugin>
|
267 | 281 | </plugins>
|
268 | 282 | </reporting>
|
269 |
| - |
270 |
| - <profiles> |
271 |
| - <profile> |
272 |
| - <id>maven-3</id> |
273 |
| - <activation> |
274 |
| - <file> |
275 |
| - <!-- This employs that the basedir expression is only recognized by Maven 3.x (see MNG-4760) --> |
276 |
| - <exists>${basedir}</exists> |
277 |
| - </file> |
278 |
| - </activation> |
279 |
| - <build> |
280 |
| - <pluginManagement> |
281 |
| - <plugins> |
282 |
| - <plugin> |
283 |
| - <groupId>org.apache.maven.plugins</groupId> |
284 |
| - <artifactId>maven-site-plugin</artifactId> |
285 |
| - <version>3.5.1</version> |
286 |
| - </plugin> |
287 |
| - </plugins> |
288 |
| - </pluginManagement> |
289 |
| - </build> |
290 |
| - </profile> |
291 |
| - </profiles> |
292 | 283 | </project>
|
0 commit comments