Skip to content

Commit

Permalink
Merge branch 'master' into RemoveSetPrivateFieldValue
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdahlke authored Feb 13, 2024
2 parents 3da0a4c + e119ba1 commit 3663946
Show file tree
Hide file tree
Showing 93 changed files with 711 additions and 519 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cherrypick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
exit 1
- name: Checkout repo
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4

- name: Cherry pick to patch branch
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -55,7 +55,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -69,4 +69,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
4 changes: 2 additions & 2 deletions .github/workflows/create-patch-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
branch: ${{ steps.set_output.outputs.patch_branch }}
steps:
- name: Checkout repo
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4

- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
2 changes: 1 addition & 1 deletion .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4

- name: Configure Java & Maven
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "${{ matrix.java }}"
cache: "maven"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ jobs:
packages: write
steps:
- name: Checkout repo
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4

- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
cache: "maven"
Expand Down Expand Up @@ -133,10 +133,10 @@ jobs:
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
Expand Down
133 changes: 47 additions & 86 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@
<EMISSARY_VERSION>${project.version}</EMISSARY_VERSION>
<argLine />
<checkstyleFormatter>${project.basedir}/contrib/checkstyle.xml</checkstyleFormatter>
<dep.commons-codec.version>1.15</dep.commons-codec.version>
<dep.commons-codec.version>1.16.0</dep.commons-codec.version>
<dep.commons-collections.version>4.4</dep.commons-collections.version>
<dep.commons-compress.version>1.21</dep.commons-compress.version>
<dep.commons-compress.version>1.24.0</dep.commons-compress.version>
<dep.commons-exec.version>1.3</dep.commons-exec.version>
<dep.commons-io.version>2.11.0</dep.commons-io.version>
<dep.commons-lang.version>3.12.0</dep.commons-lang.version>
<dep.commons-io.version>2.13.0</dep.commons-io.version>
<dep.commons-lang.version>3.13.0</dep.commons-lang.version>
<dep.commons-pool2.version>2.11.1</dep.commons-pool2.version>
<dep.dropwizard.metrics.version>4.2.4</dep.dropwizard.metrics.version>
<dep.errorprone.version>2.23.0</dep.errorprone.version>
<dep.gson.version>2.8.9</dep.gson.version>
<dep.guava.version>32.0.0-jre</dep.guava.version>
<dep.gson.version>2.10.1</dep.gson.version>
<dep.guava.version>32.1.2-jre</dep.guava.version>
<dep.httpclient.version>5.2.1</dep.httpclient.version>
<dep.httpcore.version>5.2.1</dep.httpcore.version>
<dep.impsort.version>1.8.0</dep.impsort.version>
<dep.jackson.version>2.13.4</dep.jackson.version>
<dep.jackson.version>2.15.2</dep.jackson.version>
<dep.jakarta.xml.bind-api.version>3.0.1</dep.jakarta.xml.bind-api.version>
<dep.jaxb.runtime.version>3.0.1</dep.jaxb.runtime.version>
<dep.jdom2.version>2.0.6.1</dep.jdom2.version>
Expand Down Expand Up @@ -106,26 +106,6 @@
<artifactId>logback-classic</artifactId>
<version>${dep.logback.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${dep.jackson.version}.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<version>${dep.jackson.version}</version>
</dependency>
<dependency>
<groupId>com.github.spullara.mustache.java</groupId>
<artifactId>compiler</artifactId>
Expand Down Expand Up @@ -156,31 +136,6 @@
<artifactId>picocli</artifactId>
<version>${dep.picocli.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-graphite</artifactId>
<version>${dep.dropwizard.metrics.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-healthchecks</artifactId>
<version>${dep.dropwizard.metrics.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-jmx</artifactId>
<version>${dep.dropwizard.metrics.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-jvm</artifactId>
<version>${dep.dropwizard.metrics.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-servlets</artifactId>
<version>${dep.dropwizard.metrics.version}</version>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
Expand Down Expand Up @@ -271,6 +226,20 @@
<artifactId>popper.js</artifactId>
<version>${dep.webjars.popper.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${dep.jackson.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-bom</artifactId>
<version>${dep.dropwizard.metrics.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-bom</artifactId>
Expand Down Expand Up @@ -401,11 +370,6 @@
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<version>3.1.7</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-plus</artifactId>
Expand Down Expand Up @@ -595,16 +559,16 @@
<artifactId>impsort-maven-plugin</artifactId>
<version>${dep.impsort.version}</version>
<configuration>
<groups>java.,javax.,*</groups>
<groups>emissary,*,java</groups>
<removeUnused>true</removeUnused>
<staticGroups>*</staticGroups>
<staticAfter>true</staticAfter>
</configuration>
<executions>
<execution>
<id>sort-java-imports</id>
<goals>
<goal>sort</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
</plugin>
Expand Down Expand Up @@ -925,8 +889,8 @@
</exceptions>
<printEqualFiles>false</printEqualFiles>
<failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
<failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
<failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
<failBuildInCaseOfEqualContentConflict>true</failBuildInCaseOfEqualContentConflict>
<failBuildInCaseOfConflict>true</failBuildInCaseOfConflict>
<checkCompileClasspath>true</checkCompileClasspath>
<checkRuntimeClasspath>true</checkRuntimeClasspath>
<checkTestClasspath>true</checkTestClasspath>
Expand Down Expand Up @@ -968,6 +932,11 @@
<artifactId>versions-maven-plugin</artifactId>
<version>${dep.versions.maven.plugin.version}</version>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.7.9</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -1362,6 +1331,22 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<configuration>
<outputFormat>json</outputFormat>
<schemaVersion>1.3</schemaVersion>
</configuration>
<executions>
<execution>
<goals>
<goal>makeAggregateBom</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand All @@ -1380,32 +1365,8 @@
<artifactId>sortpom-maven-plugin</artifactId>
</plugin>
<plugin>
<!-- Sort java imports -->
<groupId>net.revelc.code</groupId>
<artifactId>impsort-maven-plugin</artifactId>
<version>${dep.impsort.version}</version>
<configuration>
<groups>emissary,*,java</groups>
<staticGroups>*</staticGroups>
<staticAfter>true</staticAfter>
<removeUnused>true</removeUnused>
</configuration>
<executions>
<execution>
<id>impsort-sources</id>
<goals>
<goal>sort</goal>
</goals>
<phase>generate-sources</phase>
</execution>
<execution>
<id>impsort-test-sources</id>
<goals>
<goal>sort</goal>
</goals>
<phase>generate-test-sources</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
Expand Down
8 changes: 4 additions & 4 deletions src/main/config/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
</encoder>
</appender>

<!-- Enable output metrics logging by creating an environment variable of "ObjectTrace=true" -->
<if condition="&quot;${ObjectTrace}&quot;.equals(&quot;true&quot;)">
<!-- Enable output metrics logging by creating an environment variable of "LOG_OBJECT_TRACE=true" -->
<if condition="&quot;${LOG_OBJECT_TRACE}&quot;.equals(&quot;true&quot;)">
<then>
<appender name="OBJECT-TRACE" class="emissary.util.CustomRolloverLogbackAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder">
Expand All @@ -36,9 +36,9 @@
<message>[ignore]</message>
</fieldNames>
</encoder>
<file>logs/${emissary.node.name}-${emissary.node.port}-object-trace.log</file>
<file>${emissary.output.root}/objectTrace/${emissary.node.name}-${emissary.node.port}-object-trace.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>logs/${emissary.node.name}-${emissary.node.port}-object-trace.log.%d{yyyyMMdd-HHmm}</fileNamePattern>
<fileNamePattern>${emissary.output.root}/objectTrace/${emissary.node.name}-${emissary.node.port}-object-trace.log.%d{yyyyMMdd-HHmm}</fileNamePattern>
</rollingPolicy>
</appender>

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/emissary/client/EmissaryClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ public class EmissaryClient {
// some default objects to use
private static final BasicCredentialsProvider CRED_PROV = new BasicCredentialsProvider();
protected static final int ANY_PORT = -1;
@Nullable
protected static final String ANY_HOST = null;

@Nullable
private static CloseableHttpClient staticClient = null;
@Nullable
private static RequestConfig staticRequestConfig = null;
@Nullable
private static ConnectionConfig staticConnectionConfig = null;

// static config variables
Expand Down
Loading

0 comments on commit 3663946

Please sign in to comment.