This repository has been archived by the owner on Feb 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
/
build.gradle
130 lines (102 loc) · 2.75 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
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
maven { url "https://repo.spring.io/plugins-release" }
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.9.0'
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
classpath "me.champeau.gradle:jmh-gradle-plugin:0.2.0"
}
}
apply from: file('generate.gradle')
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: "me.champeau.gradle.jmh"
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
group = "io.projectreactor"
ext.githubProjectName = 'reactive-streams-commons'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
if (!hasProperty('mainClass')) {
ext.mainClass = ''
}
apply from: file('gradle/maven.gradle')
repositories {
mavenCentral()
// maven { url 'https://oss.jfrog.org/libs-snapshot' }
maven { url 'https://repo.spring.io/libs-snapshot' }
}
apply plugin: 'maven'
apply plugin: 'osgi'
dependencies {
compile 'org.reactivestreams:reactive-streams:1.0.0'
//testCompile 'org.openjdk.jmh:jmh-core:1.1.11'
testCompile 'org.reactivestreams:reactive-streams-tck:1.0.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
//jmh "io.projectreactor:reactor-core:3.0.2.BUILD-SNAPSHOT"
}
processResources {
from('src/main/java') {
include '**/*.conf'
}
}
[compileJava, compileTestJava]*.options*.compilerArgs << "-parameters"
tasks.withType(JavaCompile) {
options.compilerArgs << "-parameters";
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
jar {
manifest {
name = 'reactive-streams-commons'
instruction 'Bundle-Vendor', 'reactor'
instruction 'Bundle-DocURL', 'https://github.com/reactor/reactive-streams-commons'
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
instruction 'Eclipse-ExtensibleAPI', 'true'
}
}
apply plugin: 'license'
apply from: file('gradle/license.gradle')
jmh {
jmhVersion = '1.13'
humanOutputFile = null
if (project.hasProperty('jmh')) {
include = ".*" + project.jmh + ".*"
} else {
include = ".*"
}
}
plugins.withType(EclipsePlugin) {
project.eclipse.classpath.plusConfigurations += [configurations.jmh]
}
javadoc {
failOnError = false
}
test {
maxHeapSize = "2g"
testLogging {
events "started", "failed" // "skipped", "passed"
// showStandardStreams = true
exceptionFormat = 'full'
}
}