Skip to content

Commit

Permalink
Fix kapt autodiscovery deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
clementetb committed May 31, 2024
1 parent 241c42b commit 07835fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/plugin-compiler/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ plugins {
val mavenPublicationName = "compilerPlugin"

dependencies {
kapt("org.jetbrains.kotlin:kotlin-compiler-embeddable:${Versions.kotlin}")
annotationProcessor("org.jetbrains.kotlin:kotlin-compiler-embeddable:${Versions.kotlin}")
compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:${Versions.kotlin}")
// Added to prevent warnings about inconsistent versions
// w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
// w: Consider providing an explicit dependency on kotlin-reflect 1.4 to prevent strange errors
implementation(kotlin("reflect"))
kapt(Deps.autoService)
annotationProcessor(Deps.autoService)
compileOnly(Deps.autoService)
kapt(Deps.autoServiceAnnotation)

Expand Down
1 change: 0 additions & 1 deletion packages/plugin-compiler/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@
# limitations under the License.
#
kotlin.mpp.applyDefaultHierarchyTemplate=false
kapt.include.compile.classpath=false

0 comments on commit 07835fd

Please sign in to comment.