1 /* 2 * Copyright (C) 2019 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>null16plugins { 17 kotlin("jvm") 18 } 19 <lambda>null20tasks.jar { 21 manifest { 22 attributes("Automatic-Module-Name" to "com.squareup.kotlinpoet.metadata") 23 } 24 } 25 <lambda>null26tasks.compileTestKotlin { 27 compilerOptions { 28 freeCompilerArgs.addAll("-Xjvm-default=all") 29 optIn.add("org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi") 30 } 31 } 32 <lambda>null33dependencies { 34 implementation(libs.autoCommon) 35 implementation(libs.guava) 36 api(libs.kotlin.metadata) 37 api(projects.kotlinpoet) 38 39 testImplementation(libs.kotlin.junit) 40 testImplementation(libs.truth) 41 testImplementation(libs.compileTesting) 42 testImplementation(libs.kotlinCompileTesting) 43 testImplementation(libs.kotlin.annotationProcessingEmbeddable) 44 testImplementation(libs.kotlin.compilerEmbeddable) 45 } 46