Skip to content

Commit

Permalink
Swagger and Metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
GedMarc committed Dec 28, 2023
1 parent 33c56f2 commit c0765bd
Show file tree
Hide file tree
Showing 10 changed files with 834 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,24 @@ jobs:
USER_TOKEN: ${{secrets.USER_TOKEN}}
SONA_USERNAME: ${{secrets.SONA_USERNAME}}
SONA_PASSWORD: ${{secrets.SONA_PASSWORD}}
Metrics:
uses: GuicedEE/Workflows/.github/workflows/bom.yml@master
with:
baseDir: 'MicroProfile/metrics-core/'
name: 'MicroProfile Metrics'
secrets:
USERNAME: ${{secrets.USERNAME}}
USER_TOKEN: ${{secrets.USER_TOKEN}}
SONA_USERNAME: ${{secrets.SONA_USERNAME}}
SONA_PASSWORD: ${{secrets.SONA_PASSWORD}}
OpenAPI:
uses: GuicedEE/Workflows/.github/workflows/bom.yml@master
with:
baseDir: 'Libraries/swagger/'
name: 'Open API'
secrets:
USERNAME: ${{secrets.USERNAME}}
USER_TOKEN: ${{secrets.USER_TOKEN}}
SONA_USERNAME: ${{secrets.SONA_USERNAME}}
SONA_PASSWORD: ${{secrets.SONA_PASSWORD}}

204 changes: 204 additions & 0 deletions Libraries/swagger/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.guicedee</groupId>
<artifactId>parent</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>

<groupId>com.guicedee.services</groupId>
<artifactId>openapi</artifactId>
<packaging>jar</packaging>
<name>swagger</name>
<!--<version>${io.swagger.version}</version>-->
<version>2.0.0-SNAPSHOT</version>

<properties>
<project.scm.nameUrl>/GuicedEE/Services</project.scm.nameUrl>
</properties>

<dependencies>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.jakarta.rs</groupId>
<artifactId>jackson-jakarta-rs-base</artifactId>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.jakarta.rs</groupId>
<artifactId>jackson-jakarta-rs-json-provider</artifactId>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.jakarta.rs</groupId>
<artifactId>jackson-jakarta-rs-yaml-provider</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>

<!-- Swagger runtime dependencies -->
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-jaxrs2-jakarta</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.guicedee.services</groupId>
<artifactId>javassist</artifactId>
</dependency>

<dependency>
<groupId>com.guicedee</groupId>
<artifactId>guice-inject-client</artifactId>
</dependency>

<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>

</dependencies>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>io.swagger.core.v3:*:*</include>
<include>org.yaml:snakeyaml:*</include>
<include>com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-yaml-provider</include>
<include>com.fasterxml.jackson.dataformat:jackson-dataformat-yaml</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>module-info.java</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/versions/11/**</exclude>
<!--<exclude>/META-INF/services</exclude>-->
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>com.guicedee.swagger.jsonoverrides</pattern>
<shadedPattern>io.swagger.v3.core.util</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>

</plugins>
</build>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.guicedee</groupId>
<artifactId>standalone-bom</artifactId>
<version>${guicedee.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.guicedee</groupId>
<artifactId>apache-bom</artifactId>
<version>${guicedee.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.guicedee</groupId>
<artifactId>fasterxml-bom</artifactId>
<version>${guicedee.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.guicedee</groupId>
<artifactId>swagger-bom</artifactId>
<version>${guicedee.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.guicedee</groupId>
<artifactId>jakarta-bom</artifactId>
<version>${guicedee.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

</project>
File renamed without changes.
Loading

0 comments on commit c0765bd

Please sign in to comment.