Skip to content

Commit

Permalink
Move Dependency Management to sub-module pom.xml (#304)
Browse files Browse the repository at this point in the history
Attempts to resolve the issue when publishing to Maven Central Repository.
  • Loading branch information
Chrimle authored Dec 28, 2024
1 parent b09a98b commit dd0d4e5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 64 deletions.
20 changes: 20 additions & 0 deletions mustache-templates/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,20 @@
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- Dependency Versions -->
<openapi-generator-maven-plugin.version>7.8.0</openapi-generator-maven-plugin.version>
<junit-jupiter.version>5.11.4</junit-jupiter.version>
<gson.version>2.11.0</gson.version>
<jackson-databind-nullable.version>0.2.6</jackson-databind-nullable.version>
<jsr305.version>3.0.2</jsr305.version>
<jakarta.annotation-api.version>3.0.0</jakarta.annotation-api.version>
<jackson-annotations.version>2.18.1</jackson-annotations.version>
<hibernate-validator.version>8.0.1.Final</hibernate-validator.version>
<!-- / Dependency Versions -->

<!-- Build Plugin Versions -->
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
Expand Down Expand Up @@ -115,41 +127,49 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- Needed when library=okhttp-gson -->
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<!-- Needed when configOptions.useJakartaEe=true -->
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>${jakarta.annotation-api.version}</version>
</dependency>
<dependency>
<!-- Needed when configOptions.useJakartaEe=false -->
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>${jsr305.version}</version>
</dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable.version}</version>
</dependency>
<dependency>
<!-- Needed when library=webclient -->
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson-annotations.version}</version>
</dependency>
<dependency>
<!-- Needed when useBeanValidation=true -->
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate-validator.version}</version>
</dependency>
</dependencies>

Expand Down
65 changes: 1 addition & 64 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</modules>

<!-- Project Information -->
<name>OpenAPI to Java records :: Mustache Templates</name>
<name>OpenAPI to Java records :: Mustache Templates :: Parent</name>
<description>Project containing Mustache-templates used by openapi-generator-maven-plugin to generate Java records from OpenAPI Specifications.</description>
<inceptionYear>2024</inceptionYear>
<url>https://chrimle.github.io/openapi-to-java-records-mustache-templates/</url>
Expand Down Expand Up @@ -46,68 +46,5 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.plugin.validation>VERBOSE</maven.plugin.validation>

<!-- Dependency Versions -->
<openapi-generator-maven-plugin.version>7.8.0</openapi-generator-maven-plugin.version>
<junit-jupiter.version>5.11.4</junit-jupiter.version>
<gson.version>2.11.0</gson.version>
<jackson-databind-nullable.version>0.2.6</jackson-databind-nullable.version>
<jsr305.version>3.0.2</jsr305.version>
<jakarta.annotation-api.version>3.0.0</jakarta.annotation-api.version>
<jackson-annotations.version>2.18.1</jackson-annotations.version>
<hibernate-validator.version>8.0.1.Final</hibernate-validator.version>
<!-- / Dependency Versions -->
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- Needed when library=okhttp-gson -->
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<!-- Needed when configOptions.useJakartaEe=true -->
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>${jakarta.annotation-api.version}</version>
</dependency>
<dependency>
<!-- Needed when configOptions.useJakartaEe=false -->
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>${jsr305.version}</version>
</dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable.version}</version>
</dependency>
<dependency>
<!-- Needed when library=webclient -->
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson-annotations.version}</version>
</dependency>
<dependency>
<!-- Needed when useBeanValidation=true -->
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate-validator.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>

0 comments on commit dd0d4e5

Please sign in to comment.