-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
133 lines (117 loc) · 2.73 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
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 "com.github.kt3k.coveralls" version "2.6.3"
id "com.jfrog.bintray" version "1.3.1"
}
publishing {
publications {
BintrayPublication(MavenPublication) {
from components.java
groupId 'uniba-dsg'
artifactId 'bpp'
version '1.0.0'
}
}
}
bintray {
user = 'lenhard'
key = 'bintray_api_key'
publications = ['BintrayPublication']
pkg {
repo = 'bpp'
name = 'bpp'
userOrg = 'uniba-dsg'
licenses = ['LGPL-3.0']
vcsUrl = 'https://github.com/uniba-dsg/bpp.git'
version {
name = '1.0.0-Final'
desc = 'BPEL Portability Profile 1.0.0 final'
vcsTag = 'v1.0.0'
}
}
}
mainClassName = "bpp.BPP"
repositories {
jcenter()
}
sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'src/main/generated'
}
}
test {
java {
srcDir 'src/test/java'
}
}
}
dependencies {
compile 'net.sf.saxon:Saxon-HE:9.6.+'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}
run {
if(project.hasProperty('args')){
args project.args.split('\\s+')
}
}
task profile (type: JavaExec, dependsOn: build){
description = 'Builds the test assertion document'
classpath = sourceSets.main.runtimeClasspath
main = "bpp.util.WSIProfileDocSerializer"
}
task latex (type: JavaExec, dependsOn: build){
description = 'Builds LaTeX tables for all test assertions'
classpath = sourceSets.main.runtimeClasspath
main = "bpp.util.LatexSerializer"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
jar {
exclude('testfiles')
exclude('mappings')
exclude('language-features')
exclude('ProfileDoc-2.0.xsd')
exclude('ProfileMarkup-2.0.xsd')
exclude('wsi-report.xsd')
exclude('xml.xsd')
exclude('bpp/executables/FileAnalyzerTests*')
exclude('bpp/testrunner/TestRunner*')
manifest { attributes 'Main-Class': mainClassName }
from ( configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } ) {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: 'org/ws_i/**')
})
}
}