Skip to content

Commit

Permalink
# upgraded kotlin to 1.9.20, gradle to 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sbra0902 committed Dec 11, 2023
1 parent 498ad61 commit 6a49b62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kokain-ksp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies {
implementation("com.google.devtools.ksp:symbol-processing-api:1.9.21-1.0.15")
testImplementation 'junit:junit:4.12'
testImplementation project(path: ':kokain-core-api', configuration: 'default')
testImplementation 'com.github.tschuchortdev:kotlin-compile-testing-ksp:1.4.9'
testImplementation 'dev.zacsweers.kctfork:ksp:0.4.0'
testImplementation 'org.mockito:mockito-core:1.10.19'
implementation project(path: ':kokain-generator-lib', configuration: 'default')
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package com.schwarz.kokain.ksp

import com.tschuchort.compiletesting.JvmCompilationResult
import com.tschuchort.compiletesting.KotlinCompilation
import com.tschuchort.compiletesting.SourceFile
import com.tschuchort.compiletesting.symbolProcessorProviders
import org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi
import org.junit.Assert
import org.junit.Test

@OptIn(ExperimentalCompilerApi::class)
class KokainProcessorKotlinTest {

@Test
Expand All @@ -24,7 +27,7 @@ class KokainProcessorKotlinTest {
Assert.assertEquals(KotlinCompilation.ExitCode.OK, compilation.exitCode)
}

private fun compileKotlin(vararg sourceFiles: SourceFile): KotlinCompilation.Result {
private fun compileKotlin(vararg sourceFiles: SourceFile): JvmCompilationResult {
return KotlinCompilation().apply {
sources = sourceFiles.toMutableList()
symbolProcessorProviders = listOf(KokainProcessorProvider())
Expand Down

0 comments on commit 6a49b62

Please sign in to comment.