Skip to content

Commit 800d945

Browse files
authored
[Java][jersey2]Fix gradle HttpSignatureAuth dependencies (#7096)
* Corrects tag for including HttpSignatureAuth in gradle builds * Updates version of org.tomitribe:tomitribe-http-signatures in gradle template to match version from maven template * Updates samples
1 parent 44726ef commit 800d945

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

modules/openapi-generator/src/main/resources/Java/libraries/jersey2/build.gradle.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ ext {
137137
{{#hasOAuthMethods}}
138138
scribejava_apis_version = "6.9.0"
139139
{{/hasOAuthMethods}}
140-
{{#hasHttpBasicMethods}}
141-
tomitribe_http_signatures_version = "1.3"
142-
{{/hasHttpBasicMethods}}
140+
{{#hasHttpSignatureMethods}}
141+
tomitribe_http_signatures_version = "1.5"
142+
{{/hasHttpSignatureMethods}}
143143
}
144144

145145
dependencies {
@@ -161,9 +161,9 @@ dependencies {
161161
{{#hasOAuthMethods}}
162162
compile "com.github.scribejava:scribejava-apis:$scribejava_apis_version"
163163
{{/hasOAuthMethods}}
164-
{{#hasHttpBasicMethods}}
164+
{{#hasHttpSignatureMethods}}
165165
compile "org.tomitribe:tomitribe-http-signatures:$tomitribe_http_signatures_version"
166-
{{/hasHttpBasicMethods}}
166+
{{/hasHttpSignatureMethods}}
167167
{{#supportJava6}}
168168
compile "commons-io:commons-io:$commons_io_version"
169169
compile "org.apache.commons:commons-lang3:$commons_lang3_version"

samples/client/petstore/java/jersey2-java8/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ ext {
101101
jersey_version = "2.27"
102102
junit_version = "4.13"
103103
scribejava_apis_version = "6.9.0"
104-
tomitribe_http_signatures_version = "1.3"
105104
}
106105

107106
dependencies {
@@ -116,7 +115,6 @@ dependencies {
116115
compile "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version"
117116
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
118117
compile "com.github.scribejava:scribejava-apis:$scribejava_apis_version"
119-
compile "org.tomitribe:tomitribe-http-signatures:$tomitribe_http_signatures_version"
120118
compile 'javax.annotation:javax.annotation-api:1.3.2'
121119
testCompile "junit:junit:$junit_version"
122120
}

samples/openapi3/client/petstore/java/jersey2-java8/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ext {
101101
jersey_version = "2.27"
102102
junit_version = "4.13"
103103
scribejava_apis_version = "6.9.0"
104-
tomitribe_http_signatures_version = "1.3"
104+
tomitribe_http_signatures_version = "1.5"
105105
}
106106

107107
dependencies {

0 commit comments

Comments
 (0)