aboutsummaryrefslogtreecommitdiff
path: root/testApi/build.gradle.kts
blob: c8b510a139ff05cfbd2b3ca8713c73cb525da7da (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
import org.jetbrains.configureBintrayPublication

plugins {
    `maven-publish`
    id("com.jfrog.bintray")
}

dependencies {
    api(project(":core"))
    implementation(project(":kotlin-analysis"))
    implementation("junit:junit:4.13") // TODO: remove dependency to junit
    implementation(kotlin("stdlib"))
    implementation(kotlin("reflect"))
}

val sourceJar by tasks.registering(Jar::class) {
    archiveClassifier.set("sources")
    from(sourceSets["main"].allSource)
}

publishing {
    publications {
        register<MavenPublication>("dokkaTestAPI") {
            artifactId = "dokka-test-api"
            from(components["java"])
            artifact(sourceJar.get())
        }
    }
}

configureBintrayPublication("dokkaTestAPI")