blob: b21645f2f46ca0ad0957e0e0f14c3d02b974725c [file]
// Copyright (c) 2025, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
plugins {
`java-library`
id("dependencies-plugin")
}
dependencies { compileOnly(project(":keepanno", "keepannoClasses")) }
java {
sourceSets.main.configure { java.srcDir(getRoot().resolveAll("src", "assistant", "java")) }
sourceCompatibility = JvmCompatibility.sourceCompatibility
targetCompatibility = JvmCompatibility.targetCompatibility
toolchain { languageVersion = JavaLanguageVersion.of(JvmCompatibility.release) }
withSourcesJar()
}
val jarTask =
tasks.named<Jar>("jar") {
// This path & name is hardcoded in ToolHelper.
destinationDirectory.set(getRoot().resolveAll("build", "libs"))
archiveFileName.set("assistant.jar")
}
val assistantJar by configurations.consumable("assistantJar") { outgoing.artifact(jarTask) }
val assistantSources by
configurations.consumable("assistantSources") {
outgoing.artifact(tasks.named<Jar>("sourcesJar"))
}