-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
105 lines (88 loc) · 2.37 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
93
94
95
96
97
98
99
100
101
102
103
104
105
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
}
plugins {
id 'io.franzbecker.gradle-lombok' version '1.11'
id 'org.jetbrains.intellij' version '0.3.0'
}
group 'com.outskirtslabs'
version version
allprojects {
apply plugin: 'java'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
sourceSets {
main {
java.srcDirs 'src', 'gen'
resources.srcDirs 'resources'
}
test {
java.srcDir 'tests'
resources.srcDirs 'resources-test'
}
}
apply plugin: 'org.jetbrains.intellij'
intellij {
version ideaVersion
// always have these plugins installed
plugins = [
"PsiViewer:3.28.93"]
downloadSources Boolean.valueOf(sources)
pluginName 'intellij-beancount'
updateSinceUntilBuild = false
}
}
dependencies {
compile('io.vavr:vavr:0.9.2')
// force-pull org.apache.commons.lang3.StringUtils - seems to not exist in all jetbrains-products
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
}
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: 'idea'
idea {
project {
jdkName = javaVersion
languageLevel = javaVersion
}
module {
// generatedSourceDirs += file('gen')
}
}
/*
grammar kit plugin is disabled until https://github.com/JetBrains/gradle-grammar-kit-plugin/issues/3
is fixed
grammarkit {
jflexRelease = "c779429" // 1.7.0
grammarKitRelease = "2017.1.2"
}
task generateBeancountLexer(type: org.jetbrains.grammarkit.tasks.GenerateLexer) {
source = "src/com/outskirtslabs/beancount/Beancount.flex"
targetDir = "gen/com/outskirtslabs/beancount/"
targetClass = "_BeancountLexer"
purgeOldFiles = true
}
task generateBeancountParser(type: org.jetbrains.grammarkit.tasks.GenerateParser) {
source = "src/com/outskirtslabs/beancount/Beancount.bnf"
targetRoot = 'gen'
pathToParser = '/com/outskirtslabs/beancount/parser/BeancountParser.java'
pathToPsiRoot = '/com/outskirtslabs/beancount/psi'
purgeOldFiles = true
}
*/
patchPluginXml {
changeNotes """
Add change notes here.<br>
<em>most HTML tags may be used</em>"""
}
test {
testLogging {
exceptionFormat = 'full'
}
}