-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
134 lines (113 loc) · 3.77 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = 1.8
version = '0.20'
repositories {
mavenCentral()
flatDir {
dirs 'lib'
}
}
sourceSets {
main {
java {
srcDir 'src/'
}
resources {
srcDir 'resources/'
}
}
test {
java {
srcDir 'test/src'
}
resources {
srcDirs = ['test-resources/', 'benchmarks/']
}
}
}
// maven publication
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'dk.au.cs.casa'
artifactId 'tajs'
from components.java
}
}
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
dependencies {
// Main
compile group: 'com.google.guava', name: 'guava', version: '22.0' // put this before anything else to ensure this is the version used
compile group: 'args4j', name: 'args4j', version: '2.33'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.1' // put this before closure compiler which depends on older gson!
compile group: 'com.google.javascript', name: 'closure-compiler', version: 'v20170806'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compile group: 'net.htmlparser.jericho', name: 'jericho-html', version: '3.3'
compile group: 'log4j', name: 'log4j', version: '1.2.17'
compile group: 'jgrapht', name: 'jgrapht', version: '0.7.3'
compile group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '9.4.5.v20170502'
// To use copy-pasted jalangilogger jar
//compile group: "jer", name: "jer"
// To use multi-project build with the submodule
compile project(":jalangilogger");
// To use copy-pasted inspector.jar
//compile group: "inspector", name: "inspector"
// To use multi-project build with the submodule
compile project(":inspector");
// Testing
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
}
mainClassName = "dk.brics.tajs.Main"
applicationDefaultJvmArgs = ["-Duser.country=US", "-Duser.language=en"]
task testFast(type: Test) {
include '**/RunFast.class'
}
task testMedium(type: Test) {
include '**/RunFast.class'
include '**/RunMedium.class'
}
task makeStatsStandard(type: JavaExec) {
classpath sourceSets.test.runtimeClasspath
main = 'dk.brics.tajs.test.Stats$Standard'
systemProperty "statsquiet", System.getProperty("statsquiet", "false")
}
task makeStatsExtra(type: JavaExec) {
classpath sourceSets.test.runtimeClasspath
main = 'dk.brics.tajs.test.Stats$Extra'
systemProperty "statsquiet", System.getProperty("statsquiet", "false")
}
task makeStatsLibs(type: JavaExec) {
classpath sourceSets.test.runtimeClasspath
main = 'dk.brics.tajs.test.Stats$Libs'
systemProperty "statsquiet", System.getProperty("statsquiet", "false")
}
task makeStatsJQuery(type: JavaExec) {
classpath sourceSets.test.runtimeClasspath
main = 'dk.brics.tajs.test.Stats$JQuery'
systemProperty "statsquiet", System.getProperty("statsquiet", "false")
}
test {
testLogging {
exceptionFormat = 'full'
}
afterSuite { desc, result ->
if (!desc.parent) // will match the outermost suite
println("${result.resultType} " +
"(${result.testCount} tests, " +
"${result.successfulTestCount} successes, " +
"${result.failedTestCount} failures, " +
"${result.skippedTestCount} skipped)")
}
}