blob: 340334b7d83049c404f9dc962e23555306e37276 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
import org.jetbrains.configureBintrayPublication
import org.jetbrains.dokkaVersion
plugins {
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "0.10.1"
}
repositories {
google()
}
dependencies {
implementation(project(":core"))
compileOnly("com.fasterxml.jackson.core:jackson-annotations:2.11.1")
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin")
compileOnly("com.android.tools.build:gradle:3.0.0")
compileOnly("com.android.tools.build:gradle-core:3.0.0")
compileOnly("com.android.tools.build:builder-model:3.0.0")
compileOnly(gradleApi())
compileOnly(gradleKotlinDsl())
testImplementation(gradleApi())
testImplementation(gradleKotlinDsl())
testImplementation(kotlin("test-junit"))
testImplementation("org.jetbrains.kotlin:kotlin-gradle-plugin")
constraints {
val kotlin_version: String by project
compileOnly("org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}") {
because("kotlin-gradle-plugin and :core both depend on this")
}
}
}
val sourceJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
}
gradlePlugin {
plugins {
create("dokkaGradlePlugin") {
id = "org.jetbrains.dokka"
implementationClass = "org.jetbrains.dokka.gradle.DokkaPlugin"
version = dokkaVersion
}
}
}
pluginBundle {
website = "https://www.kotlinlang.org/"
vcsUrl = "https://github.com/kotlin/dokka.git"
description = "Dokka, the Kotlin documentation tool"
tags = listOf("dokka", "kotlin", "kdoc", "android")
plugins {
getByName("dokkaGradlePlugin") {
displayName = "Dokka plugin"
}
}
mavenCoordinates {
groupId = "org.jetbrains.dokka"
artifactId = "dokka-gradle-plugin"
}
}
publishing {
publications {
register<MavenPublication>("pluginMaven") {
artifactId = "dokka-gradle-plugin"
}
register<MavenPublication>("dokkaGradlePluginForIntegrationTests") {
artifactId = "dokka-gradle-plugin"
from(components["java"])
version = "for-integration-tests-SNAPSHOT"
}
}
}
configureBintrayPublication("dokkaGradlePluginPluginMarkerMaven", "pluginMaven")
|