Fix maven tests
- Add required extra dependencies to install to local repo before test. - Remove expected warning about runtime bundled into compiler because it is no more. - Fix basedir reference in kapt-allopen test. - Fix reflection tests after deprecated members removal.
This commit is contained in:
@@ -122,6 +122,8 @@
|
|||||||
<artifact>org.jetbrains.kotlin:kotlin-maven-plugin:${project.version}</artifact>
|
<artifact>org.jetbrains.kotlin:kotlin-maven-plugin:${project.version}</artifact>
|
||||||
<artifact>org.jetbrains.kotlin:kotlin-maven-allopen:${project.version}</artifact>
|
<artifact>org.jetbrains.kotlin:kotlin-maven-allopen:${project.version}</artifact>
|
||||||
<artifact>org.jetbrains.kotlin:kotlin-maven-noarg:${project.version}</artifact>
|
<artifact>org.jetbrains.kotlin:kotlin-maven-noarg:${project.version}</artifact>
|
||||||
|
<artifact>org.jetbrains.kotlin:kotlin-maven-sam-with-receiver:${project.version}</artifact>
|
||||||
|
<artifact>org.jetbrains.kotlin:kotlin-annotation-processing-maven:${project.version}</artifact>
|
||||||
<artifact>org.jetbrains.kotlin:kotlin-runtime:${project.version}</artifact>
|
<artifact>org.jetbrains.kotlin:kotlin-runtime:${project.version}</artifact>
|
||||||
<artifact>org.jetbrains.kotlin:kotlin-script-runtime:${project.version}</artifact>
|
<artifact>org.jetbrains.kotlin:kotlin-script-runtime:${project.version}</artifact>
|
||||||
<artifact>org.jetbrains.kotlin:kotlin-stdlib:${project.version}</artifact>
|
<artifact>org.jetbrains.kotlin:kotlin-stdlib:${project.version}</artifact>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ if (!file.exists() || !file.isFile()) {
|
|||||||
throw new FileNotFoundException("Could not find generated JAR: " + file);
|
throw new FileNotFoundException("Could not find generated JAR: " + file);
|
||||||
}
|
}
|
||||||
|
|
||||||
File generatedFile = new File(baseDir, "target/generated-sources/kapt/compile/coffee/CoffeeMaker_Factory.java");
|
File generatedFile = new File(basedir, "target/generated-sources/kapt/compile/coffee/CoffeeMaker_Factory.java");
|
||||||
if (!generatedFile.exists() || !generatedFile.isFile()) {
|
if (!generatedFile.exists() || !generatedFile.isFile()) {
|
||||||
throw new FileNotFoundException("Kapt was not executed, file is absent: " + generatedFile);
|
throw new FileNotFoundException("Kapt was not executed, file is absent: " + generatedFile);
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
[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 of 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/@snapshot@/kotlin-compiler-@snapshot@.jar: (-1, -1) Library has Kotlin runtime bundled into it
|
|
||||||
[WARNING] No sources found skipping Kotlin compile
|
[WARNING] No sources found skipping Kotlin compile
|
||||||
[INFO] Applicability test for project use-test-extension
|
[INFO] Applicability test for project use-test-extension
|
||||||
[INFO] Applied plugin: 'test-me'
|
[INFO] Applied plugin: 'test-me'
|
||||||
|
|||||||
+1
@@ -17,6 +17,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import kotlin.reflect.*
|
import kotlin.reflect.*
|
||||||
|
import kotlin.reflect.full.*
|
||||||
|
|
||||||
fun topLevelFun() {}
|
fun topLevelFun() {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user