Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.277.8 (#34)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
  • Loading branch information
github-actions[bot] and speakeasybot authored May 2, 2024
1 parent 59ca1c8 commit 7ce2400
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 179 deletions.
4 changes: 2 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ management:
docVersion: 0.2.0
speakeasyVersion: 1.277.8
generationVersion: 2.319.10
releaseVersion: 0.6.10
configChecksum: a52bb5ad43f3cef73296dc5804a2b8d7
releaseVersion: 0.6.11
configChecksum: 9ad6b23334f827737d28888b9f44d104
repoURL: https://github.com/StyraInc/opa-java.git
published: true
features:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
java:
version: 0.6.10
version: 0.6.11
additionalDependencies: []
artifactID: openapi
clientServerStatusCodesAsErrors: true
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.styra.opa.openapi:api:0.6.10'
implementation 'com.styra.opa.openapi:api:0.6.11'
```

Maven:
```xml
<dependency>
<groupId>com.styra.opa.openapi</groupId>
<artifactId>api</artifactId>
<version>0.6.10</version>
<version>0.6.11</version>
</dependency>
```

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,14 @@ Based on:
### Generated
- [java v0.6.10] .
### Releases
- [Maven Central v0.6.10] https://central.sonatype.com/artifact/com.styra.opa/openapi/0.6.10 - .
- [Maven Central v0.6.10] https://central.sonatype.com/artifact/com.styra.opa/openapi/0.6.10 - .

## 2024-05-02 15:01:04
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.277.8 (2.319.10) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.6.11] .
### Releases
- [Maven Central v0.6.11] https://central.sonatype.com/artifact/com.styra.opa/openapi/0.6.11 - .
83 changes: 5 additions & 78 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@

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


compileJava.options.encoding = "UTF-8"
compileJava.options.compilerArgs += '-Xlint:unchecked'
compileTestJava.options.encoding = "UTF-8"
Expand All @@ -36,7 +30,7 @@ model {
jar {
dependsOn(":generatePomFileForMavenPublication")

into("META-INF/maven/com.styra/opa") {
into("META-INF/maven/com.styra.opa/openapi") {
from("$buildDir/pom.xml")
}
}
Expand Down Expand Up @@ -69,9 +63,9 @@ publishing {

publications {
maven(MavenPublication) {
groupId = 'com.styra'
artifactId = 'opa'
version = '0.6.10'
groupId = 'com.styra.opa'
artifactId = 'openapi'
version = '0.6.11'

from components.java

Expand Down Expand Up @@ -125,70 +119,3 @@ dependencies {
}


// === build-footer ===
// NOTE: lines in build.gradle below this comment are managed by
// scripts/fix-build-gradle.sh and should not be managed by hand, as changes
// will be overwritten.

tasks.withType(Javadoc) {
autoLintGradle.enabled = false
failOnError false
}

// https://discuss.gradle.org/t/how-to-exclude-checkstyle-task-from-build-task/6692/5
//
// This prevents Checkstyle from running on ./gradlew build, but keeps it
// working for ./gradlew lint.
checkstyle {
sourceSets = []
}

// Exclude files generated by Speakeasy from linting.
tasks.withType(Checkstyle) {
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
exclude 'com/styra/opa/openapi/**/*.java'
exclude 'com/styra/opa/openapi/*.java'
}

task lint {
autoLintGradle.enabled = true
dependsOn checkstyleTest
dependsOn checkstyleMain
gradleLint {
criticalRules=['all-dependency']
reportFormat = 'text'
excludedRules = [
// Enabling recommended-versions causes Gradle to complain about
// testcontainers, but applying the suggested fix (removing the version
// numbers from all but one of the testImplementation lines) causes
// gradle to fail in a more obscure way that I don't understand.
"recommended-versions"
]
}
}

dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
runtimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.testcontainers:testcontainers-bom:1.19.7'
testImplementation 'org.testcontainers:testcontainers:1.19.7'
testImplementation 'org.testcontainers:junit-jupiter:1.19.7'

implementation 'com.fasterxml.jackson.core:jackson-annotations:2.17.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.17.0'
implementation 'org.apache.httpcomponents:httpcore:4.4.16'
}

test {
useJUnitPlatform()
testLogging {
// uncomment for more verbose output during development
//events "passed", "skipped", "failed", "standard_out", "standard_error"
}
}

gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
}
}
184 changes: 92 additions & 92 deletions gradlew.bat
Original file line number Diff line number Diff line change
@@ -1,92 +1,92 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

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

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

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

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* in the user manual at https://docs.gradle.org/7.5.1/userguide/multi_project_builds.html
*/

rootProject.name = 'opa'
rootProject.name = 'openapi'
4 changes: 2 additions & 2 deletions src/main/java/com/styra/opa/openapi/SDKConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public Optional<SecuritySource> securitySource() {
public int serverIdx = 0;
public String language = "java";
public String openapiDocVersion = "0.2.0";
public String sdkVersion = "0.6.10";
public String sdkVersion = "0.6.11";
public String genVersion = "2.319.10";
public String userAgent = "speakeasy-sdk/java 0.6.10 2.319.10 0.2.0 com.styra.opa.openapi";
public String userAgent = "speakeasy-sdk/java 0.6.11 2.319.10 0.2.0 com.styra.opa.openapi";

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

Expand Down

0 comments on commit 7ce2400

Please sign in to comment.