-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
126 lines (109 loc) · 2.21 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3'
}
}
plugins {
id "java"
id "idea"
id "eclipse"
id "application"
id "jacoco"
id "maven"
id "maven-publish"
id "findbugs"
id "com.github.kt3k.coveralls" version "2.6.3"
id "com.jfrog.bintray" version "1.3.1"
}
publishing {
publications {
Bintray(MavenPublication) {
from components.java
groupId 'uniba-dsg'
artifactId 'prope'
version '1.0.0'
}
}
}
bintray {
user = 'bintray_user'
key = 'bintray_api_key'
publications = ['Bintray']
pkg {
repo = 'prope'
name = 'prope'
userOrg = 'uniba-dsg'
licenses = ['MIT']
vcsUrl = 'https://github.com/uniba-dsg/prope.git'
version {
name = '1.0.0-Final'
desc = 'PROcess-aware information systems Portability mEtrics suite 1.0.0 final'
vcsTag = 'v1.0.0'
}
}
}
mainClassName = "prope.Prope"
repositories {
jcenter()
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
test {
java {
srcDir 'src/test/java'
}
}
}
dependencies {
compile 'net.lingala.zip4j:zip4j:1.3.+'
compile 'org.apache.commons:commons-io:1.3.+'
compile 'uniba-dsg:bpp:1.0.0'
compile 'de.uniba.dsg:bpmnspector:1.1.0'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
findbugs {
ignoreFailures = true
effort = "max"
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}
task deleteTmpDir(type: Delete){
delete ('tmp')
}
run {
if(project.hasProperty('args')){
args project.args.split('\\s+')
}
}
jar {
from ( configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } ) {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
manifest { attributes 'Main-Class': mainClassName }
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}