forked from JetBrains/intellij-micropython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (46 loc) · 1.17 KB
/
build.gradle
File metadata and controls
53 lines (46 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
buildscript {
repositories {
mavenCentral()
maven { url 'https://dl.bintray.com/jetbrains/intellij-plugin-service' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
plugins {
id 'org.jetbrains.intellij' version '0.7.2'
}
apply plugin: 'kotlin'
intellij {
version ideaVersion
pluginName 'intellij-micropython'
downloadSources Boolean.valueOf(downloadIdeaSources)
updateSinceUntilBuild false
plugins = ['terminal']
if (ideaVersion.contains('PC')) {
plugins += ['python-ce']
} else if (ideaVersion.contains('PY')) {
plugins += ['python']
} else {
plugins += [pythonPlugin]
}
publishPlugin {
username publishUsername
token publishToken
}
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
}
task copyStubs(dependsOn: prepareSandbox, type: Copy) {
from(projectDir) {
include "typehints/"
include "scripts/"
}
into "${intellij.sandboxDirectory}/plugins/intellij-micropython"
}
buildPlugin.dependsOn copyStubs
runIde.dependsOn copyStubs