blob: 637ee723bff41982a3cb6add9deec8fb16eb2c1b [file]
/*
* Copyright (C) 2025 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import androidx.build.SoftwareType
plugins {
id("AndroidXPlugin")
id("java-library")
id("org.jetbrains.kotlin.jvm")
}
dependencies {
api(libs.jspecify)
api("androidx.annotation:annotation:1.9.1")
testImplementation(libs.junit)
testImplementation(libs.kotlinTest)
testImplementation(libs.mockitoCore4)
testImplementation(libs.mockitoKotlin4)
testImplementation(project(":compose:remote:remote-creation-core"))
testImplementation(project(":compose:remote:remote-core-testutils"))
testImplementation("org.yaml:snakeyaml:2.4")
testImplementation("org.jetbrains.kotlin:kotlin-stdlib")
testImplementation project(':kruth:kruth')
}
androidx {
name = "Remote Compose Core"
type = SoftwareType.PUBLISHED_LIBRARY
inceptionYear = "2024"
description = "Java core for RemoteCompose document player"
}
// b/434969628: Force Gradle to resolve to JAR and not classes directory when created Kzip
configurations.configureEach { configuration ->
if (configuration.name == "runtimeElements" || configuration.name == "apiElements") {
configuration.outgoing.variants.removeIf { it.name == "classes" }
}
}