mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
Remove KAPT support (#1848)
* Remove KAPT support * Stick KSP on the root classpath * Another * Another
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
import Build_gradle.TestMode.KAPT
|
||||
import Build_gradle.TestMode.KSP
|
||||
import Build_gradle.TestMode.REFLECT
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
kotlin("kapt") apply false
|
||||
id("com.google.devtools.ksp") apply false
|
||||
}
|
||||
|
||||
enum class TestMode {
|
||||
REFLECT,
|
||||
KAPT,
|
||||
KSP,
|
||||
}
|
||||
|
||||
@@ -24,11 +21,6 @@ when (testMode) {
|
||||
REFLECT -> {
|
||||
// Do nothing!
|
||||
}
|
||||
|
||||
KAPT -> {
|
||||
apply(plugin = "org.jetbrains.kotlin.kapt")
|
||||
}
|
||||
|
||||
KSP -> {
|
||||
apply(plugin = "com.google.devtools.ksp")
|
||||
}
|
||||
@@ -53,11 +45,6 @@ dependencies {
|
||||
REFLECT -> {
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
KAPT -> {
|
||||
"kaptTest"(project(":moshi-kotlin-codegen"))
|
||||
}
|
||||
|
||||
KSP -> {
|
||||
"kspTest"(project(":moshi-kotlin-codegen"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user