aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle138
1 files changed, 0 insertions, 138 deletions
diff --git a/build.gradle b/build.gradle
deleted file mode 100644
index 777d45dd..00000000
--- a/build.gradle
+++ /dev/null
@@ -1,138 +0,0 @@
-allprojects {
- ext {
- if (!project.findProperty("dokka_version")) {
- final String buildNumber = System.getenv("BUILD_NUMBER")
- dokka_version = dokka_version_base + (buildNumber == null || System.getenv("FORCE_SNAPSHOT") != null ? "-SNAPSHOT" : "-$buildNumber")
- }
- }
-
- if (project == rootProject) {
- println "Publication version: $dokka_version"
- }
-
- group 'org.jetbrains.dokka'
- version dokka_version
-
- def repo = {
- artifactPattern("https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_dev_CompilerAllPlugins/[revision]/internal/[module](.[ext])")
- artifactPattern("https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_dev_CompilerAllPlugins/[revision]/[module](.[ext])")
- artifactPattern("https://teamcity.jetbrains.com/guestAuth/repository/download/IntelliJMarkdownParser_Build/[revision]/([module]_[ext]/)[module](.[ext])")
- }
-
- buildscript {
- repositories {
- mavenCentral()
- maven { url "https://dl.bintray.com/kotlin/kotlin-eap" }
- maven { url "https://dl.bintray.com/kotlin/kotlin-dev" }
- maven { url "https://plugins.gradle.org/m2/" }
- ivy(repo)
- }
- dependencies {
- classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
- classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
-
- classpath "com.gradle.publish:plugin-publish-plugin:0.9.10"
- }
- }
-
- repositories {
- jcenter()
- mavenCentral()
- mavenLocal()
- maven { url 'https://kotlin.bintray.com/kotlin-plugin' }
- maven { url 'https://www.jetbrains.com/intellij-repository/releases' }
- maven { url "https://dl.bintray.com/jetbrains/markdown" }
- maven { url "https://dl.bintray.com/kotlin/kotlin-eap" }
- maven { url "https://dl.bintray.com/kotlin/kotlin-dev" }
- maven { url "https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_dev_CompilerAllPlugins/$bundled_kotlin_compiler_version/maven" }
- ivy(repo)
- maven { url "https://kotlin.bintray.com/kotlinx" }
- maven { url "https://dl.bintray.com/kotlin/kotlinx" }
- maven { url "https://dl.bintray.com/orangy/maven" } // TODO: remove this repository when kotlinx.cli is available in maven
- }
-}
-
-
-def bintrayPublication(project, List<String> _publications) {
- configure(project, {
- apply plugin: 'com.jfrog.bintray'
-
- bintray {
- user = System.getenv('BINTRAY_USER')
- key = System.getenv('BINTRAY_KEY')
-
- pkg {
- repo = dokka_publication_channel
- name = 'dokka'
- userOrg = 'kotlin'
- desc = 'Dokka, the Kotlin documentation tool'
- vcsUrl = 'https://github.com/kotlin/dokka.git'
- licenses = ['Apache-2.0']
- version {
- name = dokka_version
- }
- }
-
- publications = _publications
- }
- })
-}
-
-
-configurations {
- ideaIC
- intellijCore
-}
-
-repositories {
- maven { url 'https://kotlin.bintray.com/kotlin-plugin' }
- maven { url 'https://www.jetbrains.com/intellij-repository/snapshots' }
- maven { url 'https://www.jetbrains.com/intellij-repository/releases' }
-}
-
-dependencies {
- intellijCore "com.jetbrains.intellij.idea:intellij-core:$idea_version"
- ideaIC "com.jetbrains.intellij.idea:ideaIC:$idea_version"
-}
-
-def intellijCoreAnalysis() {
- return zipTree(configurations.intellijCore.singleFile).matching ({
- include("intellij-core-analysis.jar")
- })
-}
-
-def ideaRT() {
- return zipTree(project.configurations.ideaIC.singleFile).matching ({
- include("lib/idea_rt.jar")
- })
-}
-
-def repoLocation = uri(file("$buildDir/dist-maven"))
-
-configurations {
- kotlin_plugin_full
-}
-
-
-allprojects {
-
- task publishToDistMaven {
- group "publishing"
- description "Publishes all Maven publications to Maven repository 'distMaven'."
- dependsOn tasks.withType(PublishToMavenRepository).matching {
- it.repository == publishing.repositories.distMaven
- }
- }
-
- plugins.withType(MavenPublishPlugin) {
- publishing {
- repositories {
- maven {
- name 'distMaven'
- url repoLocation
- }
- }
- }
-
- }
-} \ No newline at end of file