|
11 | 11 |
|
12 | 12 | <properties> |
13 | 13 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
14 | | - <kotlin.version>1.4.10</kotlin.version> |
15 | | - <spock-core.version>1.1-groovy-2.4</spock-core.version> |
16 | | - <groovy-all.version>2.4.11</groovy-all.version> |
17 | | - <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version> |
18 | | - <gmavenplus-plugin.version>1.10.0</gmavenplus-plugin.version> |
| 14 | + <spock-bom.version>2.3-groovy-4.0</spock-bom.version> |
| 15 | + <kotlin.version>1.9.22</kotlin.version> |
19 | 16 | <kotlin-maven-plugin.jvmTarget>1.8</kotlin-maven-plugin.jvmTarget> |
| 17 | + <gmavenplus-plugin.version>3.0.2</gmavenplus-plugin.version> |
| 18 | + <maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version> |
20 | 19 | </properties> |
21 | 20 |
|
| 21 | + <dependencyManagement> |
| 22 | + <dependencies> |
| 23 | + <dependency> |
| 24 | + <groupId>org.spockframework</groupId> |
| 25 | + <artifactId>spock-bom</artifactId> |
| 26 | + <version>${spock-bom.version}</version> |
| 27 | + <type>pom</type> |
| 28 | + <scope>import</scope> |
| 29 | + </dependency> |
| 30 | + </dependencies> |
| 31 | + </dependencyManagement> |
| 32 | + |
22 | 33 | <dependencies> |
23 | 34 | <dependency> |
24 | 35 | <groupId>org.jetbrains.kotlin</groupId> |
|
28 | 39 | <dependency> |
29 | 40 | <groupId>org.spockframework</groupId> |
30 | 41 | <artifactId>spock-core</artifactId> |
31 | | - <version>${spock-core.version}</version> |
32 | | - <scope>test</scope> |
33 | | - </dependency> |
34 | | - <dependency> |
35 | | - <groupId>org.codehaus.groovy</groupId> |
36 | | - <artifactId>groovy-all</artifactId> |
37 | | - <version>${groovy-all.version}</version> |
38 | 42 | <scope>test</scope> |
39 | 43 | </dependency> |
40 | 44 | </dependencies> |
|
44 | 48 | <testSourceDirectory>${project.basedir}/src/test/groovy</testSourceDirectory> |
45 | 49 | <plugins> |
46 | 50 | <plugin> |
47 | | - <groupId>org.apache.maven.plugins</groupId> |
48 | | - <artifactId>maven-surefire-plugin</artifactId> |
49 | | - <version>${maven-surefire-plugin.version}</version> |
| 51 | + <groupId>org.jetbrains.kotlin</groupId> |
| 52 | + <artifactId>kotlin-maven-plugin</artifactId> |
| 53 | + <version>${kotlin.version}</version> |
| 54 | + <executions> |
| 55 | + <execution> |
| 56 | + <id>compile</id> |
| 57 | + <phase>compile</phase> |
| 58 | + <goals> |
| 59 | + <goal>compile</goal> |
| 60 | + </goals> |
| 61 | + </execution> |
| 62 | + </executions> |
50 | 63 | <configuration> |
51 | | - <parallel>methods</parallel> |
52 | | - <threadCount>10</threadCount> |
53 | | - <includes> |
54 | | - <include>**/*Test.*</include> |
55 | | - <include>**/*Spec.*</include> |
56 | | - </includes> |
| 64 | + <jvmTarget>${kotlin-maven-plugin.jvmTarget}</jvmTarget> |
57 | 65 | </configuration> |
58 | 66 | </plugin> |
59 | | - |
60 | 67 | <plugin> |
61 | 68 | <groupId>org.codehaus.gmavenplus</groupId> |
62 | 69 | <artifactId>gmavenplus-plugin</artifactId> |
63 | 70 | <version>${gmavenplus-plugin.version}</version> |
64 | 71 | <executions> |
65 | 72 | <execution> |
66 | 73 | <goals> |
| 74 | + <goal>compile</goal> |
67 | 75 | <goal>compileTests</goal> |
68 | 76 | </goals> |
69 | 77 | </execution> |
70 | 78 | </executions> |
71 | 79 | </plugin> |
72 | | - |
73 | 80 | <plugin> |
74 | | - <groupId>org.jetbrains.kotlin</groupId> |
75 | | - <artifactId>kotlin-maven-plugin</artifactId> |
76 | | - <version>${kotlin.version}</version> |
77 | | - <executions> |
78 | | - <execution> |
79 | | - <id>compile</id> |
80 | | - <phase>compile</phase> |
81 | | - <goals> |
82 | | - <goal>compile</goal> |
83 | | - </goals> |
84 | | - </execution> |
85 | | - </executions> |
| 81 | + <groupId>org.apache.maven.plugins</groupId> |
| 82 | + <artifactId>maven-surefire-plugin</artifactId> |
| 83 | + <version>${maven-surefire-plugin.version}</version> |
86 | 84 | <configuration> |
87 | | - <jvmTarget>${kotlin-maven-plugin.jvmTarget}</jvmTarget> |
| 85 | + <parallel>methods</parallel> |
| 86 | + <threadCount>10</threadCount> |
| 87 | + <includes> |
| 88 | + <include>**/*Test.*</include> |
| 89 | + <include>**/*Spec.*</include> |
| 90 | + </includes> |
88 | 91 | </configuration> |
89 | 92 | </plugin> |
90 | 93 | </plugins> |
91 | 94 | </build> |
92 | | - |
93 | 95 | </project> |
0 commit comments