diff options
author | Sergey Mashkov <sergey.mashkov@jetbrains.com> | 2015-07-14 17:27:47 +0300 |
---|---|---|
committer | Sergey Mashkov <sergey.mashkov@jetbrains.com> | 2015-07-14 19:33:22 +0300 |
commit | 2bd7a4ac79bfa813a0c19bdcd417c44039b38480 (patch) | |
tree | 09edf865642ed449091c70387267f293787aae1e /gradle-plugin/build.gradle | |
parent | 1a79c5d46536f1140f6348868aa14974182114ba (diff) | |
download | dokka-2bd7a4ac79bfa813a0c19bdcd417c44039b38480.tar.gz dokka-2bd7a4ac79bfa813a0c19bdcd417c44039b38480.tar.bz2 dokka-2bd7a4ac79bfa813a0c19bdcd417c44039b38480.zip |
Build fatjar by gradle and use it's output as dependency for maven and gradle plugins.
Eliminate local repository in out dir.
Diffstat (limited to 'gradle-plugin/build.gradle')
-rw-r--r-- | gradle-plugin/build.gradle | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gradle-plugin/build.gradle b/gradle-plugin/build.gradle index ddc5a460..52fa045e 100644 --- a/gradle-plugin/build.gradle +++ b/gradle-plugin/build.gradle @@ -21,9 +21,7 @@ apply plugin: 'maven-publish' sourceCompatibility = 1.6 repositories { - maven { - url "file:///${projectDir}/../out/repo" - } + mavenLocal() mavenCentral() maven { url 'http://oss.sonatype.org/content/repositories/snapshots' @@ -32,11 +30,7 @@ repositories { dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' - compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - compile "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - compile 'org.jetbrains.dokka:dokka-fatjar:1.0' - - compile 'org.fusesource.jansi:jansi:1.11' + compile "org.jetbrains.dokka:dokka-fatjar:(,0.2)" compile gradleApi() compile localGroovy() @@ -46,6 +40,10 @@ sourceSets { main.java.srcDirs += 'src/main/kotlin' } +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" @@ -55,6 +53,10 @@ publishing { publications { mavenJava(MavenPublication) { from components.java + + artifact sourceJar { + classifier "sources" + } } } } |