aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'runners/gradle-plugin/build.gradle')
-rw-r--r--runners/gradle-plugin/build.gradle58
1 files changed, 58 insertions, 0 deletions
diff --git a/runners/gradle-plugin/build.gradle b/runners/gradle-plugin/build.gradle
new file mode 100644
index 00000000..50997889
--- /dev/null
+++ b/runners/gradle-plugin/build.gradle
@@ -0,0 +1,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'])
+