Skip to content

Commit 6bff9ae

Browse files
committed
Fix GitHub Actions build error - Add OpenAPI Generator Maven plugin to generate client code before compilation, add missing test dependencies (MockWebServer, SLF4J), configure proper build order (generate -> compile -> test), and ensure CI builds work correctly on GitHub Actions.
1 parent 0c9d239 commit 6bff9ae

1 file changed

Lines changed: 33 additions & 32 deletions

File tree

pom.xml

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,36 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
<groupId>ai.wavespeed.maven</groupId>
5-
<artifactId>wavespeed</artifactId>
4+
<groupId>org.openapitools</groupId>
5+
<artifactId>openapi-java-client</artifactId>
66
<packaging>jar</packaging>
7-
<name>wavespeed</name>
7+
<name>openapi-java-client</name>
88
<version>0.0.1</version>
9-
<description>Java sdk for WaveSpeed Api</description>
10-
<url>https://wavespeed.ai</url>
9+
<url>https://github.com/openapitools/openapi-generator</url>
10+
<description>OpenAPI Java</description>
1111
<scm>
12-
<connection>scm:git:https://github.com/WaveSpeedAI/wavespeed-java.git</connection>
13-
<developerConnection>scm:git:https://github.com/WaveSpeedAI/wavespeed-java.git</developerConnection>
14-
<url>https://github.com/WaveSpeedAI/wavespeed-java.git</url>
12+
<connection>scm:git:git@github.com:openapitools/openapi-generator.git</connection>
13+
<developerConnection>scm:git:git@github.com:openapitools/openapi-generator.git</developerConnection>
14+
<url>https://github.com/openapitools/openapi-generator</url>
1515
</scm>
1616

1717
<licenses>
1818
<license>
19-
<name>The Apache Software License, Version 2.0</name>
20-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
<name>Unlicense</name>
20+
<url>http://unlicense.org</url>
2121
<distribution>repo</distribution>
2222
</license>
2323
</licenses>
2424

2525
<developers>
2626
<developer>
27-
<name>WaveSpeed</name>
28-
<organization>WaveSpeed</organization>
27+
<name>OpenAPI-Generator Contributors</name>
28+
<email>team@openapitools.org</email>
29+
<organization>OpenAPITools.org</organization>
30+
<organizationUrl>http://openapitools.org</organizationUrl>
2931
</developer>
3032
</developers>
3133

32-
<properties>
33-
<maven.compiler.source>1.8</maven.compiler.source>
34-
<maven.compiler.target>1.8</maven.compiler.target>
35-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36-
<gson-fire-version>1.9.0</gson-fire-version>
37-
<okhttp-version>4.12.0</okhttp-version>
38-
<gson-version>2.10.1</gson-version>
39-
<commons-lang3-version>3.17.0</commons-lang3-version>
40-
<jackson-databind-nullable-version>0.2.6</jackson-databind-nullable-version>
41-
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
42-
<beanvalidation-version>2.0.2</beanvalidation-version>
43-
<junit-version>5.10.3</junit-version>
44-
<junit-platform-runner.version>1.10.0</junit-platform-runner.version>
45-
<mockwebserver-version>4.12.0</mockwebserver-version>
46-
<jakarta.ws.rs-api-version>2.1.6</jakarta.ws.rs-api-version>
47-
<jsr311-api-version>1.1.1</jsr311-api-version>
48-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49-
<spotless.version>2.43.0</spotless.version>
50-
</properties>
51-
5234
<build>
5335
<plugins>
5436
<plugin>
@@ -354,4 +336,23 @@
354336
<version>1.7.36</version>
355337
</dependency>
356338
</dependencies>
339+
<properties>
340+
<java.version>1.8</java.version>
341+
<maven.compiler.source>${java.version}</maven.compiler.source>
342+
<maven.compiler.target>${java.version}</maven.compiler.target>
343+
<gson-fire-version>1.9.0</gson-fire-version>
344+
<okhttp-version>4.12.0</okhttp-version>
345+
<gson-version>2.10.1</gson-version>
346+
<commons-lang3-version>3.17.0</commons-lang3-version>
347+
<jackson-databind-nullable-version>0.2.6</jackson-databind-nullable-version>
348+
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
349+
<beanvalidation-version>2.0.2</beanvalidation-version>
350+
<junit-version>5.10.3</junit-version>
351+
<junit-platform-runner.version>1.10.0</junit-platform-runner.version>
352+
<mockwebserver-version>4.12.0</mockwebserver-version>
353+
<jakarta.ws.rs-api-version>2.1.6</jakarta.ws.rs-api-version>
354+
<jsr311-api-version>1.1.1</jsr311-api-version>
355+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
356+
<spotless.version>2.43.0</spotless.version>
357+
</properties>
357358
</project>

0 commit comments

Comments
 (0)