Skip to content

Enforce dependency management #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 65 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
15e39ec
enable compiler warnings and linting
bpkroth Dec 7, 2023
d66eaba
address some trailing whitespace warnings
bpkroth Dec 7, 2023
9fde340
Merge branch 'main' into strict-compiler
bpkroth Dec 8, 2023
3b3906c
compiler fixups
bpkroth Dec 8, 2023
092e06d
compiler fixups
bpkroth Dec 8, 2023
8038636
add some warning suppressions for unused variables
bpkroth Dec 8, 2023
139c953
omit those entirely
bpkroth Dec 8, 2023
259cca6
fixups
bpkroth Dec 8, 2023
77c74ae
whitespace
bpkroth Dec 8, 2023
7abe2e8
use autoclose
bpkroth Dec 8, 2023
a3f7fec
remove more suppressed cast issues
bpkroth Dec 8, 2023
554406d
unnecessary cast
bpkroth Dec 8, 2023
79e7187
avoid unused errors
bpkroth Dec 8, 2023
d93caf7
add serialization requirements
bpkroth Dec 8, 2023
7f89237
whitespace
bpkroth Dec 8, 2023
ff5507d
more minor avoid raw type issues
bpkroth Dec 8, 2023
fc97c1e
in the couple of utility classes, just suppress more warnings
bpkroth Dec 8, 2023
5220c3f
convert throw type to avoid InterruptedException handling warnings
bpkroth Dec 8, 2023
df432f3
docs
bpkroth Dec 8, 2023
d93c61d
enable deprecations
bpkroth Dec 8, 2023
b0398b1
more compiler warning fixups
bpkroth Dec 8, 2023
db891e9
Merge branch 'main' into strict-compiler
bpkroth Dec 8, 2023
c53ea80
revert order
bpkroth Dec 8, 2023
e5e9c00
need the col++
bpkroth Dec 8, 2023
94385e7
address some unused and other lint issues
bpkroth Dec 8, 2023
448ca24
fixup
bpkroth Dec 8, 2023
1e411d4
fixup
bpkroth Dec 8, 2023
8e01aa7
start to enforce dependency management
bpkroth Dec 8, 2023
2937b46
add a readme with additional developer notes per PR suggestion
bpkroth Dec 11, 2023
4b22f8d
tweak comment
bpkroth Dec 11, 2023
fa34754
add more developer notes
bpkroth Dec 11, 2023
be0f414
include some extension recommendations
bpkroth Dec 11, 2023
43b5cee
update extensions
bpkroth Dec 11, 2023
10d9c9f
Merge branch 'strict-compiler' into enforce-dependency-management
bpkroth Dec 11, 2023
cbfe70a
add dependency analysis extension
bpkroth Dec 11, 2023
0f4729f
enforce validation of dependencies at build time
bpkroth Dec 11, 2023
3e85401
add some dependencies and exceptions
bpkroth Dec 11, 2023
910fdd1
comments about some exceptions
bpkroth Dec 11, 2023
91a1350
remove an unused dependency
bpkroth Dec 11, 2023
63a678e
add an undeclared dependency
bpkroth Dec 11, 2023
cdd30a2
mark a dependency as test scope only
bpkroth Dec 11, 2023
af8f624
mark a dependency as compile time only
bpkroth Dec 11, 2023
bf50f74
remove an unused dependency
bpkroth Dec 11, 2023
95a75ef
Revert "remove an unused dependency"
bpkroth Dec 11, 2023
a63fccb
mark runtime dependencies
bpkroth Dec 11, 2023
504bfe9
more dependency fixups
bpkroth Dec 11, 2023
e199adc
Revert "remove an unused dependency"
bpkroth Dec 11, 2023
7d2c068
fixup
bpkroth Dec 11, 2023
4556f10
address more unused warnings
bpkroth Dec 11, 2023
f5338d9
Merge branch 'strict-compiler' into enforce-dependency-management
bpkroth Dec 11, 2023
eb29a6d
missing dep
bpkroth Dec 11, 2023
0e2fed6
ignore another error
bpkroth Dec 11, 2023
5939e2d
ignore another error
bpkroth Dec 11, 2023
4f0fe4c
Merge branch 'main' into strict-compiler
bpkroth Dec 13, 2023
ebb52de
addressing some new serialization warnings
bpkroth Dec 13, 2023
adb1a96
comments
bpkroth Dec 13, 2023
acd47aa
adjust constructor to avoid this-escape errors
bpkroth Dec 13, 2023
d350c6e
convert a pile of classes to 'final' to avoid this-escape errors
bpkroth Dec 13, 2023
3437b2d
auto-whitespace
bpkroth Dec 13, 2023
b2e7489
comments about this-escape warnings
bpkroth Dec 13, 2023
0f33ee0
Merge branch 'strict-compiler' into enforce-dependency-management
bpkroth Dec 13, 2023
22850dd
Merge branch 'main' into enforce-dependency-management
bpkroth Dec 13, 2023
62d1e15
bad merge
bpkroth Dec 13, 2023
ed473f6
Merge branch 'main' into enforce-dependency-management
bpkroth Dec 13, 2023
62fdadd
Merge branch 'main' into enforce-dependency-management
bpkroth Dec 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"huntertran.auto-markdown-toc",
"redhat.fabric8-analytics",
"vscjava.vscode-java-pack"
]
}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ jobs:
cache: 'maven'
distribution: 'temurin'

- name: Package with Maven
run: mvn -B package -P ${{matrix.profile}} --file pom.xml -DskipTests -D descriptors=src/main/assembly/tgz.xml
- name: Package and verify with Maven
run: |
mvn -B package verify -P ${{matrix.profile}} --file pom.xml -DskipTests -D descriptors=src/main/assembly/tgz.xml

- name: Upload TGZ artifact
uses: actions/upload-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"EditorConfig.EditorConfig",
"github.vscode-pull-request-github",
"huntertran.auto-markdown-toc",
"redhat.fabric8-analytics",
"vscjava.vscode-java-pack"
]
}
67 changes: 65 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.6.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
Expand All @@ -103,6 +104,7 @@
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.30</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
Expand Down Expand Up @@ -144,6 +146,7 @@
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>3.1.4</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
Expand All @@ -163,6 +166,7 @@
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-spanner-jdbc</artifactId>
<version>2.10.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
Expand All @@ -182,6 +186,7 @@
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.6.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
Expand All @@ -201,6 +206,7 @@
<groupId>org.apache.phoenix</groupId>
<artifactId>phoenix-client-hbase-2.4</artifactId>
<version>5.1.3</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
Expand All @@ -220,6 +226,7 @@
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>11.2.3.jre17</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
Expand All @@ -233,6 +240,7 @@
</dependency>

<dependency>
<!-- Drop-in replacement of log4j -->
<groupId>org.slf4j</groupId>
<artifactId>slf4j-reload4j</artifactId>
<version>2.0.9</version>
Expand All @@ -245,6 +253,7 @@
</dependency>

<dependency>
<!-- For templated benchmark -->
<groupId>commons-jxpath</groupId>
<artifactId>commons-jxpath</artifactId>
<version>1.3</version>
Expand All @@ -268,6 +277,13 @@
<version>2.15.1</version>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.10.0</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
Expand All @@ -293,15 +309,18 @@
</dependency>

<dependency>
<!-- Used for (currently manual) code generation from xml schema files. -->
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>4.0.4</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.7.2</version>
<scope>test</scope>
</dependency>

<dependency>
Expand All @@ -319,6 +338,13 @@
</dependency>

<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>commons-compiler</artifactId>
<version>3.1.11</version>
</dependency>

<dependency>
<!-- Used by the templated benchmark for internal compiling proceedures. -->
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<version>3.1.11</version>
Expand Down Expand Up @@ -365,6 +391,21 @@
</compilerArgs>
</configuration>
</plugin>
<!-- TODO: Use PMD to check for various code health things.plugin>
Invoked with `mvn pmd:check` or `mvn verify`
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.21.2</version>
<configuration>
<excludeRoots>
<excludeRoot>target/generated-sources</excludeRoot>
<excludeRoot>target/generated-test-sources</excludeRoot>
</excludeRoots>
<linkXRef>true</linkXRef>
</configuration>
</plugin>
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down Expand Up @@ -461,7 +502,30 @@
<goal>analyze-only</goal>
</goals>
<configuration>
<failOnWarning>false</failOnWarning>
<failOnWarning>true</failOnWarning>

<ignoredUnusedDeclaredDependencies>
<!-- Used for (currently manual) code generation from xml schema files. -->
<ignoredUnusedDeclaredDependency>org.glassfish.jaxb:jaxb-runtime:jar</ignoredUnusedDeclaredDependency>
<!-- Drop-in replacement of log4j -->
<ignoredUnusedDeclaredDependency>org.slf4j:slf4j-reload4j:jar</ignoredUnusedDeclaredDependency>
<!-- Used by the templated benchmark for internal compiling proceedures. -->
<ignoredUnusedDeclaredDependency>org.codehaus.janino:janino:jar</ignoredUnusedDeclaredDependency>
<!-- Used by the templated benchmark. -->
<ignoredUnusedDeclaredDependency>commons-jxpath:commons-jxpath:jar</ignoredUnusedDeclaredDependency>

<!--
Need to ignore the following profile specific dependencies since they're runtime only.
-->
<ignoredUnusedDeclaredDependency>org.postgresql:postgresql:jar</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>mysql:mysql-connector-java:jar</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>com.oracle.database.jdbc:ojdbc11:jar</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>org.mariadb.jdbc:mariadb-java-client:jar</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>com.google.cloud:google-cloud-spanner-jdbc:jar</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>org.apache.phoenix:phoenix-client-hbase-2.4:jar</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>com.microsoft.sqlserver:mssql-jdbc:jar</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>org.xerial:sqlite-jdbc:jar</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
</execution>
</executions>
Expand All @@ -476,5 +540,4 @@
</plugin>
</plugins>
</build>

</project>