-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathbuild.gradle.old
131 lines (112 loc) · 2.74 KB
/
build.gradle.old
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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.gradle:osdetector-gradle-plugin:1.6.0'
}
}
plugins {
id 'com.jfrog.bintray' version '1.7.3'
}
apply plugin: 'com.google.osdetector'
allprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = 11
targetCompatibility = 11
group = 'hu.bme.mit.theta'
version = '0.0.1'
repositories {
mavenCentral()
maven {
url 'https://dl.bintray.com/ftsrg/maven'
}
}
jacoco {
toolVersion = '0.8.2'
}
}
subprojects {
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
test {
String libPath = new File(rootProject.rootDir, 'lib').path
environment.put('PATH', libPath)
environment.put('LD_LIBRARY_PATH', libPath)
}
jacocoTestReport {
dependsOn tasks.test
reports {
xml.enabled false
csv.enabled false
html.enabled true
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['mavenJava']
publish = true
pkg {
userOrg = 'ftsrg'
repo = 'maven'
name = 'theta'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/FTSRG/theta.git'
version {
name = project.version
released = new Date()
mavenCentralSync {
sync = false
}
}
}
}
}
// aggregates jacoco results from all subprojects and core project and generate a report
task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
dependsOn = subprojects.test
additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs)
sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
classDirectories = files(subprojects.sourceSets.main.output)
executionData = files(subprojects.jacocoTestReport.executionData)
reports {
html.enabled = false
xml.enabled = true
csv.enabled = false
}
}
ext {
antlrVersion = '4.5.3'
guavaVersion = '23.6-jre'
junitVersion = '4.12'
mockitoVersion = '2.2.11'
jcommanderVersion = '1.72'
z3Version = '4.5.0'
platform = osdetector.os == 'osx' ? 'mac' : osdetector.os == 'windows' ? 'win' : osdetector.os
}
task copyJars(type: Copy, dependsOn: subprojects.jar) {
from(subprojects.jar)
into project.file('dest')
}
task copyDeps(type: Copy) {
from(subprojects.configurations.runtime)
into project.file('dest/lib')
}
task copyFiles(dependsOn: [copyJars, copyDeps])