blob: 50997889cffabe93ebdb74f4278697e9301485a7 (
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
|
apply plugin: 'java'
sourceCompatibility = 1.6
apply plugin: 'com.github.johnrengelman.shadow'
configurations {
provided
}
tasks.withType(AbstractCompile) {
classpath += configurations.provided
classpath += configurations.shadow
}
dependencies {
shadow project(':runners:fatjar')
testCompile group: 'junit', name: 'junit', version: '4.12'
provided group: 'org.jetbrains.kotlin', name: 'kotlin-runtime', version: kotlin_version
provided group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlin_version
provided gradleApi()
provided localGroovy()
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
}
task wrapper(type: Wrapper) {
gradleVersion = '2.5'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
shadowJar {
baseName = 'dokka-gradle-plugin'
classifier = ''
relocate('kotlin.', 'dokkakotlin.')
}
apply plugin: 'maven-publish'
publishing {
publications {
dokkaGradlePlugin(MavenPublication) {
from components.shadow
artifactId = 'dokka-gradle-plugin'
artifact sourceJar {
classifier "sources"
}
}
}
}
bintrayPublication(project, ['dokkaGradlePlugin'])
|