forked from seek4science/openseek-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (45 loc) · 1.14 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
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'jacoco' // test reporter
apply plugin: 'com.github.kt3k.coveralls' //coveralls plugin
sourceCompatibility=1.8
targetCompatibility=1.8
def mainClass='org.fairdom.openseekapi.OpenSeekEntry'
def jarVersion='0.19'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.googlecode.json-simple:json-simple:1.1.1'
}
jar {
version = jarVersion
baseName = 'openseek-api'
manifest {
attributes(
'Class-Path': configurations.compile.collect { 'lib/' + it.getName() }.join(' '),
'Main-Class': mainClass)
}
}
run {
if ( project.hasProperty("appArgs") ) {
args Eval.me(appArgs)
}
}
// This part is for sending test report to coveralls
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.0x'
}
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}