Skip to content

Commit

Permalink
implement registration and self-publishing flow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Aug 15, 2022
1 parent 52dfe50 commit 33538bb
Show file tree
Hide file tree
Showing 12 changed files with 861 additions and 35 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.factorypath
.settings/
**/*.class
dependency-reduced-pom.xml
build/
target/
bin/
318 changes: 318 additions & 0 deletions dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,318 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.cryostat</groupId>
<artifactId>cryostat-agent</artifactId>
<name>cryostat</name>
<version>1.0.0-SNAPSHOT</version>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>${org.apache.maven.plugins.jar.version}</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${mainClass}</mainClass>
</manifest>
<manifestEntries>
<Premain-Class>${mainClass}</Premain-Class>
<Agent-Class>${mainClass}</Agent-Class>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>${org.apache.maven.plugins.shade.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.reactiverse</groupId>
<artifactId>vertx-maven-plugin</artifactId>
<version>${io.reactiverse.plugin.version}</version>
<configuration>
<redeploy>true</redeploy>
<launcher>${mainClass}</launcher>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${org.apache.maven.plugins.compiler.version}</version>
<configuration>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<annotationProcessorPaths>
<path>
<groupId>com.google.dagger</groupId>
<artifactId>dagger-compiler</artifactId>
<version>${com.google.dagger.compiler.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${com.github.spotbugs.plugin.version}</version>
<executions>
<execution>
<id>spotbugs</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${org.jacoco.maven.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${com.diffplug.spotless.maven.plugin.version}</version>
<executions>
<execution>
<id>spotless</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<java>
<googleJavaFormat>
<version>1.15.0</version>
<style>AOSP</style>
<reflowLongStrings>true</reflowLongStrings>
</googleJavaFormat>
<trimTrailingWhitespace />
<endWithNewline />
<importOrder>
<order>java,javax,org.openjdk.jmc,io.cryostat,</order>
</importOrder>
<removeUnusedImports />
</java>
</configuration>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>${org.apache.maven.plugins.site.version}</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${org.apache.maven.plugins.info.reports.version}</version>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${com.mycila.license.maven.plugin.version}</version>
<executions>
<execution>
<id>update-license</id>
<phase>process-sources</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<licenseSets>
<licenseSet>
<header>LICENSE</header>
<includes>
<include>src/main/**/*.java</include>
<include>src/test/**/*.java</include>
</includes>
</licenseSet>
</licenseSets>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dep-check</id>
<build>
<plugins>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${org.owasp.dependency.check.version}</version>
<executions>
<execution>
<id>check-for-vulnerable-deps</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<failBuildOnAnyVulnerability>true</failBuildOnAnyVulnerability>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.8.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>junit-jupiter-api</artifactId>
<groupId>org.junit.jupiter</groupId>
</exclusion>
<exclusion>
<artifactId>junit-jupiter-params</artifactId>
<groupId>org.junit.jupiter</groupId>
</exclusion>
<exclusion>
<artifactId>junit-jupiter-engine</artifactId>
<groupId>org.junit.jupiter</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>4.6.1</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>mockito-core</artifactId>
<groupId>org.mockito</groupId>
</exclusion>
<exclusion>
<artifactId>junit-jupiter-api</artifactId>
<groupId>org.junit.jupiter</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>4.6.1</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>mockito-core</artifactId>
<groupId>org.mockito</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<version>4.5.3</version>
<scope>provided</scope>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${com.github.spotbugs.plugin.version}</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${org.jacoco.maven.plugin.version}</version>
<configuration>
<excludes>
<exclude>**/*_Factory.*</exclude>
<exclude>**/*_Provide*Factory.*</exclude>
<exclude>**/Dagger*.*</exclude>
<exclude>**/*Module_*Factory.*</exclude>
<exclude>**/*Module.*</exclude>
</excludes>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<properties>
<mainClass>io.cryostat.agent.Agent</mainClass>
<com.google.dagger.compiler.version>2.26</com.google.dagger.compiler.version>
<org.apache.commons.io.version>2.8.0</org.apache.commons.io.version>
<com.google.dagger.version>2.34.1</com.google.dagger.version>
<com.mycila.license.maven.plugin.version>4.0</com.mycila.license.maven.plugin.version>
<org.apache.commons.codec.version>1.15</org.apache.commons.codec.version>
<org.apache.maven.plugins.clean.version>3.1.0</org.apache.maven.plugins.clean.version>
<org.hamcrest.version>2.2</org.hamcrest.version>
<org.slf4j.version>1.7.30</org.slf4j.version>
<org.apache.maven.plugins.failsafe.version>${org.apache.maven.plugins.surefire.version}</org.apache.maven.plugins.failsafe.version>
<org.apache.maven.plugins.resources.version>3.2.0</org.apache.maven.plugins.resources.version>
<org.apache.commons.lang3.version>3.12.0</org.apache.commons.lang3.version>
<org.apache.httpcomponents.version>4.5.13</org.apache.httpcomponents.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.apache.maven.plugins.shade.version>3.3.0</org.apache.maven.plugins.shade.version>
<org.apache.maven.plugins.site.version>3.9.1</org.apache.maven.plugins.site.version>
<com.fasterxml.jackson.version>2.13.3</com.fasterxml.jackson.version>
<com.diffplug.spotless.maven.plugin.version>2.22.7</com.diffplug.spotless.maven.plugin.version>
<org.jsoup.version>1.14.2</org.jsoup.version>
<org.apache.maven.plugins.surefire.version>2.22.2</org.apache.maven.plugins.surefire.version>
<org.apache.maven.plugins.jar.version>3.2.2</org.apache.maven.plugins.jar.version>
<java.version>17</java.version>
<io.reactiverse.plugin.version>1.0.27</io.reactiverse.plugin.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<org.apache.maven.plugins.assembly.version>3.3.0</org.apache.maven.plugins.assembly.version>
<org.owasp.dependency.check.version>6.1.5</org.owasp.dependency.check.version>
<org.mockito.version>4.6.1</org.mockito.version>
<org.jacoco.maven.plugin.version>0.8.8</org.jacoco.maven.plugin.version>
<io.fabric8.client.version>5.12.2</io.fabric8.client.version>
<com.github.spotbugs.plugin.version>4.5.3.0</com.github.spotbugs.plugin.version>
<io.vertx.web.version>4.2.5</io.vertx.web.version>
<org.junit.jupiter.version>5.8.2</org.junit.jupiter.version>
<maven.compiler.target>${java.version}</maven.compiler.target>
<org.apache.maven.plugins.info.reports.version>3.1.1</org.apache.maven.plugins.info.reports.version>
<com.github.spotbugs.version>4.5.3</com.github.spotbugs.version>
<org.apache.maven.plugins.compiler.version>3.8.1</org.apache.maven.plugins.compiler.version>
<org.apache.commons.validator.version>1.7</org.apache.commons.validator.version>
</properties>
</project>
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<org.apache.httpcomponents.version>4.5.13</org.apache.httpcomponents.version>
<io.fabric8.client.version>5.12.2</io.fabric8.client.version>
<io.vertx.web.version>4.2.5</io.vertx.web.version>
<com.fasterxml.jackson.version>2.13.3</com.fasterxml.jackson.version>
<org.slf4j.version>1.7.30</org.slf4j.version>

<com.github.spotbugs.version>4.5.3</com.github.spotbugs.version>
Expand Down Expand Up @@ -94,6 +95,11 @@
<artifactId>vertx-web-client</artifactId>
<version>${io.vertx.web.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${com.fasterxml.jackson.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
Expand Down Expand Up @@ -161,12 +167,16 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${org.apache.maven.plugins.shade.version}</version>
<configuration></configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
Expand Down
Loading

0 comments on commit 33538bb

Please sign in to comment.