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

Commit 7ce0c1e

Browse files
fzrfzr
authored andcommitted
Merge branch 'develop' of https://github.com/Sybit-Education/airtable.java into develop
2 parents 69ee23d + 042e846 commit 7ce0c1e

2 files changed

Lines changed: 46 additions & 50 deletions

File tree

.travis.yml

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
language: java
22
jdk:
3-
- oraclejdk8
4-
3+
- oraclejdk8
54
before_install:
6-
- chmod +x ./gradlew
7-
5+
- chmod +x ./gradlew
86
script:
9-
- ./gradlew check sendCoverageToCodacy
10-
7+
- "./gradlew check sendCoverageToCodacy"
118
deploy:
12-
- provider: script
13-
skip_cleanup: true
14-
script: gradlew install bintrayUpload
15-
on:
16-
tags: true
17-
18-
- provider: releases
19-
api_key:
20-
secure: ltLzm1VWcBj5sLTqtEUQyd3JG5pYZ6nQG5czsWB28hvJ3wkVa6vt7L5j3OS8wZuaIdE6eDJ2rMfQ5qS1FAE91SiQfCsMArsZ5C2cWm7BSz70MAa2zCWgxxlMsvARTnSLaP9mVgbZN0js2p0ETVVuUj+MG1dQJGXhsggmFI3ZSxCnWpoAhtGDVvQr8BZp4w5hPJ0Xm144v9ZnT2oUwmwevlVFzO+QzjiUJwPCjy4y6rJAJDdYdY0mTUQq7Y9SwkjXQACNwDRs6ITQ4nbClCk7RtDIKUFYWvuq9IRD0OhVXibTtMC4yocl+PsM6XvCYCAWPjLon20Pc2fdepzWhYPkyoOf9SDDUFAHEjYQ+vw2BkQpx3WwMZDLJbGXI1z0+evYUhSxr7oRSzoRfpCYFtEJ7toLb8SPTsYkyQQp5N1EDNtnIgBZhsQpFdxDgZ8vrVeWiLVtzX5ARgz0GV/yL2v+2ZzPg7usEJSNC6xwyjGiPGDtggUy2HIsP1ohl56VVvU5RjfoKcXxysbm0L43sddZHIuNggyku7pNlYsgHdrUf/0qanxxrU46w8M4vUdyd1oC/pXwaUkpdjA6nFU+ouoX1ScihxZzlkE2TYEFJqbKcWQ8d9zeYW90pemc8oWZJcylyF0ef2MJKy3DgNplnoSJM6q6sDunAA5wGN5A+vu/Ahw=
21-
skip_cleanup: true
22-
file_glob: true
23-
file: ./build/libs/*
24-
on:
25-
repo: Sybit-Education/airtable.java
26-
tags: true
27-
28-
9+
- provider: releases
10+
api_key:
11+
secure: ltLzm1VWcBj5sLTqtEUQyd3JG5pYZ6nQG5czsWB28hvJ3wkVa6vt7L5j3OS8wZuaIdE6eDJ2rMfQ5qS1FAE91SiQfCsMArsZ5C2cWm7BSz70MAa2zCWgxxlMsvARTnSLaP9mVgbZN0js2p0ETVVuUj+MG1dQJGXhsggmFI3ZSxCnWpoAhtGDVvQr8BZp4w5hPJ0Xm144v9ZnT2oUwmwevlVFzO+QzjiUJwPCjy4y6rJAJDdYdY0mTUQq7Y9SwkjXQACNwDRs6ITQ4nbClCk7RtDIKUFYWvuq9IRD0OhVXibTtMC4yocl+PsM6XvCYCAWPjLon20Pc2fdepzWhYPkyoOf9SDDUFAHEjYQ+vw2BkQpx3WwMZDLJbGXI1z0+evYUhSxr7oRSzoRfpCYFtEJ7toLb8SPTsYkyQQp5N1EDNtnIgBZhsQpFdxDgZ8vrVeWiLVtzX5ARgz0GV/yL2v+2ZzPg7usEJSNC6xwyjGiPGDtggUy2HIsP1ohl56VVvU5RjfoKcXxysbm0L43sddZHIuNggyku7pNlYsgHdrUf/0qanxxrU46w8M4vUdyd1oC/pXwaUkpdjA6nFU+ouoX1ScihxZzlkE2TYEFJqbKcWQ8d9zeYW90pemc8oWZJcylyF0ef2MJKy3DgNplnoSJM6q6sDunAA5wGN5A+vu/Ahw=
12+
skip_cleanup: true
13+
file_glob: true
14+
file: "./build/libs/*"
15+
on:
16+
repo: Sybit-Education/airtable.java
17+
tags: true
18+
- provider: script
19+
skip_cleanup: true
20+
script: "./gradlew install bintrayUpload"
21+
on:
22+
repo: Sybit-Education/airtable.java
23+
tags: true
2924
before_cache:
30-
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
31-
25+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
3226
cache:
33-
directories:
34-
— $HOME/.gradle
27+
directories: "— $HOME/.gradle"

build.gradle

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@
55
* Permission is hereby granted, free of charge, to any person obtaining a copy
66
*/
77

8+
/*
9+
* Gets the version name from the latest Git tag
10+
*/
11+
def getVersionName = { ->
12+
try {
13+
def stdout = new ByteArrayOutputStream()
14+
exec {
15+
commandLine 'git', 'describe', '--tags'
16+
standardOutput = stdout
17+
}
18+
return stdout.toString().trim()
19+
}
20+
catch (ignored) {
21+
return version;
22+
}
23+
}
24+
825
buildscript {
926
repositories {
1027
jcenter()
@@ -24,7 +41,7 @@ apply plugin: 'maven-publish'
2441
apply plugin: 'com.jfrog.bintray'
2542

2643
group = 'com.sybit'
27-
version = '0.1'
44+
version = getVersionName()
2845

2946
description = """com.sybit airtable"""
3047

@@ -63,24 +80,6 @@ dependencies {
6380
codacy group: 'com.codacy', name: 'codacy-coverage-reporter', version: '1.0.13'
6481
}
6582

66-
67-
/*
68-
* Gets the version name from the latest Git tag
69-
*/
70-
def getVersionName = { ->
71-
try {
72-
def stdout = new ByteArrayOutputStream()
73-
exec {
74-
commandLine 'git', 'describe', '--tags'
75-
standardOutput = stdout
76-
}
77-
return stdout.toString().trim()
78-
}
79-
catch (ignored) {
80-
return version;
81-
}
82-
}
83-
8483
// custom tasks for creating source jar
8584
task sourcesJar(type: Jar, dependsOn: classes) {
8685
classifier = 'sources'
@@ -128,17 +127,21 @@ bintray {
128127
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
129128
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
130129

131-
publications = ['mavenJava']
130+
//publications = ['mavenJava']
131+
configurations = ['archives']
132132

133133
dryRun = false //Whether to run this as dry-run, without deploying
134134
publish = true //If version should be auto published after an upload
135-
version getVersionName()
135+
136136
pkg {
137137
repo = 'maven'
138138
userOrg = 'sybit-education'
139139
name = 'airtable.java'
140140
licenses = ['MIT License']
141141
vcsUrl = 'https://github.com/Sybit-Education/airtable.java.git'
142-
142+
version {
143+
name = getVersionName()
144+
released = new Date()
145+
}
143146
}
144-
}
147+
}

0 commit comments

Comments
 (0)