-
Notifications
You must be signed in to change notification settings - Fork 135
/
build.gradle
146 lines (126 loc) · 3.95 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
plugins {
id "me.champeau.jmh" version "0.6.5"
id 'maven-publish'
id 'signing'
}
repositories {
mavenCentral()
}
dependencies {
jmh 'org.openjdk.jmh:jmh-core:1.29'
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.28'
}
jar {
manifest {
attributes 'Implementation-Title': 'simple-react', 'Implementation-Version': version
}
}
subprojects {
apply plugin: 'me.champeau.jmh'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
group 'com.oath.cyclops'
// sourceCompatibility = 1.8
// targetCompatibility = 1.8
java {
withJavadocJar()
withSourcesJar()
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
artifacts {
archives javadocJar, sourcesJar
}
/**
signing {
sign configurations.archives
}
**/
dependencies {
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
// Test Dependencies
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
version "$version"
pom {
name = POM_NAME
packaging = POM_PACKAGING
description = POM_DESCRIPTION
url = POM_URL
scm {
url = 'scm:[email protected]:aol/cyclops-react.git'
connection = 'scm:[email protected]:aol/cyclops-react.git'
developerConnection = 'scm:[email protected]: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 = '[email protected]'
}
developer {
id = 'kewangie'
name = 'Ke Wang'
email = '[email protected]'
}
developer {
id = 'tkountis'
name = 'Thomas Kountis Wang'
email = '[email protected]'
}
developer {
id = 'colinfkennedy'
name = 'Colin Kennedy'
email = '[email protected]'
}
}
}
}
}
repositories {
mavenLocal()
maven {
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
credentials {
username = nexusUsername
password = nexusPassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
}
allprojects {
tasks.withType(JavaCompile) {
options.fork = true
options.incremental = true
}
}