-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
154 lines (125 loc) · 3.27 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
}
}
plugins {
id "java"
id "idea"
id "eclipse"
id "application"
id "jacoco"
id "com.github.kt3k.coveralls" version "2.4.0"
id "maven"
id "maven-publish"
id "com.jfrog.bintray" version "1.3.1"
}
publishing {
publications {
Bintray(MavenPublication) {
from components.java
artifact(sourceJar) {
classifier "sources"
}
artifact(javadocJar) {
classifier "javadoc"
}
groupId 'de.uniba.dsg'
artifactId 'bpmnspector'
version '1.1.0'
}
}
}
bintray {
user = 'bintray_user'
key = 'bintray_api_key'
publications = ['Bintray']
pkg {
repo = 'BPMNspector'
name = 'BPMNspector'
userOrg = 'uniba-dsg'
licenses = ['LGPL-3.0']
vcsUrl = 'https://github.com/uniba-dsg/BPMNspector.git'
version {
name = 'v1.1.0'
desc = 'BPMNspector v1.1.0 - Static analysis for BPMN 2.0 process models.'
vcsTag = 'v1.1.0'
}
}
}
configurations {
compile
external
}
repositories {
mavenCentral()
maven {
url "https://artefacts.alfresco.com/nexus/content/repositories/activiti-releases/"
}
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'org.jdom:jdom2:2.0.6'
compile 'jaxen:jaxen:1.1.6'
compile 'ch.qos.logback:logback-core:1.2.+'
compile 'ch.qos.logback:logback-classic:1.2.+'
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'com.phloc:phloc-commons:4.4.11'
compile 'commons-cli:commons-cli:1.4'
compile 'commons-io:commons-io:2.5'
compile 'org.apache.velocity:velocity:1.7'
compile 'org.apache.logging.log4j:log4j-api:2.7'
compile 'org.apache.logging.log4j:log4j-core:2.7'
//compile 'com.github.guybrushPrince:mojo.core:master-SNAPSHOT'
compile 'com.github.matthiasgeiger:mojo.core:master-SNAPSHOT'
compile 'com.github.guybrushPrince:mojo.reader.bpmn:master-SNAPSHOT'
external files(fileTree(dir: "lib", includes: ['*.jar']))
testCompile 'junit:junit:4.+'
compile configurations.external
}
test {
testLogging {
exceptionFormat = 'full'
}
}
mainClassName = "de.uniba.dsg.bpmnspector.BPMNspectorMain"
version = "1.1.0"
run {
if(project.hasProperty('args')){
args project.args.split('\\s+')
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.0.2'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar.archiveName = "BPMNspector.jar"
jar {
manifest { attributes 'Main-Class': mainClassName }
from { configurations.external.collect { it.isDirectory() ? it : zipTree(it) } }
}
task sourceJar(type: Jar) {
baseName = project.name + '-sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
baseName = project.name + '-javadoc'
from javadoc.destinationDir
}
task fatJar(type: Jar) {
manifest.from jar.manifest
baseName = project.name + '-fat'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}