aboutsummaryrefslogtreecommitdiff
path: root/plugin/build.gradle.kts
blob: 9e248fb80bbeb8a267da2563ddc2e7e5c72d2e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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"
    }
}