Fix maven and android tests after modularizing and rebasing

This commit is contained in:
Ilya Chernikov
2017-09-02 14:17:17 +03:00
parent 3a55ed31a6
commit 3aabeca191
10 changed files with 43 additions and 2 deletions
+1
View File
@@ -165,6 +165,7 @@ messages/**)
-keep class gnu.trove.TIntHashSet { *; } -keep class gnu.trove.TIntHashSet { *; }
-keep class gnu.trove.TIntIterator { *; } -keep class gnu.trove.TIntIterator { *; }
-keep class org.iq80.snappy.SlowMemory { *; } -keep class org.iq80.snappy.SlowMemory { *; }
-keep class javaslang.match.PatternsProcessor { *; }
-keepclassmembers enum * { -keepclassmembers enum * {
public static **[] values(); public static **[] values();
+9 -1
View File
@@ -32,7 +32,7 @@ dependencies {
compile(projectTests(":plugins:uast-kotlin")) compile(projectTests(":plugins:uast-kotlin"))
compile(projectTests(":js:js.tests")) compile(projectTests(":js:js.tests"))
compile(protobufFull()) compile(protobufFull())
compileOnly(ideaSdkDeps("jps-build-test", subdir = "jps/test")) compile(ideaSdkDeps("jps-build-test", subdir = "jps/test"))
testCompile(project(":compiler.tests-common")) testCompile(project(":compiler.tests-common"))
testCompile(project(":idea:idea-test-framework")) { isTransitive = false } testCompile(project(":idea:idea-test-framework")) { isTransitive = false }
testCompile(project(":compiler:incremental-compilation-impl")) testCompile(project(":compiler:incremental-compilation-impl"))
@@ -62,3 +62,11 @@ sourceSets {
projectTest { projectTest {
workingDir = rootDir workingDir = rootDir
} }
val generateTests by task<JavaExec> {
classpath = the<JavaPluginConvention>().sourceSets["test"].runtimeClasspath
main = "org.jetbrains.kotlin.generators.tests.GenerateTestsKt"
workingDir = rootDir
}
+1
View File
@@ -21,6 +21,7 @@ dependencies {
testCompile(project(":compiler.tests-common")) testCompile(project(":compiler.tests-common"))
testCompile(project(":idea:idea-test-framework")) { isTransitive = false } testCompile(project(":idea:idea-test-framework")) { isTransitive = false }
testCompile(project(":plugins:lint")) { isTransitive = false } testCompile(project(":plugins:lint")) { isTransitive = false }
testCompile(project(":idea:idea-jvm"))
testCompile(projectTests(":idea")) testCompile(projectTests(":idea"))
testCompile(projectTests(":idea:idea-gradle")) testCompile(projectTests(":idea:idea-gradle"))
testCompile(ideaPluginDeps("properties", plugin = "properties")) testCompile(ideaPluginDeps("properties", plugin = "properties"))
+2
View File
@@ -1,6 +1,8 @@
apply { plugin("kotlin") } apply { plugin("kotlin") }
jvmTarget = "1.6"
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":compiler:frontend")) compile(project(":compiler:frontend"))
+2
View File
@@ -1,6 +1,8 @@
apply { plugin("kotlin") } apply { plugin("kotlin") }
jvmTarget = "1.6"
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":compiler:frontend")) compile(project(":compiler:frontend"))
+2
View File
@@ -1,6 +1,8 @@
apply { plugin("kotlin") } apply { plugin("kotlin") }
jvmTarget = "1.6"
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":compiler:frontend")) compile(project(":compiler:frontend"))
+2
View File
@@ -1,6 +1,8 @@
apply { plugin("kotlin") } apply { plugin("kotlin") }
jvmTarget = "1.6"
dependencies { dependencies {
compile(project(":core")) compile(project(":core"))
compile(project(":compiler:util")) compile(project(":compiler:util"))
@@ -39,6 +39,14 @@
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<jvm>${env.JDK_18}/bin/java</jvm>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
@@ -40,6 +40,21 @@
<artifactId>kotlin-compiler</artifactId> <artifactId>kotlin-compiler</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-script-runtime</artifactId>
<version>${project.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.codehaus.groovy</groupId> <groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId> <artifactId>groovy-all</artifactId>
+1 -1
View File
@@ -47,7 +47,7 @@ dependencies {
shadows project(path: ':custom-dependencies:protobuf-lite', configuration: 'default') shadows project(path: ':custom-dependencies:protobuf-lite', configuration: 'default')
compile project(':kotlin-stdlib') compile project(':kotlin-stdlib')
compile project(path: ':custom-dependencies:protobuf-lite', configuration: 'default') compileOnly project(path: ':custom-dependencies:protobuf-lite', configuration: 'default')
} }
task copyAnnotations(type: Sync) { task copyAnnotations(type: Sync) {