diff options
author | Linnea Gräf <nea@nea.moe> | 2024-01-16 20:38:40 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-01-16 20:40:53 +0100 |
commit | fb9a3e59af30e698d137d0dd9083059fc404c321 (patch) | |
tree | 7f51e077fa3b5871667a930cb71dff54869b5416 /plugin/build.gradle.kts | |
download | shot-fb9a3e59af30e698d137d0dd9083059fc404c321.tar.gz shot-fb9a3e59af30e698d137d0dd9083059fc404c321.tar.bz2 shot-fb9a3e59af30e698d137d0dd9083059fc404c321.zip |
Diffstat (limited to 'plugin/build.gradle.kts')
-rw-r--r-- | plugin/build.gradle.kts | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts new file mode 100644 index 0000000..9e248fb --- /dev/null +++ b/plugin/build.gradle.kts @@ -0,0 +1,34 @@ +// SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe> +// +// SPDX-License-Identifier: CC0-1.0 + +plugins { + `java-gradle-plugin` + kotlin("jvm") + id("com.gradle.plugin-publish") version "1.2.1" + id("com.github.johnrengelman.shadow") version ("8.1.1") +} + + +repositories { + mavenCentral() +} + +val shade by configurations.creating +dependencies { + implementation(project(":")) + shade(project(":")) { isTransitive = false } +} +tasks.jar { + archiveClassifier.set("thin") +} +tasks.shadowJar { + configurations = listOf(shade) + archiveClassifier.set("") +} +gradlePlugin { + val shot by plugins.creating { + id = "moe.nea.shot" + implementationClass = "moe.nea.shot.plugin.ShotPlugin" + } +} |