forked from AOL-archive/cyclops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
206 lines (168 loc) · 4.78 KB
/
build.gradle
File metadata and controls
206 lines (168 loc) · 4.78 KB
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
import org.gradle.api.artifacts.maven.MavenDeployment
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.2'
}
}
plugins {
id 'me.champeau.gradle.jmh' version '0.2.0'
}
def custom ={ "$rootDir/gradle/${it}.gradle"} //find custom plugins locally
apply plugin: 'me.champeau.gradle.jmh'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'jacoco'
apply from: custom('jacoco-version')
sourceCompatibility = 1.8
jar {
manifest {
attributes 'Implementation-Title': 'simple-react', 'Implementation-Version': version
}
}
apply from: custom('jacoco-config')
apply from: custom('jacoco-excludes')
repositories {
mavenCentral()
jcenter()
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
configurations {
provided
}
dependencies {
//compile group: 'org.derive4j.hkt', name: 'hkt', version: derive4jHKTVersion
compile 'org.pcollections:pcollections:'+pCollectionsVersion
compile "org.jooq:jool:${joolVersion}"
compile 'org.agrona:Agrona:'+agronaVersion
compile 'org.reactivestreams:reactive-streams:'+reactiveStreamsVersion
provided group: 'org.projectlombok', name: 'lombok', version:"${lombokVersion}"
testCompile 'com.github.stefanbirkner:system-rules:1.10.0'
testCompile 'io.projectreactor:reactor-core:3.0.7.RELEASE'
// testCompile 'io.projectreactor.addons:reactor-test:3.0.7.RELEASE'
testCompile 'com.google.guava:guava:19.0'
testCompile 'com.google.guava:guava-testlib:19.0'
testCompile 'org.reactivestreams:reactive-streams-tck:1.0.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version:hamcrestVersion
testCompile group: 'org.mockito', name: 'mockito-all', version:'1.9.5'
testCompile 'io.vertx:vertx-core:3.0.0'
testCompile group: 'org.testng', name: 'testng', version:'5.14.10'
testCompile 'io.javaslang:javaslang:2.0.2'
// testCompile "org.assertj:assertj-core:3.6.1"
jmh 'com.github.akarnokd:ixjava:1.0.0-RC5'
}
sourceSets {
main.compileClasspath += [configurations.provided]
test.compileClasspath += [configurations.provided]
test.runtimeClasspath += [configurations.provided]
}
jacocoTestReport {
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['com/aol/cyclops2/util/stream/scheduling/cron/**'])
})
}
}
jmh {
jmhVersion = '1.14'
humanOutputFile = null
include = ".*scrabble*"
}
task testNG(type: Test) {
useTestNG {}
testLogging {
events "started","passed", "skipped", "failed"//, "standardOut", "standardError"
}
reports.html.destination = file("$buildDir/reports/test")
}
task testSuite(type: Test) {
include '**/*TestSuite.class'
reports.junitXml.destination = "$buildDir/reports/test"
reports.html.destination = "$buildDir/reports/test"
}
test {
reports.html.destination = file("$buildDir/reports/test")
// dependsOn testNG
// dependsOn testSuite
forkEvery = 1
//maxParallelForks = Runtime.runtime.availableProcessors()
testLogging {
events "started","passed", "skipped", "failed"//, "standardOut", "standardError"
}
}
eclipse.classpath.plusConfigurations += [configurations.provided] // Eclipse users only
test {
systemProperties 'property': 'value'
}
javadoc {
configure((CoreJavadocOptions) getOptions()) {
addStringOption('sourcepath', "/Sources/jool-0.9.11-sources.jar")
}
exclude '**/internal/**'
}
modifyPom {
project {
name 'cyclops-react'
description 'Platform for Functional Reactive Programming with Java 8'
url 'https://github.com/aol/simple-react'
inceptionYear '2015'
groupId 'com.aol.simplereact'
artifactId 'cyclops-react'
version "$version"
scm {
url 'scm:git@github.com:aol/simple-react.git'
connection 'scm:git@github.com:aol/simple-react.git'
developerConnection 'scm:git@github.com:aol/simple-react.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'johnmcclean-aol'
name 'John McClean'
email 'john.mcclean@teamaol.com'
}
developer {
id 'kewangie'
name 'Ke Wang'
email 'ke.wang@teamaol.com'
}
developer {
id 'tkountis'
name 'Thomas Kountis Wang'
email 'thomas.kountis@adtech.com'
}
developer {
id 'colinfkennedy'
name 'Colin Kennedy'
email 'Colin.Kennedy@teamaol.com'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
}