Maven: Make compiler plugin option reporting more user-friendly

This commit is contained in:
Yan Zhulanow
2017-02-01 15:42:23 +03:00
parent 277490b903
commit 349095cd14
7 changed files with 49 additions and 18 deletions
@@ -1,15 +1,17 @@
[INFO] Kotlin Compiler version @snapshot@
[INFO] Compiling Kotlin sources from [/test-extension/src/main/kotlin]
[INFO] Module name is test-extension
[WARNING] Some JAR files in the classpath have the Kotlin Runtime library bundled into them. This may cause difficult to debug problems if there's a different version @snapshot@ the Kotlin Runtime library in the classpath. Consider removing these libraries from the classpath or use '-Xskip-runtime-version-check' to suppress this warning
[WARNING] /local-repo/org/jetbrains/kotlin/kotlin-compiler/1.1-SNAPSHOT/kotlin-compiler-1.1-SNAPSHOT.jar: (-1, -1) Library has Kotlin runtime bundled into it
[INFO] Kotlin Compiler version @snapshot@
[WARNING] No sources found skipping Kotlin compile
[INFO] Kotlin Compiler version @snapshot@
[INFO] Compiling Kotlin sources from [/use-test-extension/src/main/kotlin]
[INFO] Module name is use-test-extension
[INFO] Applicability test for project use-test-extension
[INFO] Applied plugin: 'test-me'
[INFO] Configuring test plugin with arguments
[INFO] Options for plugin test-me: [plugin:org.jetbrains.kotlin.test.test-plugin:test-option=my-special-value]
[INFO] Plugin applied
[INFO] Option value: my-special-value
[INFO] Kotlin Compiler version @snapshot@
[WARNING] No sources found skipping Kotlin compile
[WARNING] No sources found skipping Kotlin compile
@@ -6,7 +6,7 @@
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-compiler-extensions-test</artifactId>
<version>1.1-SNAPSHOT</version>
<version>1.0-SNAPSHOT</version>
<modules>
<module>test-extension</module>
<module>use-test-extension</module>
@@ -5,16 +5,12 @@
<parent>
<artifactId>kotlin-compiler-extensions-test</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<version>1.1-SNAPSHOT</version>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>test-extension</artifactId>
<properties>
<kotlin.version>1.1-SNAPSHOT</kotlin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
@@ -23,6 +23,7 @@ class MavenPluginComponent : KotlinMavenPluginExtension {
logger.info("Configuring test plugin with arguments")
return listOf(PluginOption(
"test-me",
TestCommandLineProcessor.TestPluginId,
TestCommandLineProcessor.MyTestOption.name,
"my-special-value"))
@@ -5,17 +5,12 @@
<parent>
<artifactId>kotlin-compiler-extensions-test</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<version>1.1-SNAPSHOT</version>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>use-test-extension</artifactId>
<properties>
<kotlin.version>1.1-SNAPSHOT</kotlin.version>
</properties>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>