1
0
Commit Graph

224 Commits

Author SHA1 Message Date
Gary Gregory
6777344670 Remove obsolete comment 2023-11-26 14:36:05 -05:00
Piotr P. Karwasz
80b2f78eb9 Set java.logging as optional module (#183)
Commons Logging has a fallback simple logger that is used if the
`java.util.logging` package is not present.

Originally this only could happen with Java 1.3, but sinc Java 9 the
user can disable the `java.logging` JPMS module. Commons Logging will
work anyway.

This PR slightly modifies the inherited Moditect configuration to add a
`static` (i.e. optional) modifier to the `java.logging` module.
2023-11-25 15:29:00 -05:00
Gary Gregory
b9785548d6 Enable PMD check in default Maven goal 2023-11-25 11:41:45 -05:00
Gary Gregory
1b1879d35d Bump commons-parent from 64 to 65 2023-11-25 11:18:26 -05:00
Gary Gregory
282408972e Remove obsolete option for PMD 2023-11-19 09:21:35 -05:00
Gary Gregory
23430edbb4 The parent POM defines JApiCmp instead of CLIRR 2023-11-19 09:15:59 -05:00
Gary Gregory
c64aa18b34 Replace FindBugs with SpotBugs 2023-11-19 09:10:37 -05:00
Gary Gregory
b10322e41e Use Checkstyle sortStaticImportsAlphabetically 2023-11-19 09:01:36 -05:00
Gary Gregory
0b9cd8bb83 Remove old comment 2023-11-19 08:55:21 -05:00
Gary Gregory
cd210b5d9b Use HTTPS 2023-11-19 08:43:46 -05:00
Gary Gregory
d082a5dc2a Bump commons-parent from 59 to 64 2023-11-19 08:41:24 -05:00
Piotr P. Karwasz
6ad06e9074 LOGGING-185: Fix failing tests (#180)
* Fix names of deployed artifacts

We remove the obsolete `finalName` property and fix the Maven Failsafe
executions.

* Fix failing tests

* Reenable integration tests

* Disable SecurityManager tests on Java 21

* Simplify build workflow

* Set `fail-fast` to false

* Fix NPEs caused by `String.trim()`

* Span a different JVM per test case
2023-11-18 19:36:11 -05:00
Piotr P. Karwasz
946711e0a6 Add support for Log4j API and SLF4J (#177)
The logging backends supported by the default `LogFactoryImpl` have all
reached their end-of-life (except JUL and `SimpleLog`). Third-generation
logging backends, such as Log4j Core, support multiple logger contexts
per application and therefore can not be handled by the simplified
caching mechanism in `LogFactoryImpl`.

This PR introduces two new `LogFactory` implementations,
`Log4j2LogFactory` and `Slf4jLogFactory`, that forward messages to the
Log4j API and SLF4J.

During initialization the three existing factories are checked in the
following order:
 1. the `Log4j2LogFactory` has highest priority, since the Log4j API can
    faithfully transmit messages of type `Object`,
 2. the `Slf4jLogFactory` is the next choice. However, if the
    Log4j-to-SLF4J bridge is present we log directly through SLF4J
    instead of the Log4j API.
 3. the legacy `LogFactoryImpl` has lowest priority.
2023-11-03 11:19:14 -04:00
Gary Gregory
830cebc584 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-logging.git 2023-10-27 14:56:59 -04:00
Gary Gregory
f9bc48b201 Add self 2023-10-27 07:50:52 -04:00
Gary Gregory
8dd3a59429 Fix Maven warning
[WARNING] Parameter 'headerFile' is unknown for plugin
'maven-checkstyle-plugin:3.2.2:check (default-cli)'
2023-10-26 11:58:35 -04:00
Sebb
0cb015a32e Pom is broken for the verify goal 2023-10-25 20:17:54 +01:00
Sebb
e4d68bb370 Standardise on verify goal 2023-10-25 16:57:18 +01:00
Piotr P. Karwasz
ca2cdfee81 [LOGGING-186] Replace custom code with ServiceLoader call (#171)
* Replace custom code with `ServiceLoader` call

* Files should end with an empty line

* Files should end with an empty line

* Comment empty block

* Comment empty block

---------

Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
2023-10-18 16:47:48 -04:00
Gary Gregory
863d5612c2 64 is OK locally but not on GitHub 2023-10-10 17:29:59 -04:00
Gary Gregory
e0ca622ebd Bump commons-parent 2023-10-10 15:23:26 -04:00
Gary Gregory
a8cb6995dc Remove duplicate property 2023-09-02 12:06:20 -04:00
Gary Gregory
e3923d5d59 Update release versions 2023-09-02 12:06:10 -04:00
Gary Gregory
b9464ace50 Fix Maven jar plugin invocation 2023-09-02 11:57:04 -04:00
Gary Gregory
3315279848 Comment 2023-08-30 14:21:23 -04:00
Gary Gregory
c628268427 Revert "Bump commons-parent from 59 to 61"
This reverts commit 4663b90b28.
2023-08-30 14:19:33 -04:00
Gary Gregory
4663b90b28 Bump commons-parent from 59 to 61 2023-08-30 14:12:37 -04:00
Gary Gregory
ca47bbc0b4 Bump commons-parent from 58 to 59 2023-07-28 13:29:30 -04:00
Gary Gregory
922588f99d Bump commons-parent from 57 to 58 2023-05-25 16:18:30 -04:00
dependabot[bot]
89e4c6218f Bump commons-parent from 56 to 57 (#143)
Bumps [commons-parent](https://github.com/apache/commons-parent) from 56 to 57.
- [Release notes](https://github.com/apache/commons-parent/releases)
- [Changelog](https://github.com/apache/commons-parent/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-parent/commits)

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-parent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-28 09:00:07 -04:00
Gary Gregory
dbe5aef085 Pick up maven-checkstyle-plugin version from parent 2023-01-13 16:57:45 -05:00
Gary Gregory
e13ac4a3a8 Pick up spotbugs-maven-plugin version from parent 2023-01-13 16:57:15 -05:00
Gary Gregory
ac12016c90 Pick up maven-assembly-plugin version from parent 2023-01-13 16:56:35 -05:00
Gary Gregory
7f50688adb Pick up maven-dependency-plugin version from parent 2023-01-13 16:56:19 -05:00
Gary Gregory
ff372e56f6 Pick up maven-checkstyle-plugin version from parent 2023-01-13 16:56:02 -05:00
Gary Gregory
cface88a71 Pick up maven-surefire-plugin version from parent 2023-01-13 16:55:24 -05:00
dependabot[bot]
74a82eebeb Bump maven-checkstyle-plugin from 3.2.0 to 3.2.1
Bumps [maven-checkstyle-plugin](https://github.com/apache/maven-checkstyle-plugin) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/apache/maven-checkstyle-plugin/releases)
- [Commits](https://github.com/apache/maven-checkstyle-plugin/compare/maven-checkstyle-plugin-3.2.0...maven-checkstyle-plugin-3.2.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-checkstyle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 21:30:18 +01:00
dependabot[bot]
72c688ad40 Bump maven-dependency-plugin from 3.4.0 to 3.5.0
Bumps [maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.4.0...maven-dependency-plugin-3.5.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-dependency-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 21:28:42 +01:00
Gary Gregory
cb9f35f502 Pick up maven-pmd-plugin version from parent 2023-01-12 13:24:45 -05:00
Gary Gregory
df98ec7eab Pick up maven-surefire-plugin version from parent POM 2023-01-10 11:21:30 -05:00
Gary Gregory
f616f17853 Pick up japicmp-maven-plugin version from parent POM 2023-01-10 11:00:21 -05:00
dependabot[bot]
8abe56f81d Bump commons-parent from 55 to 56 (#126)
Bumps [commons-parent](https://github.com/apache/commons-parent) from 55 to 56.
- [Release notes](https://github.com/apache/commons-parent/releases)
- [Changelog](https://github.com/apache/commons-parent/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-parent/commits)

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-parent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-03 14:06:48 -05:00
dependabot[bot]
0420183849 Bump commons-parent from 54 to 55 (#122)
Bumps [commons-parent](https://github.com/apache/commons-parent) from 54 to 55.
- [Release notes](https://github.com/apache/commons-parent/releases)
- [Changelog](https://github.com/apache/commons-parent/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/apache/commons-parent/commits)

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-parent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-16 10:49:41 -05:00
dependabot[bot]
431a58f8a8 Bump maven-dependency-plugin from 3.3.0 to 3.4.0 (#117)
Bumps [maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.3.0...maven-dependency-plugin-3.4.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-dependency-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-02 07:13:36 -05:00
Gary Gregory
da2caee5d7 Match PMD target JDK configuration to actual configuration 2022-10-25 07:31:41 -04:00
Gary Gregory
434abf7006 Pick up SpotBugs from parent POM 2022-10-25 07:29:36 -04:00
Gary Gregory
6e80d7e108 Replace Clirr with JApiCmp in default build 2022-10-25 07:19:06 -04:00
dependabot[bot]
b136ad3c5d Bump spotbugs-maven-plugin from 4.7.2.0 to 4.7.2.1
Bumps [spotbugs-maven-plugin](https://github.com/spotbugs/spotbugs-maven-plugin) from 4.7.2.0 to 4.7.2.1.
- [Release notes](https://github.com/spotbugs/spotbugs-maven-plugin/releases)
- [Commits](https://github.com/spotbugs/spotbugs-maven-plugin/compare/spotbugs-maven-plugin-4.7.2.0...spotbugs-maven-plugin-4.7.2.1)

---
updated-dependencies:
- dependency-name: com.github.spotbugs:spotbugs-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-22 00:35:08 +13:00
dependabot[bot]
62606f2797 Bump spotbugs from 4.7.2 to 4.7.3
Bumps [spotbugs](https://github.com/spotbugs/spotbugs) from 4.7.2 to 4.7.3.
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.7.2...4.7.3)

---
updated-dependencies:
- dependency-name: com.github.spotbugs:spotbugs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-21 23:58:35 +13:00
Gary Gregory
e4a84380f8 Bump junit from 4.13.2 to 5.9.1 Vintage 2022-09-25 11:21:15 -04:00