| // 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")) |
| } |