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

Commit 3242c78

Browse files
author
Zelle97
authored
Merge branch 'master' into develop
2 parents 633e381 + 796f216 commit 3242c78

5 files changed

Lines changed: 67 additions & 14 deletions

File tree

.nb-gradle-properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<gradle-project-properties>
3+
<!--DO NOT EDIT THIS FILE! - Used by the Gradle plugin of NetBeans.-->
4+
</gradle-project-properties>
Binary file not shown.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<gradle-project-properties>
3+
<!--DO NOT EDIT THIS FILE! - Used by the Gradle plugin of NetBeans.-->
4+
<auxiliary>
5+
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
6+
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
7+
<group>
8+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/build.gradle</file>
9+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/test/java/com/sybit/airtable/CustomObjectMapperTest.java</file>
10+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/main/java/com/sybit/airtable/vo/Thumbnail.java</file>
11+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/itest/java/com/sybit/airtable/TableSelectTest.java</file>
12+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/.travis.yml</file>
13+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/main/java/com/sybit/airtable/Airtable.java</file>
14+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/main/java/com/sybit/airtable/vo/Attachment.java</file>
15+
</group>
16+
</open-files>
17+
<editor-bookmarks lastBookmarkId="0" xmlns="http://www.netbeans.org/ns/editor-bookmarks/2"/>
18+
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
19+
<group>
20+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/.gitignore</file>
21+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/main/java/com/sybit/airtable/vo/Thumbnail.java</file>
22+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/itest/java/com/sybit/airtable/TableSelectTest.java</file>
23+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/test/java/com/sybit/airtable/AirtableTest.java</file>
24+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/main/java/com/sybit/airtable/Airtable.java</file>
25+
<file>file:/D:/Projekte/Sybit/Airtable/airtable.java/src/main/java/com/sybit/airtable/vo/Attachment.java</file>
26+
</group>
27+
</open-files>
28+
</auxiliary>
29+
</gradle-project-properties>

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ deploy:
1919
tags: true
2020
- provider: script
2121
skip_cleanup: true
22-
script: "./gradlew install bintrayUpload"
22+
script: "./gradlew -i bintrayUpload"
2323
on:
2424
repo: Sybit-Education/airtable.java
2525
tags: true

build.gradle

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,23 @@ buildscript {
2828
jcenter()
2929
}
3030

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

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

4449
group = 'com.sybit'
4550
version = getVersionName()
@@ -117,6 +122,7 @@ artifacts {
117122
archives sourcesJar, javadocJar
118123
}
119124

125+
//task to send coverage data to Codacy
120126
task sendCoverageToCodacy(type: JavaExec, dependsOn: jacocoTestReport) {
121127
main = "com.codacy.CodacyCoverageReporter"
122128
classpath = configurations.codacy
@@ -140,25 +146,39 @@ task integrationTest(type: Test) {
140146

141147
publishing {
142148
publications {
143-
mavenJava(MavenPublication) {
149+
150+
MyPublication(MavenPublication) {
151+
//we have to change scope from runtime to compile. Especially for Gson-lib.
152+
pom.withXml {
153+
asNode().dependencies.'*'.findAll() {
154+
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
155+
dep.name == it.artifactId.text()
156+
}
157+
}.each { it.scope*.value = 'compile' }
158+
}
159+
144160
if (plugins.hasPlugin('war')) {
145161
from components.web
146162
} else {
147163
from components.java
148164
}
165+
groupId group
166+
artifactId rootProject.name
167+
version getVersionName()
149168

150169
artifact sourcesJar
151170
artifact javadocJar
152171
}
172+
153173
}
154174
}
155175

156176
bintray {
157177
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
158178
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
159179

160-
//publications = ['mavenJava']
161-
configurations = ['archives']
180+
publications = ['MyPublication']
181+
//configurations = ['archives']
162182

163183
dryRun = false //Whether to run this as dry-run, without deploying
164184
publish = true //If version should be auto published after an upload

0 commit comments

Comments
 (0)