Skip to content

Commit 0d0b5f3

Browse files
github-actions[bot]speakeasybotactions-user
authored
chore: 🐝 Update SDK - Generate (#31)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.277.4 * post-generation for speakeasy-sdk-regen-1714598566 at Wed May 1 21:23:38 UTC 2024 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Actions <[email protected]>
1 parent ba4b1b7 commit 0d0b5f3

File tree

8 files changed

+98
-15
lines changed

8 files changed

+98
-15
lines changed

.speakeasy/gen.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ management:
55
docVersion: 0.2.0
66
speakeasyVersion: 1.277.4
77
generationVersion: 2.318.3
8-
releaseVersion: 0.6.7
9-
configChecksum: cfb29ac9a83ddb66910c11ad8af72bac
8+
releaseVersion: 0.6.8
9+
configChecksum: 96c309e9401b2258edcc5314db7f8fd5
1010
repoURL: https://github.com/StyraInc/opa-java.git
1111
published: true
1212
features:

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
java:
15-
version: 0.6.7
15+
version: 0.6.8
1616
additionalDependencies: []
1717
artifactID: openapi
1818
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ workflow:
1818
ossrhPassword: $ossrh_password
1919
gpgSecretKey: $java_gpg_secret_key
2020
gpgPassPhrase: $java_gpg_passphrase
21+
useSonatypeLegacy: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@ The samples below show how a published SDK artifact is used:
175175

176176
Gradle:
177177
```groovy
178-
implementation 'com.styra.opa.openapi:api:0.6.7'
178+
implementation 'com.styra.opa.openapi:api:0.6.8'
179179
```
180180

181181
Maven:
182182
```xml
183183
<dependency>
184184
<groupId>com.styra.opa.openapi</groupId>
185185
<artifactId>api</artifactId>
186-
<version>0.6.7</version>
186+
<version>0.6.8</version>
187187
</dependency>
188188
```
189189

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,14 @@ Based on:
102102
### Generated
103103
- [java v0.6.7] .
104104
### Releases
105-
- [Maven Central v0.6.7] https://central.sonatype.com/artifact/com.styra.opa/openapi/0.6.7 - .
105+
- [Maven Central v0.6.7] https://central.sonatype.com/artifact/com.styra.opa/openapi/0.6.7 - .
106+
107+
## 2024-05-01 21:22:43
108+
### Changes
109+
Based on:
110+
- OpenAPI Doc
111+
- Speakeasy CLI 1.277.4 (2.318.3) https://github.com/speakeasy-api/speakeasy
112+
### Generated
113+
- [java v0.6.8] .
114+
### Releases
115+
- [Maven Central v0.6.8] https://central.sonatype.com/artifact/com.styra.opa/openapi/0.6.8 - .

build.gradle

Lines changed: 78 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11

22
plugins {
3-
// Apply the java-library plugin for API and implementation separation.
3+
// NOTE: this block is managed by scripts/fix-build-gradle.sh, changes made
4+
// to the plugins block by hand will be overwritten!
45
id 'java-library'
6+
id 'java'
7+
id "nebula.lint" version "17.8.0"
8+
id 'checkstyle'
59
id 'maven-publish'
610
id 'signing'
11+
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.0'
712
}
813

14+
915
compileJava.options.encoding = "UTF-8"
1016
compileTestJava.options.encoding = "UTF-8"
1117

@@ -29,7 +35,7 @@ model {
2935
jar {
3036
dependsOn(":generatePomFileForMavenPublication")
3137

32-
into("META-INF/maven/com.styra.opa/openapi") {
38+
into("META-INF/maven/com.styra/opa") {
3339
from("$buildDir/pom.xml")
3440
}
3541
}
@@ -62,9 +68,9 @@ publishing {
6268

6369
publications {
6470
maven(MavenPublication) {
65-
groupId = 'com.styra.opa'
66-
artifactId = 'openapi'
67-
version = '0.6.7'
71+
groupId = 'com.styra'
72+
artifactId = 'opa'
73+
version = '0.6.8'
6874

6975
from components.java
7076

@@ -114,8 +120,74 @@ dependencies {
114120
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
115121
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
116122
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
117-
implementation 'com.jayway.jsonpath:json-path:2.9.0'
118123
implementation 'commons-io:commons-io:2.15.1'
119124
}
120125

121126

127+
// === build-footer ===
128+
// NOTE: lines in build.gradle below this comment are managed by
129+
// scripts/fix-build-gradle.sh and should not be managed by hand, as changes
130+
// will be overwritten.
131+
132+
tasks.withType(Javadoc) {
133+
autoLintGradle.enabled = false
134+
failOnError false
135+
}
136+
137+
// https://discuss.gradle.org/t/how-to-exclude-checkstyle-task-from-build-task/6692/5
138+
//
139+
// This prevents Checkstyle from running on ./gradlew build, but keeps it
140+
// working for ./gradlew lint.
141+
checkstyle {
142+
sourceSets = []
143+
}
144+
145+
// Exclude files generated by Speakeasy from linting.
146+
tasks.withType(Checkstyle) {
147+
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
148+
exclude 'com/styra/opa/openapi/**/*.java'
149+
exclude 'com/styra/opa/openapi/*.java'
150+
}
151+
152+
task lint {
153+
autoLintGradle.enabled = true
154+
dependsOn checkstyleTest
155+
dependsOn checkstyleMain
156+
gradleLint {
157+
criticalRules=['all-dependency']
158+
reportFormat = 'text'
159+
excludedRules = [
160+
// Enabling recommended-versions causes Gradle to complain about
161+
// testcontainers, but applying the suggested fix (removing the version
162+
// numbers from all but one of the testImplementation lines) causes
163+
// gradle to fail in a more obscure way that I don't understand.
164+
"recommended-versions"
165+
]
166+
}
167+
}
168+
169+
dependencies {
170+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
171+
runtimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
172+
testImplementation 'org.testcontainers:testcontainers-bom:1.19.7'
173+
testImplementation 'org.testcontainers:testcontainers:1.19.7'
174+
testImplementation 'org.testcontainers:junit-jupiter:1.19.7'
175+
176+
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.17.0'
177+
implementation 'com.fasterxml.jackson.core:jackson-core:2.17.0'
178+
implementation 'org.apache.httpcomponents:httpcore:4.4.16'
179+
}
180+
181+
test {
182+
useJUnitPlatform()
183+
testLogging {
184+
// uncomment for more verbose output during development
185+
//events "passed", "skipped", "failed", "standard_out", "standard_error"
186+
}
187+
}
188+
189+
gradle.projectsEvaluated {
190+
tasks.withType(JavaCompile) {
191+
options.compilerArgs << "-Xlint:unchecked"
192+
}
193+
}

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* in the user manual at https://docs.gradle.org/7.5.1/userguide/multi_project_builds.html
88
*/
99

10-
rootProject.name = 'openapi'
10+
rootProject.name = 'opa'

src/main/java/com/styra/opa/openapi/SDKConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public Optional<SecuritySource> securitySource() {
2121
public int serverIdx = 0;
2222
public String language = "java";
2323
public String openapiDocVersion = "0.2.0";
24-
public String sdkVersion = "0.6.7";
24+
public String sdkVersion = "0.6.8";
2525
public String genVersion = "2.318.3";
26-
public String userAgent = "speakeasy-sdk/java 0.6.7 2.318.3 0.2.0 com.styra.opa.openapi";
26+
public String userAgent = "speakeasy-sdk/java 0.6.8 2.318.3 0.2.0 com.styra.opa.openapi";
2727

2828
private com.styra.opa.openapi.utils.Hooks _hooks = new com.styra.opa.openapi.utils.Hooks();
2929

0 commit comments

Comments
 (0)