Skip to content

Commit 6842fa5

Browse files
authored
Merge pull request #43 from RADAR-base/release-0.2.2
Release 0.2.2
2 parents 1938b64 + 09b6857 commit 6842fa5

File tree

16 files changed

+158
-85
lines changed

16 files changed

+158
-85
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ your Fitbit App client ID and client secret. The following tables shows the poss
6161
<tr>
6262
<td>fitbit.user.repository.url</td></td><td>URL for webservice containing user credentials. Only used if a webservice-based user repository is configured.</td></td><td>string</td></td><td>""</td></td><td></td></td><td>low</td></td></tr>
6363
<tr>
64-
<td>fitbit.max.users.per.poll</td></td><td>Maximum number of users to query in a single poll operation. Decrease this if memory constrains are pressing.</td></td><td>int</td></td><td>100</td></td><td>[1,...]</td></td><td>low</td></td></tr>
65-
<tr>
6664
<td>fitbit.intraday.steps.topic</td></td><td>Topic for Fitbit intraday steps</td></td><td>string</td></td><td>connect_fitbit_intraday_steps</td></td><td>non-empty string without control characters</td></td><td>low</td></td></tr>
6765
<tr>
6866
<td>fitbit.intraday.heart.rate.topic</td></td><td>Topic for Fitbit intraday heart_rate</td></td><td>string</td></td><td>connect_fitbit_intraday_heart_rate</td></td><td>non-empty string without control characters</td></td><td>low</td></td></tr>

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ description = 'kafka-connect-rest-source'
22

33
subprojects {
44
ext {
5-
kafkaVersion = '2.1.0-cp1'
6-
confluentVersion = '5.1.0'
7-
jacksonVersion = '2.9.8'
5+
kafkaVersion = '2.2.0-cp2'
6+
confluentVersion = '5.2.1'
7+
jacksonVersion = '2.9.9'
88
}
99

1010
apply plugin: 'java'
1111
apply plugin: 'java-library'
1212

1313
group = 'org.radarcns'
14-
version = '0.2.1'
14+
version = '0.2.2'
1515

1616
sourceCompatibility = 1.8
1717
targetCompatibility = 1.8
@@ -26,7 +26,7 @@ subprojects {
2626
}
2727

2828
wrapper {
29-
gradleVersion '4.10.2'
29+
gradleVersion '5.4.1'
3030
}
3131

3232
evaluationDependsOnChildren()
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
version: '2.4'
3+
4+
services:
5+
radar-rest-source-auth-backend:
6+
image: radarbase/radar-rest-source-auth-backend:1.0.0
7+
depends_on:
8+
- auth-postgresql
9+
environment:
10+
- SPRING_DATASOURCE_URL=jdbc:postgresql://auth-postgresql:5432/restsourceauth
11+
- SPRING_DATASOURCE_USERNAME=radarcns
12+
- SPRING_DATASOURCE_PASSWORD=radarcns
13+
- REST_SOURCE_AUTHORIZER_SOURCE_CLIENTS_FILE_PATH=app-includes/rest_source_clients_configs.yml
14+
- LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_WEB=DEBUG
15+
- APP_SLEEP=10 # gives time for the database to boot before the application
16+
ports:
17+
- "8080:8080"
18+
volumes:
19+
- ./etc:/app-includes
20+
21+
auth-postgresql:
22+
image: postgres:10.4-alpine
23+
environment:
24+
- POSTGRES_USER=radarcns
25+
- POSTGRES_PASSWORD=radarcns
26+
- POSTGRES_DB=restsourceauth
27+
28+
radar-rest-source-authorizer:
29+
image: radarbase/radar-rest-source-authorizer:1.0.0
30+
depends_on:
31+
- radar-rest-source-auth-backend
32+
- auth-postgresql
33+
ports:
34+
- "3000:80"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
rest_source_clients:
2+
- source_type: FitBit
3+
authorization_endpoint: https://www.fitbit.com/oauth2/authorize
4+
token_endpoint: https://api.fitbit.com/oauth2/token
5+
client_id: FITBITIT
6+
client_secret: FITBITSECRET
7+
scope: activity heartrate sleep profile

docker/source-fitbit.properties.template

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ rest.source.poll.interval.ms=5000
66
rest.source.request.generator.class=org.radarbase.connect.rest.fitbit.request.FitbitRequestGenerator
77
fitbit.api.client=?
88
fitbit.api.secret=?
9-
fitbit.max.users.per.poll=10
109
fitbit.user.repository.class=org.radarbase.connect.rest.fitbit.user.ServiceUserRepository
11-
fitbit.user.repository.url=http://radar-device-auth-backend:8080/
10+
fitbit.user.repository.url=http://localhost:8080/

gradle/wrapper/gradle-wrapper.jar

1.17 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#!/usr/bin/env sh
22

3+
#
4+
# Copyright 2015 the original author or authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
319
##############################################################################
420
##
521
## Gradle start up script for UN*X
@@ -28,7 +44,7 @@ APP_NAME="Gradle"
2844
APP_BASE_NAME=`basename "$0"`
2945

3046
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31-
DEFAULT_JVM_OPTS=""
47+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
3248

3349
# Use the maximum available, or set MAX_FD != -1 to use that value.
3450
MAX_FD="maximum"

gradlew.bat

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
@rem
2+
@rem Copyright 2015 the original author or authors.
3+
@rem
4+
@rem Licensed under the Apache License, Version 2.0 (the "License");
5+
@rem you may not use this file except in compliance with the License.
6+
@rem You may obtain a copy of the License at
7+
@rem
8+
@rem http://www.apache.org/licenses/LICENSE-2.0
9+
@rem
10+
@rem Unless required by applicable law or agreed to in writing, software
11+
@rem distributed under the License is distributed on an "AS IS" BASIS,
12+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
@rem See the License for the specific language governing permissions and
14+
@rem limitations under the License.
15+
@rem
16+
117
@if "%DEBUG%" == "" @echo off
218
@rem ##########################################################################
319
@rem
@@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
1430
set APP_HOME=%DIRNAME%
1531

1632
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17-
set DEFAULT_JVM_OPTS=
33+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
1834

1935
@rem Find java.exe
2036
if defined JAVA_HOME goto findJavaFromJavaHome

kafka-connect-fitbit-source/build.gradle

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
repositories {
2-
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local' }
3-
}
4-
51
dependencies {
62
api project(':kafka-connect-rest-source')
73
api group: 'io.confluent', name: 'kafka-connect-avro-converter', version: confluentVersion
8-
api group: 'org.radarcns', name: 'radar-schemas-commons', version: '0.4.4-SNAPSHOT'
4+
api group: 'org.radarcns', name: 'radar-schemas-commons', version: '0.5.0'
95

106
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: jacksonVersion
117
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: jacksonVersion
@@ -14,9 +10,9 @@ dependencies {
1410
compileOnly group: 'org.apache.kafka', name: 'connect-api', version: kafkaVersion
1511
compileOnly group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jacksonVersion
1612

17-
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.3.2'
18-
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.3.2'
19-
testRuntimeOnly group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
13+
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.4.2'
14+
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.4.2'
15+
testRuntimeOnly group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.26'
2016
testImplementation group: 'org.apache.kafka', name: 'connect-api', version: kafkaVersion
2117
}
2218

0 commit comments

Comments
 (0)