Skip to content

Commit

Permalink
chore: switch to stable jdk21
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Oct 13, 2023
1 parent 71dcea2 commit f9f30ac
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: actions/setup-java@v3
with:
java-version: '21-ea'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21-ea'
java-version: '21'
distribution: 'temurin'
cache: 'maven'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
package de.l3s.interweb.core.completion;

import java.io.Serial;
import java.io.Serializable;
import java.time.Instant;
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonPropertyOrder({"id", "title", "model", "messages", "used_tokens", "estimated_cost", "created"})
public class Conversation extends CompletionQuery {
public class Conversation extends CompletionQuery implements Serializable {
@Serial
private static final long serialVersionUID = 7841527600165525951L;

@JsonProperty("title")
private String title;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package de.l3s.interweb.core.completion;

import java.io.Serial;
import java.io.Serializable;
import java.time.Instant;

import jakarta.validation.constraints.NotEmpty;
Expand All @@ -12,7 +14,10 @@

@RegisterForReflection
@JsonIgnoreProperties(ignoreUnknown = true)
public class Message {
public class Message implements Serializable {
@Serial
private static final long serialVersionUID = 7110951353515625780L;

public enum Role {
system,
user,
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<properties>
<skipITs>true</skipITs>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Expand Down Expand Up @@ -98,7 +98,7 @@
<version>[3.8,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[17,)</version>
<version>[21,)</version>
</requireJavaVersion>
</rules>
</configuration>
Expand All @@ -120,7 +120,7 @@
</compilerArgs>
</configuration>
</plugin>
<!-- Creates a jar archive of the source files of the current project -->
<!-- Creates a jar archive with sources of the project -->
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>${source-plugin.version}</version>
Expand Down

0 comments on commit f9f30ac

Please sign in to comment.