[space plugin] Allow to run Space Automation from sources
[idea/community.git] / build / dependencies / setupSpacePlugin.gradle
1 // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
2 import java.util.concurrent.TimeUnit
3
4 task setupSpaceAutomationDefinitions {
5   def version = "1.0.51354"
6   def artifact = file("$buildDir/space/space-idea-script-definition.jar")
7   outputs.file(artifact)
8   doLast {
9     download {
10       src "https://cache-redirector.jetbrains.com/jetbrains.bintray.com/space/com/jetbrains/space-idea-script-definition/$version/space-idea-script-definition-${version}.jar"
11       tempAndMove true
12       dest artifact
13       timeout TimeUnit.MINUTES.toMillis(5).toInteger()
14     }
15   }
16 }
17
18 task setupSpaceAutomation(dependsOn: [setupKotlinPlugin, setupSpaceAutomationDefinitions]) {
19 }