aboutsummaryrefslogtreecommitdiff
path: root/kvision-tools/kvision-compiler-plugin/build.gradle.kts
blob: c27127d868e9e961bb8e9a75e5e9ef0f61857452 (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
plugins {
    kotlin("jvm")
    id("maven-publish")
}

val mpaptRuntimeVersion: String by project

repositories()

dependencies {
    implementation(kotlin("stdlib-jdk8"))
    implementation("de.jensklingenberg:mpapt-runtime:$mpaptRuntimeVersion")
    compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable")
}

val sourcesJar by tasks.registering(Jar::class) {
    archiveClassifier.set("sources")
    from(kotlin.sourceSets.main.get().kotlin)
}

publishing {
    publications {
        create<MavenPublication>("kotlin") {
            from(components["kotlin"])
            artifact(tasks["sourcesJar"])
            pom {
                defaultPom()
            }
        }
    }
}

setupPublication()