-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (49 loc) · 1.36 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
apply plugin: 'java'
apply plugin: 'idea'
configurations {
compile.extendsFrom providedCompile
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.jruby:jruby-complete:1.7.0'
compile 'com.google.guava:guava:13.0.1'
providedCompile fileTree(dir: project.getProperty("idea.libraries"))
}
task(distribution, type: Zip, dependsOn: 'assemble') {
from jar.archivePath
from configurations.runtime - configurations.providedCompile
into 'idea.rb/lib'
}
idea {
module {
scopes.COMPILE.minus += configurations.providedCompile
iml {
withXml {
def root = it.asNode()
root.attributes().putAt('type', 'PLUGIN_MODULE')
root.append(new NodeBuilder().component('name': "DevKit.ModuleBuildProperties", url: "file://\$MODULE_DIR\$/src/main/resources/META-INF/plugin.xml"))
}
}
}
project {
jdkName = 'IDEA IU-117.798'
ipr {
withXml {
def project = it.asNode()
// Automatically set up Git support
project.append(node().component(name: 'VcsDirectoryMappings') {
mapping(directory: '$PROJECT_DIR$', vcs: 'Git')
})
// Disable annoying popup asking to configure frameworks
project.append(node().component(name: 'FrameworkDetectionExcludesConfiguration') {
type(id: 'JRUBY')
})
}
}
}
}
def node() {
new NodeBuilder()
}