• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 Square, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
<lambda>null16 plugins {
17   id("com.google.devtools.ksp")
18   kotlin("jvm")
19 }
20 
<lambda>null21 tasks.compileTestKotlin {
22   compilerOptions {
23     freeCompilerArgs.add("-opt-in=org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi")
24   }
25 }
26 
<lambda>null27 dependencies {
28   implementation(projects.kotlinpoet)
29   implementation(projects.interop.ksp)
30   implementation(libs.autoService)
31   compileOnly(libs.ksp.api)
32   ksp(libs.autoService.ksp)
33   // Always force the latest version of the KSP/kotlin impl in tests to match what we're building against
34   testImplementation(libs.ksp.api)
35   testImplementation(libs.kotlin.compilerEmbeddable)
36   testImplementation(libs.kotlin.annotationProcessingEmbeddable)
37   testImplementation(libs.ksp)
38   testImplementation(libs.kotlinCompileTesting)
39   testImplementation(libs.kotlinCompileTesting.ksp)
40   testImplementation(libs.kotlin.junit)
41   testImplementation(libs.truth)
42 }
43