Commit 1a29b9f 1 parent 0a6c7c4 commit 1a29b9f Copy full SHA for 1a29b9f
File tree 5 files changed +28
-187
lines changed
kotlin/io/github/mavi/kover/plugin
5 files changed +28
-187
lines changed Original file line number Diff line number Diff line change 1
1
-Dorg.slf4j.simpleLogger.showDateTime=true
2
2
-Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS
3
+ -ntp
Original file line number Diff line number Diff line change @@ -37,3 +37,7 @@ This plugin is based on the [Gradle Plugin](https://github.com/Kotlin/kotlinx-ko
37
37
</plugin >
38
38
</plugins >
39
39
```
40
+
41
+ ### Known issues
42
+ - During executing tests the following message might appear: ` The MojoDescriptor for the goal prepare-agent cannot be null `
43
+ - Solved by running ` mvn compile ` first as it needs a ` plugin.xml ` in ` target/classes/META-INF/maven/ ` .
Original file line number Diff line number Diff line change 22
22
<kotest .version>5.6.1</kotest .version>
23
23
<ktlint-maven-plugin .version>1.16.0</ktlint-maven-plugin .version>
24
24
<maven-plugin-annotations .version>3.8.2</maven-plugin-annotations .version>
25
+ <maven-plugin-plugin .version>3.8.2</maven-plugin-plugin .version>
25
26
<maven-plugin-testing-harness .version>3.3.0</maven-plugin-testing-harness .version>
26
27
<maven-project .version>2.2.1</maven-project .version>
27
28
<maven-source-plugin .version>3.2.1</maven-source-plugin .version>
247
248
</consoleOutputReporter >
248
249
</configuration >
249
250
</plugin >
251
+ <plugin >
252
+ <groupId >org.apache.maven.plugins</groupId >
253
+ <artifactId >maven-plugin-plugin</artifactId >
254
+ <version >${maven-plugin-plugin.version} </version >
255
+ <executions >
256
+ <execution >
257
+ <goals >
258
+ <goal >descriptor</goal >
259
+ </goals >
260
+ <phase >compile</phase >
261
+ </execution >
262
+ <execution >
263
+ <id >default-descriptor</id >
264
+ <goals >
265
+ <goal >descriptor</goal >
266
+ </goals >
267
+ <phase >none</phase >
268
+ </execution >
269
+ </executions >
270
+ </plugin >
250
271
</plugins >
251
272
</build >
252
273
</project >
Original file line number Diff line number Diff line change 1
- @file:Suppress(" DEPRECATION" )
2
-
3
1
package io.github.mavi.kover.plugin
4
2
5
3
import io.kotest.assertions.withClue
@@ -17,6 +15,8 @@ import java.io.File
17
15
abstract class BaseMojoTest : AbstractMojoTestCase () {
18
16
internal lateinit var session: MavenSession
19
17
18
+ override fun getPluginDescriptorPath (): String = getBasedir() + " /target/classes/META-INF/maven/plugin.xml"
19
+
20
20
override fun setUp () {
21
21
val basedir = File (" ${javaClass.getResource(" /" )?.path} /projects/default" )
22
22
File (basedir, " target" ).deleteRecursively()
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments