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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
import com.gradle.publish.DependenciesBuilder
import org.jetbrains.CorrectShadowPublishing
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: "com.gradle.plugin-publish"
sourceCompatibility = 1.8
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
languageVersion = language_version
apiVersion = language_version
jvmTarget = "1.8"
}
}
repositories {
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
shadow project(path: ':runners:gradle-plugin', configuration: 'shadow')
compileOnly project(':integration')
compileOnly gradleApi()
compileOnly localGroovy()
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
}
processResources {
eachFile {
if (it.name == "org.jetbrains.dokka-android.properties") {
it.filter { line ->
line.replace("<version>", dokka_version)
}
}
}
}
shadowJar {
baseName = 'dokka-android-gradle-plugin'
classifier = ''
}
apply plugin: 'maven-publish'
publishing {
publications {
dokkaAndroidGradlePlugin(MavenPublication) { MavenPublication publication ->
artifactId = 'dokka-android-gradle-plugin'
artifact sourceJar {
classifier "sources"
}
CorrectShadowPublishing.configure(publication, project)
}
}
}
bintrayPublication(project, ['dokkaAndroidGradlePlugin'])
configurations.archives.artifacts.clear()
artifacts {
archives shadowJar
}
pluginBundle {
website = 'https://www.kotlinlang.org/'
vcsUrl = 'https://github.com/kotlin/dokka.git'
description = 'Dokka, the Kotlin documentation tool'
tags = ['dokka', 'kotlin', 'kdoc', 'android']
plugins {
dokkaAndroidGradlePlugin {
id = 'org.jetbrains.dokka-android'
displayName = 'Dokka Android plugin'
}
}
withDependencies { List<Dependency> list ->
list.clear()
def builder = new DependenciesBuilder()
builder.addUniqueScopedDependencies(list, configurations.shadow, "compile")
}
mavenCoordinates {
groupId = "org.jetbrains.dokka"
artifactId = "dokka-android-gradle-plugin"
}
}
|