Skip to content

New java lib #1725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/java-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
distribution: 'temurin'
java-version: '11'

- name: Regen openapi libs
run: |
yarn
./regen_openapi.sh

- name: Build
run: |
cd java
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
distribution: 'temurin'
java-version: '11'

- name: Regen openapi libs
run: |
yarn
./regen_openapi.sh

- name: Restore gradle.properties
run: |
mkdir -p ~/.gradle/
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased
* Libs/Java **(Breaking)**: All uses of `ListOptions`/`PostOptions` are removed, and renamed to `{Resource}{Operation}Options`. For example in `Endpoint.List` you would now use `EndpointListOptions`
* Libs/Java **(Breaking)**: Deprecated methods `MessageAttempt.list` and `MessageAttempt.listAttemptsForEndpoint` are removed

## Version 1.59.2
* Libs/Go: Fixed regression where go >= 1.23 was needed, now Go >= 1.21 is supported

Expand Down
28 changes: 17 additions & 11 deletions java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ plugins {

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

group = GROUP
version = VERSION_NAME

Expand All @@ -18,22 +17,29 @@ repositories {
}

sourceSets {
main.java.srcDirs = ['lib/src/main/java', 'lib/generated/openapi/src/main/java']
main.java.srcDirs = ['lib/src/main/java']
test.java.srcDirs = ['lib/src/test']
}

dependencies {
implementation 'io.swagger:swagger-annotations:1.6.8'
implementation "com.fasterxml.jackson.core:jackson-core:2.17.+"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.+"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.+"
implementation "com.fasterxml.jackson.core:jackson-annotations:2.17.+"
implementation "com.fasterxml.jackson.core:jackson-databind:2.17.+"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
implementation 'com.google.code.gson:gson:2.9.1'
implementation 'io.gsonfire:gson-fire:1.9.0'
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation 'javax.annotation:javax.annotation-api:1.3.2'


testImplementation 'junit:junit:4.13.1'
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.35.1'
testImplementation "org.assertj:assertj-core:3.24.2"

compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'

testCompileOnly 'org.projectlombok:lombok:1.18.36'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.36'
}

jar {
Expand Down
23 changes: 0 additions & 23 deletions java/lib/generated/openapi/.openapi-generator-ignore

This file was deleted.

81 changes: 0 additions & 81 deletions java/lib/src/main/java/com/svix/Application.java

This file was deleted.

15 changes: 0 additions & 15 deletions java/lib/src/main/java/com/svix/ApplicationListOptions.java

This file was deleted.

52 changes: 0 additions & 52 deletions java/lib/src/main/java/com/svix/Authentication.java

This file was deleted.

33 changes: 0 additions & 33 deletions java/lib/src/main/java/com/svix/BackgroundTask.java

This file was deleted.

35 changes: 0 additions & 35 deletions java/lib/src/main/java/com/svix/BackgroundTaskListOptions.java

This file was deleted.

Loading
Loading