-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (54 loc) · 1.53 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
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
plugins {
id 'java'
id 'org.jetbrains.intellij.platform' version '2.0.1'
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
jetbrainsRuntime()
}
}
dependencies {
implementation 'org.jetbrains:annotations:24.1.0'
implementation 'org.apache.maven:maven-artifact:3.9.9'
intellijPlatform {
String type = project.findProperty('platformType')
String version = project.findProperty('platformVersion')
create(type, version)
bundledPlugins(['com.intellij.java', 'org.jetbrains.plugins.textmate'])
instrumentationTools()
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(project.findProperty('javaVersion') as String)
}
}
intellijPlatform {
buildSearchableOptions = false
}
intellijPlatformTesting.runIde {
runWebStorm {
type = IntelliJPlatformType.WebStorm
task {
dependsOn 'copySyntaxes'
}
}
}
tasks {
wrapper {
gradleVersion = project.findProperty('gradleVersion')
}
patchPluginXml {
version = project.findProperty('pluginVersion')
sinceBuild = project.findProperty('pluginSinceBuild')
untilBuild = project.findProperty('pluginUntilBuild')
}
}
tasks.register('copySyntaxes', Copy) {
mustRunAfter 'buildSearchableOptions'
from './syntaxes'
into "${tasks.named('prepareSandbox_runWebStorm').map { it.pluginDirectory }.get().get()}/lib/syntaxes"
}