-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
128 lines (116 loc) · 4.18 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
/*
* Copyright 2020, Airtable-java Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial
* portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
plugins {
id 'java-library'
id 'jacoco'
id 'signing'
id 'maven-publish'
id 'io.freefair.lombok' version '6.6.3'
}
repositories {
mavenLocal()
mavenCentral()
}
group = 'com.tryadhawk'
version = '2.0.6'
description = """com.tryadhawk airtable"""
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
api 'com.google.code.findbugs:jsr305:3.0.2'
api 'org.asynchttpclient:async-http-client:2.12.3'
api 'com.fasterxml.jackson.core:jackson-databind:2.15.3'
api 'org.reactivestreams:reactive-streams:1.0.4'
implementation 'io.reactivex.rxjava3:rxjava:3.1.8'
api 'org.slf4j:slf4j-api:2.0.9'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'org.mockito:mockito-core:4.11.0'
testImplementation 'ch.qos.logback:logback-classic:1.2.11'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
csv.enabled false
}
}
publishing {
repositories {
maven {
name = 'ossrh'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = System.getenv('SONATYPE_USER')
password = System.getenv('SONATYPE_PASSWORD')
}
}
}
publications {
maven(MavenPublication) {
artifactId rootProject.name
from components.java
pom {
name = 'com.tryadhawk:airtable-java'
description = 'Java client for the Airtable API'
url = 'https://github.com/broadlume/airtable-java'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'cwilbur12'
name = 'Cory Wilbur'
email = '[email protected]'
}
developer {
id = 'twinklehawk'
name = 'Alex Daidone'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:[email protected]:broadlume/airtable-java.git'
developerConnection = 'scm:git:[email protected]:broadlume/airtable-java.git'
url = 'https://github.com/broadlume/airtable-java'
}
}
}
}
}
ext.runSigning = project.hasProperty('runSigning') && runSigning.toBoolean()
tasks.withType(Sign) {
onlyIf { runSigning }
}
signing {
def signingKey = System.getenv('SIGNING_KEY')
def signingPassword = System.getenv('SIGNING_PASSWORD')
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.maven
}