-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (36 loc) · 839 Bytes
/
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
// Define wrapper task.
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}
// Apply plugins.
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'application'
// Define the version and main class.
version = '0.1.0'
mainClassName = "Main"
// Set up dependencies.
repositories {
mavenCentral()
}
dependencies {
compile 'commons-cli:commons-cli:1.2'
testCompile 'commons-io:commons-io:2.4'
testCompile 'org.mockito:mockito-all:1.9.5'
testCompile 'junit:junit:4.11'
}
// Define manifest properties.
jar {
manifest {
attributes("Implementation-Vendor": "Kevin Litwack", "Implementation-Version": version)
}
}
// Limit JUnit tests to classes ending in 'Test'.
test {
include '**/*Test.class'
}
run {
if (project.hasProperty('args')){
args project.args.split('\\s+')
}
}