Skip to content

Commit 111282c

Browse files
authored
Add unit test for kapt (#577)
* Add dependencies. * Add base classes from moshi. * Add one test case. * Extra version and tweak a bit. * Add remaining test cases.
1 parent bd788ab commit 111282c

File tree

7 files changed

+747
-43
lines changed

7 files changed

+747
-43
lines changed

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LICENSES = ['Apache-2.0']
1414
# Plugin versions
1515
GRADLE_PLUGIN_VERSION = 3.2.1
1616
KOTLIN_VERSION = 1.2.71
17+
KOTLIN_COMPILER_LIB_VERSION = 1.3.11
1718
CONFIG_PLUGIN_VERSION = 2.2.2
1819
JFROG_PLUGIN_VERSION = 4.1.1
1920
BINTRAY_PLUGIN_VERSION = 1.8.4

processor/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ dependencies {
3434
compile "com.squareup:kotlinpoet:$KOTLINPOET_VERSION"
3535
compile project(path: ':annotation')
3636

37+
testCompile androidJar()
38+
testCompile files(Jvm.current().getToolsJar())
3739
testCompile "junit:junit:$JUNIT_VERSION"
3840
testCompile "com.google.testing.compile:compile-testing:$COMPILE_TESTING_VERSION"
3941
testCompile "commons-io:commons-io:$COMMONS_IO_VERSION"
40-
testCompile androidJar()
41-
testCompile files(Jvm.current().getToolsJar())
42+
testCompile "com.squareup.okio:okio:2.1.0"
43+
testCompile "org.jetbrains.kotlin:kotlin-compiler-embeddable:$KOTLIN_COMPILER_LIB_VERSION"
44+
testCompile "org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:$KOTLIN_COMPILER_LIB_VERSION"
4245
testCompileAar "androidx.legacy:legacy-support-v4:$ANDROIDX_LIBRARY_VERSION"
4346
testCompileAar "com.bluelinelabs:conductor:$CONDUCTOR_VERSION"
4447
testCompileAar project(path: ":library", configuration: "default")

0 commit comments

Comments
 (0)