Rico Wind | 143c0e2 | 2025-02-19 11:38:31 +0100 | [diff] [blame] | 1 | // Copyright (c) 2025, the R8 project authors. Please see the AUTHORS file |
| 2 | // for details. All rights reserved. Use of this source code is governed by a |
| 3 | // BSD-style license that can be found in the LICENSE file. |
| 4 | |
| 5 | plugins { |
| 6 | `kotlin-dsl` |
| 7 | id("dependencies-plugin") |
| 8 | } |
| 9 | |
| 10 | dependencies { |
| 11 | compileOnly(":keepanno") |
| 12 | } |
| 13 | |
| 14 | java { |
| 15 | sourceSets.main.configure { |
| 16 | java.srcDir(getRoot().resolveAll("src", "assistant", "java")) |
| 17 | } |
| 18 | sourceCompatibility = JvmCompatibility.sourceCompatibility |
| 19 | targetCompatibility = JvmCompatibility.targetCompatibility |
| 20 | toolchain { |
| 21 | languageVersion = JavaLanguageVersion.of(JvmCompatibility.release) |
| 22 | } |
| 23 | withSourcesJar() |
| 24 | } |
| 25 | |
| 26 | tasks.withType<Jar> { |
| 27 | destinationDirectory.set(getRoot().resolveAll("build", "libs")) |
| 28 | archiveFileName.set("assistant.jar") |
| 29 | } |