-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
92 lines (76 loc) · 2.64 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
82
83
84
85
86
87
88
89
90
91
92
plugins {
id 'org.jetbrains.intellij' version '0.0.42'
id 'net.saliman.cobertura' version '2.2.8'
}
apply plugin: 'java'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'net.saliman.cobertura'
group 'org.concordion.plugin.idea'
version '0.8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
wrapper {
gradleVersion = '2.12'
}
repositories {
mavenLocal()
mavenCentral()
}
intellij {
pluginName 'IdeaConcordionSupport'
plugins 'junit'
version '2016.1'
// sandboxDirectory "$projectDir/idea-sandbox-markdown"
// sandboxDirectory "$projectDir/idea-sandbox-markdown-support"
downloadSources false
updateSinceUntilBuild false
}
ext {
markdownSupportPlugin = files(
"${projectDir}/markdownSupport/lib/markdown.jar",
"${projectDir}/markdownSupport/lib/markdown-javafx-preview.jar",
"${projectDir}/markdownSupport/lib/intellij-markdown.jar",
"${projectDir}/markdownSupport/lib/Loboevolution.jar"
)
markdownPlugin = files(
"${projectDir}/markdown/lib/asm-4.1-repacked.jar",
"${projectDir}/markdown/lib/asm-analysis-4.1-repacked.jar",
"${projectDir}/markdown/lib/asm-tree-4.1-repacked.jar",
"${projectDir}/markdown/lib/asm-util-4.1-repacked.jar",
"${projectDir}/markdown/lib/idea-markdown-repacked.jar",
"${projectDir}/markdown/lib/parboiled-core-1.1.6-repacked.jar",
"${projectDir}/markdown/lib/parboiled-java-1.1.6-repacked.jar",
"${projectDir}/markdown/lib/pegdown-1.4.2-repacked.jar"
)
}
configurations {
compileWith
}
sourceSets {
main.compileClasspath += configurations.compileWith
main.java.srcDirs = ['gen', 'src']
main.resources.srcDirs = ['resources']
test.java.srcDirs = ['tests']
testMd.java.srcDirs = ['tests', 'testsMd']
testMd.compileClasspath += sourceSets.test.compileClasspath
}
dependencies {
compileWith markdownSupportPlugin
compileWith markdownPlugin
testCompile 'org.assertj:assertj-core:3.1.0'
testCompile 'org.mockito:mockito-all:1.10.19'
}
task testMarkdownSupportIntegration(type: Test) {
classpath += markdownSupportPlugin
classpath += sourceSets.testMd.compileClasspath
classpath += sourceSets.testMd.runtimeClasspath
testClassesDir = sourceSets.testMd.output.classesDir
}
task testMarkdownIntegration(type: Test) {
classpath += markdownPlugin
classpath += sourceSets.testMd.compileClasspath
classpath += sourceSets.testMd.runtimeClasspath
testClassesDir = sourceSets.testMd.output.classesDir
}
check.dependsOn testMarkdownSupportIntegration
check.dependsOn testMarkdownIntegration