1*1b2d298cSOwner Cleanup Botallprojects { 2*1b2d298cSOwner Cleanup Bot group 'org.jetbrains.dokka' 3*1b2d298cSOwner Cleanup Bot version dokka_version 4*1b2d298cSOwner Cleanup Bot 5*1b2d298cSOwner Cleanup Bot def repo = { 6*1b2d298cSOwner Cleanup Bot artifactPattern("https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_dev_CompilerAllPlugins/[revision]/internal/[module](.[ext])") 7*1b2d298cSOwner Cleanup Bot artifactPattern("https://teamcity.jetbrains.com/guestAuth/repository/download/IntelliJMarkdownParser_Build/[revision]/([module]_[ext]/)[module](.[ext])") 8*1b2d298cSOwner Cleanup Bot } 9*1b2d298cSOwner Cleanup Bot 10*1b2d298cSOwner Cleanup Bot buildscript { 11*1b2d298cSOwner Cleanup Bot repositories { 12*1b2d298cSOwner Cleanup Bot mavenCentral() 13*1b2d298cSOwner Cleanup Bot jcenter() 14*1b2d298cSOwner Cleanup Bot maven { url "http://dl.bintray.com/kotlin/kotlin-eap" } 15*1b2d298cSOwner Cleanup Bot maven { url "https://dl.bintray.com/kotlin/kotlin-dev" } 16*1b2d298cSOwner Cleanup Bot maven { url "https://plugins.gradle.org/m2/" } 17*1b2d298cSOwner Cleanup Bot ivy(repo) 18*1b2d298cSOwner Cleanup Bot } 19*1b2d298cSOwner Cleanup Bot dependencies { 20*1b2d298cSOwner Cleanup Bot classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7' 21*1b2d298cSOwner Cleanup Bot classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1' 22*1b2d298cSOwner Cleanup Bot 23*1b2d298cSOwner Cleanup Bot classpath "com.gradle.publish:plugin-publish-plugin:0.9.10" 24*1b2d298cSOwner Cleanup Bot } 25*1b2d298cSOwner Cleanup Bot } 26*1b2d298cSOwner Cleanup Bot 27*1b2d298cSOwner Cleanup Bot repositories { 28*1b2d298cSOwner Cleanup Bot mavenCentral() 29*1b2d298cSOwner Cleanup Bot mavenLocal() 30*1b2d298cSOwner Cleanup Bot maven { url 'https://kotlin.bintray.com/kotlin-plugin' } 31*1b2d298cSOwner Cleanup Bot maven { url 'https://www.jetbrains.com/intellij-repository/releases' } 32*1b2d298cSOwner Cleanup Bot maven { url "https://dl.bintray.com/jetbrains/markdown" } 33*1b2d298cSOwner Cleanup Bot maven { url "http://dl.bintray.com/kotlin/kotlin-eap" } 34*1b2d298cSOwner Cleanup Bot maven { url "https://dl.bintray.com/kotlin/kotlin-dev" } 35*1b2d298cSOwner Cleanup Bot maven { url 'https://jitpack.io' } 36*1b2d298cSOwner Cleanup Bot maven { url "https://teamcity.jetbrains.com/guestAuth/repository/download/Kotlin_dev_CompilerAllPlugins/$bundled_kotlin_compiler_version/maven" } 37*1b2d298cSOwner Cleanup Bot ivy(repo) 38*1b2d298cSOwner Cleanup Bot maven { url "https://dl.bintray.com/kotlin/kotlinx.html" } 39*1b2d298cSOwner Cleanup Bot } 40*1b2d298cSOwner Cleanup Bot} 41*1b2d298cSOwner Cleanup Bot 42*1b2d298cSOwner Cleanup Bot 43*1b2d298cSOwner Cleanup Botdef bintrayPublication(project, List<String> _publications) { 44*1b2d298cSOwner Cleanup Bot configure(project, { 45*1b2d298cSOwner Cleanup Bot apply plugin: 'com.jfrog.bintray' 46*1b2d298cSOwner Cleanup Bot 47*1b2d298cSOwner Cleanup Bot bintray { 48*1b2d298cSOwner Cleanup Bot user = System.getenv('BINTRAY_USER') 49*1b2d298cSOwner Cleanup Bot key = System.getenv('BINTRAY_KEY') 50*1b2d298cSOwner Cleanup Bot 51*1b2d298cSOwner Cleanup Bot pkg { 52*1b2d298cSOwner Cleanup Bot repo = dokka_publication_channel 53*1b2d298cSOwner Cleanup Bot name = 'dokka' 54*1b2d298cSOwner Cleanup Bot userOrg = 'kotlin' 55*1b2d298cSOwner Cleanup Bot desc = 'Dokka, the Kotlin documentation tool' 56*1b2d298cSOwner Cleanup Bot vcsUrl = 'https://github.com/kotlin/dokka.git' 57*1b2d298cSOwner Cleanup Bot licenses = ['Apache-2.0'] 58*1b2d298cSOwner Cleanup Bot version { 59*1b2d298cSOwner Cleanup Bot name = dokka_version 60*1b2d298cSOwner Cleanup Bot } 61*1b2d298cSOwner Cleanup Bot } 62*1b2d298cSOwner Cleanup Bot 63*1b2d298cSOwner Cleanup Bot publications = _publications 64*1b2d298cSOwner Cleanup Bot } 65*1b2d298cSOwner Cleanup Bot }) 66*1b2d298cSOwner Cleanup Bot} 67*1b2d298cSOwner Cleanup Bot 68*1b2d298cSOwner Cleanup Bottask wrapper(type: Wrapper) { 69*1b2d298cSOwner Cleanup Bot gradleVersion = '4.2.1' 70*1b2d298cSOwner Cleanup Bot distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" 71*1b2d298cSOwner Cleanup Bot} 72*1b2d298cSOwner Cleanup Bot 73*1b2d298cSOwner Cleanup Botconfigurations { 74*1b2d298cSOwner Cleanup Bot ideaIC 75*1b2d298cSOwner Cleanup Bot intellijCore 76*1b2d298cSOwner Cleanup Bot} 77*1b2d298cSOwner Cleanup Bot 78*1b2d298cSOwner Cleanup Botrepositories { 79*1b2d298cSOwner Cleanup Bot maven { url 'https://kotlin.bintray.com/kotlin-plugin' } 80*1b2d298cSOwner Cleanup Bot maven { url 'https://www.jetbrains.com/intellij-repository/snapshots' } 81*1b2d298cSOwner Cleanup Bot maven { url 'https://www.jetbrains.com/intellij-repository/releases' } 82*1b2d298cSOwner Cleanup Bot} 83*1b2d298cSOwner Cleanup Bot 84*1b2d298cSOwner Cleanup Botdependencies { 85*1b2d298cSOwner Cleanup Bot intellijCore "com.jetbrains.intellij.idea:intellij-core:$idea_version" 86*1b2d298cSOwner Cleanup Bot ideaIC "com.jetbrains.intellij.idea:ideaIC:$idea_version" 87*1b2d298cSOwner Cleanup Bot} 88*1b2d298cSOwner Cleanup Bot 89*1b2d298cSOwner Cleanup Botdef intellijCoreAnalysis() { 90*1b2d298cSOwner Cleanup Bot return zipTree(configurations.intellijCore.singleFile).matching ({ 91*1b2d298cSOwner Cleanup Bot include("intellij-core-analysis.jar") 92*1b2d298cSOwner Cleanup Bot }) 93*1b2d298cSOwner Cleanup Bot} 94*1b2d298cSOwner Cleanup Bot 95*1b2d298cSOwner Cleanup Botdef ideaRT() { 96*1b2d298cSOwner Cleanup Bot return zipTree(project.configurations.ideaIC.singleFile).matching ({ 97*1b2d298cSOwner Cleanup Bot include("lib/idea_rt.jar") 98*1b2d298cSOwner Cleanup Bot }) 99*1b2d298cSOwner Cleanup Bot} 100*1b2d298cSOwner Cleanup Bot 101*1b2d298cSOwner Cleanup Botdef repoLocation = uri(file("$buildDir/dist-maven")) 102*1b2d298cSOwner Cleanup Bot 103*1b2d298cSOwner Cleanup Botallprojects { 104*1b2d298cSOwner Cleanup Bot 105*1b2d298cSOwner Cleanup Bot task publishToDistMaven { 106*1b2d298cSOwner Cleanup Bot group "publishing" 107*1b2d298cSOwner Cleanup Bot description "Publishes all Maven publications to Maven repository 'distMaven'." 108*1b2d298cSOwner Cleanup Bot dependsOn tasks.withType(PublishToMavenRepository).matching { 109*1b2d298cSOwner Cleanup Bot it.repository == publishing.repositories.distMaven 110*1b2d298cSOwner Cleanup Bot } 111*1b2d298cSOwner Cleanup Bot } 112*1b2d298cSOwner Cleanup Bot 113*1b2d298cSOwner Cleanup Bot plugins.withType(MavenPublishPlugin) { 114*1b2d298cSOwner Cleanup Bot publishing { 115*1b2d298cSOwner Cleanup Bot repositories { 116*1b2d298cSOwner Cleanup Bot maven { 117*1b2d298cSOwner Cleanup Bot name 'distMaven' 118*1b2d298cSOwner Cleanup Bot url repoLocation 119*1b2d298cSOwner Cleanup Bot } 120*1b2d298cSOwner Cleanup Bot } 121*1b2d298cSOwner Cleanup Bot } 122*1b2d298cSOwner Cleanup Bot 123*1b2d298cSOwner Cleanup Bot } 124*1b2d298cSOwner Cleanup Bot}