Skip to content

Commit

Permalink
Update oauth package and ignore linting for it
Browse files Browse the repository at this point in the history
OAuth2 isnt used therefore we can ignore it
  • Loading branch information
jmattheis committed Nov 17, 2018
1 parent d4c6273 commit 94d23c9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ android {
}
lintOptions {
disable 'GoogleAppIndexingWarning'
lintConfig file('../lint.xml')
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
Expand All @@ -50,6 +51,12 @@ dependencies {
implementation 'com.squareup.picasso:picasso:2.71828'
}

configurations {
all {
exclude group: 'org.json', module: 'json'
}
}

spotless {
java {
target '**/*.java'
Expand Down
6 changes: 4 additions & 2 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if(hasProperty('target') && target == 'android') {
}

ext {
oltu_version = "1.0.0"
oltu_version = "1.0.2"
retrofit_version = "2.3.0"
swagger_annotations_version = "1.5.15"
junit_version = "4.12"
Expand All @@ -106,7 +106,9 @@ dependencies {
compile "com.squareup.retrofit2:converter-scalars:$retrofit_version"
compile "com.squareup.retrofit2:converter-gson:$retrofit_version"
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
compile ("org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version") {
exclude group:'org.apache.oltu.oauth2' , module: 'org.apache.oltu.oauth2.common'
}
compile "io.gsonfire:gson-fire:$json_fire_version"
compile "org.threeten:threetenbp:$threetenbp_version"
testCompile "junit:junit:$junit_version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public <T extends OAuthClientResponse> T execute(OAuthClientRequest request, Map
response.body().string(),
response.body().contentType().toString(),
response.code(),
response.headers().toMultimap(),
responseClass);
} catch (IOException e) {
throw new OAuthSystemException(e);
Expand Down
6 changes: 6 additions & 0 deletions lint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="InvalidPackage">
<ignore path="**/org.apache.oltu.oauth2.client-1.0.2.jar"/>
</issue>
</lint>

0 comments on commit 94d23c9

Please sign in to comment.