-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
81 lines (66 loc) · 1.52 KB
/
build.gradle
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
buildscript {
ext.kotlin_version = '1.2.51'
repositories {
mavenCentral()
maven { url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'org.jetbrains.intellij' version '0.4.2'
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
sourceSets {
main {
java.srcDir 'src'
resources.srcDir 'resources'
}
test {
java.srcDir 'test'
}
}
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.intellij'
version "${version}"
intellij {
version ideaVersion
type ideaType
downloadSources Boolean.valueOf(downloadSources)
pluginName name
plugins = [
'JavaScriptLanguage',
'CSS',
'JavaScriptDebugger'
]
prepareSandbox {
copy {
from System.getProperty("user.home")+'/.IdeaIC2018.2/config/plugins/'
into './build/idea-sandbox/plugins/'
}
}
patchPluginXml {
sinceBuild '183.4284.148'
untilBuild null
}
}
publishPlugin {
token "${intellijPublishToken}"
username "${intellijPublishUsername}"
password "${intellijPublishPassword}"
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
//wrapper {
// gradleVersion = '4.10'
// distributionType = Wrapper.DistributionType.ALL
//}