diff options
author | Dmitry Jemerov <intelliyole@gmail.com> | 2015-07-15 13:05:25 +0200 |
---|---|---|
committer | Dmitry Jemerov <intelliyole@gmail.com> | 2015-07-15 13:05:25 +0200 |
commit | 823e7d10f185c8ea61351475fd298d5e70927a2c (patch) | |
tree | 763bc59b36391cb1a80b7a67c77c89b5bb3f2113 /gradle-plugin | |
parent | 1a79c5d46536f1140f6348868aa14974182114ba (diff) | |
parent | f0ea1cfaec90479243268a87b11481141fd920c5 (diff) | |
download | dokka-823e7d10f185c8ea61351475fd298d5e70927a2c.tar.gz dokka-823e7d10f185c8ea61351475fd298d5e70927a2c.tar.bz2 dokka-823e7d10f185c8ea61351475fd298d5e70927a2c.zip |
Merge pull request #30 from cy6erGn0m/build
Change building process
Diffstat (limited to 'gradle-plugin')
-rw-r--r-- | gradle-plugin/build.gradle | 18 | ||||
-rw-r--r-- | gradle-plugin/dokka-gradle-plugin.iml | 6 |
2 files changed, 11 insertions, 13 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" + } } } } diff --git a/gradle-plugin/dokka-gradle-plugin.iml b/gradle-plugin/dokka-gradle-plugin.iml index bf48a145..dfbcc3eb 100644 --- a/gradle-plugin/dokka-gradle-plugin.iml +++ b/gradle-plugin/dokka-gradle-plugin.iml @@ -1464,13 +1464,9 @@ </SOURCES> </library> </orderEntry> - <orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib:0.1-SNAPSHOT" level="project" /> - <orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-gradle-plugin:0.1-SNAPSHOT" level="project" /> - <orderEntry type="library" name="Gradle: org.jetbrains.dokka:dokka-fatjar:1.0" level="project" /> <orderEntry type="library" name="Gradle: org.fusesource.jansi:jansi:1.11" level="project" /> - <orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-runtime:0.1-SNAPSHOT" level="project" /> - <orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-gradle-plugin-api:0.1-SNAPSHOT" level="project" /> <orderEntry type="library" scope="TEST" name="Gradle: junit:junit:4.12" level="project" /> <orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-core:1.3" level="project" /> + <orderEntry type="library" name="Gradle: org.jetbrains.dokka:dokka-fatjar:0.0.1-SNAPSHOT" level="project" /> </component> </module>
\ No newline at end of file |