Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 26e700c

Browse files
author
kobisuissa
committed
Merge branch 'develop' of https://github.com/hubrick/airtable.java into feature/allow-object-mapper-injection
# Conflicts: # .travis.yml # build.gradle # src/main/java/com/sybit/airtable/Airtable.java
2 parents c029059 + 23fbb27 commit 26e700c

4 files changed

Lines changed: 21 additions & 42 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ deploy:
1717
tags: true
1818
- provider: script
1919
skip_cleanup: true
20-
script: "./gradlew -i bintrayUpload"
20+
script: "./gradlew install bintrayUpload"
2121
on:
2222
repo: Sybit-Education/airtable.java
2323
tags: true

build.gradle

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,18 @@ buildscript {
2727
jcenter()
2828
}
2929

30-
dependencies {
31-
classpath 'com.palantir:jacoco-coverage:0.4.0'
32-
classpath "com.smokejumperit.gradle.license:Gradle-License-Report:0.0.2"
33-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
34-
}
30+
dependencies {
31+
classpath 'com.palantir:jacoco-coverage:0.4.0'
32+
classpath "com.smokejumperit.gradle.license:Gradle-License-Report:0.0.2"
33+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
34+
}
3535
}
3636

37-
allprojects {
38-
repositories {
39-
jcenter()
40-
}
41-
apply plugin: 'java'
42-
apply plugin: 'maven'
43-
apply plugin: 'maven-publish'
44-
apply plugin: 'com.palantir.jacoco-coverage'
45-
apply plugin: 'com.jfrog.bintray'
46-
}
37+
apply plugin: 'java'
38+
apply plugin: 'maven'
39+
apply plugin: 'com.palantir.jacoco-coverage'
40+
apply plugin: 'maven-publish'
41+
apply plugin: 'com.jfrog.bintray'
4742

4843
group = 'com.sybit'
4944
version = getVersionName()
@@ -69,10 +64,9 @@ configurations {
6964

7065
dependencies {
7166
compile group: 'com.mashape.unirest', name: 'unirest-java', version:'1.4.9'
72-
compile group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.5.2'
73-
compile group: 'org.apache.httpcomponents', name: 'httpmime', version:'4.5.1'
67+
compile group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.5.3'
7468
compile group: 'org.json', name: 'json', version:'20160810'
75-
compile group: 'com.google.code.gson', name: 'gson', version:'2.5'
69+
compile group: 'com.google.code.gson', name: 'gson', version:'2.8.0'
7670
compile group: 'commons-beanutils', name: 'commons-beanutils', version:'1.9.3'
7771
compile group: 'commons-io', name: 'commons-io', version:'2.5'
7872
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.25'
@@ -101,7 +95,6 @@ artifacts {
10195
archives sourcesJar, javadocJar
10296
}
10397

104-
//task to send coverage data to Codacy
10598
task sendCoverageToCodacy(type: JavaExec, dependsOn: jacocoTestReport) {
10699
main = "com.codacy.CodacyCoverageReporter"
107100
classpath = configurations.codacy
@@ -116,39 +109,25 @@ task sendCoverageToCodacy(type: JavaExec, dependsOn: jacocoTestReport) {
116109

117110
publishing {
118111
publications {
119-
120-
MyPublication(MavenPublication) {
121-
//we have to change scope from runtime to compile. Especially for Gson-lib.
122-
pom.withXml {
123-
asNode().dependencies.'*'.findAll() {
124-
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
125-
dep.name == it.artifactId.text()
126-
}
127-
}.each { it.scope*.value = 'compile' }
128-
}
129-
112+
mavenJava(MavenPublication) {
130113
if (plugins.hasPlugin('war')) {
131114
from components.web
132115
} else {
133116
from components.java
134117
}
135-
groupId group
136-
artifactId rootProject.name
137-
version getVersionName()
138118

139119
artifact sourcesJar
140120
artifact javadocJar
141121
}
142-
143122
}
144123
}
145124

146125
bintray {
147126
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
148127
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
149128

150-
publications = ['MyPublication']
151-
//configurations = ['archives']
129+
//publications = ['mavenJava']
130+
configurations = ['archives']
152131

153132
dryRun = false //Whether to run this as dry-run, without deploying
154133
publish = true //If version should be auto published after an upload
@@ -164,4 +143,4 @@ bintray {
164143
released = new Date()
165144
}
166145
}
167-
}
146+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Mar 10 12:20:33 CET 2017
1+
#Thu Apr 13 17:03:46 CEST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip

src/main/java/com/sybit/airtable/Airtable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ public Airtable configure(Configuration config, ObjectMapper objectMapper) throw
147147
DateTimeConverter dtConverter = new DateConverter();
148148
ListConverter lConverter = new ListConverter();
149149
MapConverter thConverter = new MapConverter();
150-
150+
151151
lConverter.setListClass(Attachment.class);
152152
thConverter.setMapClass(Thumbnail.class);
153153
dtConverter.setPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
154154

155155
ConvertUtils.register(dtConverter, Date.class);
156156
ConvertUtils.register(lConverter, List.class);
157157
ConvertUtils.register(thConverter, Map.class);
158-
158+
159159

160160
return this;
161161
}

0 commit comments

Comments
 (0)