-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle
80 lines (67 loc) · 2.82 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
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
plugins {
id('java')
id('org.jetbrains.intellij.platform') version('2.0.1') // IntelliJ Platform Gradle Plugin
}
// Configure project's dependencies
repositories {
mavenCentral()
// IntelliJ Platform Gradle Plugin Repositories Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html
intellijPlatform {
defaultRepositories()
}
}
java.sourceCompatibility = 17.0
// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
dependencies {
testImplementation('junit:junit:4.13.2')
// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
intellijPlatform {
create(platformType, platformVersion)
// Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
bundledPlugins(platformBundledPlugins.split(',').collect { it.trim() })
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace.
plugins(platformPlugins.split(',').collect { it.trim() })
instrumentationTools()
pluginVerifier()
testFramework(TestFrameworkType.Platform.INSTANCE)
testFramework(TestFrameworkType.Plugin.Java.INSTANCE)
}
}
group = pluginGroup
version = pluginVersion + '-' + platformVersion
intellijPlatform {
pluginConfiguration {
version = pluginVersion + '-' + platformVersion
ideaVersion {
sinceBuild = pluginSinceBuild
untilBuild = pluginUntilBuild
}
}
patchPluginXml {
sinceBuild = pluginSinceBuild
untilBuild = pluginUntilBuild
changeNotes = """
<ul>
<li>485 - Gutter icons on module signatures</li>
<li>487 - Ocaml setup on Mac OS (same than 480)</li>
<li>480 - No Opam switch detection</li>
</ul>
<p><a href="https://github.com/giraud/reasonml-idea-plugin/blob/master/CHANGELOG.md">Full change log...</a></p>
<p/>
<p>To see how to integrate tools, go to the website.</p>
""".stripIndent()
}
pluginVerification {
ides {
recommended()
}
}
}
runIde {
systemProperty 'idea.is.internal', true
jvmArgs '-Xmx2G'
// MAVEN_CACHE C:\Users\hgiraud\scoop\persist\maven\.m2
// MAVEN_HOME C:\Users\hgiraud\scoop\apps\maven\current
// MAVEN_REPOSITORY C:\Users\hgiraud\scoop\persist\maven\.m2\repository
}