1*238ab3e7SAndroid Build Coastguard Worker /* 2*238ab3e7SAndroid Build Coastguard Worker * Copyright (C) 2020 Square, Inc. 3*238ab3e7SAndroid Build Coastguard Worker * 4*238ab3e7SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*238ab3e7SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*238ab3e7SAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*238ab3e7SAndroid Build Coastguard Worker * 8*238ab3e7SAndroid Build Coastguard Worker * https://www.apache.org/licenses/LICENSE-2.0 9*238ab3e7SAndroid Build Coastguard Worker * 10*238ab3e7SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*238ab3e7SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*238ab3e7SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*238ab3e7SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*238ab3e7SAndroid Build Coastguard Worker * limitations under the License. 15*238ab3e7SAndroid Build Coastguard Worker */ 16*238ab3e7SAndroid Build Coastguard Worker 17*238ab3e7SAndroid Build Coastguard Worker import com.vanniktech.maven.publish.JavadocJar.Javadoc 18*238ab3e7SAndroid Build Coastguard Worker import com.vanniktech.maven.publish.KotlinJvm 19*238ab3e7SAndroid Build Coastguard Worker import com.vanniktech.maven.publish.MavenPublishBaseExtension 20*238ab3e7SAndroid Build Coastguard Worker import org.gradle.jvm.tasks.Jar 21*238ab3e7SAndroid Build Coastguard Worker <lambda>null22*238ab3e7SAndroid Build Coastguard Workerplugins { 23*238ab3e7SAndroid Build Coastguard Worker kotlin("jvm") 24*238ab3e7SAndroid Build Coastguard Worker id("com.vanniktech.maven.publish.base") 25*238ab3e7SAndroid Build Coastguard Worker id("org.jetbrains.dokka") 26*238ab3e7SAndroid Build Coastguard Worker } 27*238ab3e7SAndroid Build Coastguard Worker <lambda>null28*238ab3e7SAndroid Build Coastguard Workerdependencies { 29*238ab3e7SAndroid Build Coastguard Worker api(project(":moshi")) 30*238ab3e7SAndroid Build Coastguard Worker api(kotlin("reflect")) 31*238ab3e7SAndroid Build Coastguard Worker 32*238ab3e7SAndroid Build Coastguard Worker testImplementation(kotlin("test")) 33*238ab3e7SAndroid Build Coastguard Worker testImplementation(libs.junit) 34*238ab3e7SAndroid Build Coastguard Worker testImplementation(libs.truth) 35*238ab3e7SAndroid Build Coastguard Worker } 36*238ab3e7SAndroid Build Coastguard Worker <lambda>null37*238ab3e7SAndroid Build Coastguard Workertasks.withType<Jar>().configureEach { 38*238ab3e7SAndroid Build Coastguard Worker manifest { 39*238ab3e7SAndroid Build Coastguard Worker attributes("Automatic-Module-Name" to "com.squareup.moshi.kotlin") 40*238ab3e7SAndroid Build Coastguard Worker } 41*238ab3e7SAndroid Build Coastguard Worker } 42*238ab3e7SAndroid Build Coastguard Worker <lambda>null43*238ab3e7SAndroid Build Coastguard Workerconfigure<MavenPublishBaseExtension> { 44*238ab3e7SAndroid Build Coastguard Worker configure(KotlinJvm(javadocJar = Javadoc())) 45*238ab3e7SAndroid Build Coastguard Worker } 46