Skip to content

Commit

Permalink
elf4j implementation
Browse files Browse the repository at this point in the history
* elf4j implementation

* Implementation

* Fix javadoc

* Update README

* Update README

* Update README

* Add the integration test

* Update README

* Update README

* Update README

* Add the package-info, TOC to README

* Impove integration tests for commons-logging, jdk-platform-logging and slf4j

* Add an integration test

* Bump org.apache.maven.plugins:maven-compiler-plugin

Bumps [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.13.0 to 3.14.0.
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](apache/maven-compiler-plugin@maven-compiler-plugin-3.13.0...maven-compiler-plugin-3.14.0)

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

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

* Bump org.apache.maven.plugins:maven-clean-plugin from 3.4.0 to 3.4.1

Bumps [org.apache.maven.plugins:maven-clean-plugin](https://github.com/apache/maven-clean-plugin) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/apache/maven-clean-plugin/releases)
- [Commits](apache/maven-clean-plugin@maven-clean-plugin-3.4.0...maven-clean-plugin-3.4.1)

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

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

* Ignore artifacts that have already been published

* Prepare next release

* Update versions, add README to BOM module

* Add styles to javadocs

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
vitalijr2 and dependabot[bot] authored Feb 21, 2025
1 parent 0497ca5 commit 520a819
Show file tree
Hide file tree
Showing 63 changed files with 1,339 additions and 85 deletions.
7 changes: 4 additions & 3 deletions THIRD-PARTY.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

Lists of 13 third-party dependencies.
(Apache License version 2.0) Apache Commons Logging (commons-logging:commons-logging:1.3.4 - https://commons.apache.org/proper/commons-logging/)
Lists of 14 third-party dependencies.
(Apache License version 2.0) Apache Commons Logging (commons-logging:commons-logging:1.3.5 - https://commons.apache.org/proper/commons-logging/)
(MIT License) elf4j (io.github.elf4j:elf4j:4.1.0 - https://github.com/elf4j/elf4j)
(Apache License version 2.0) Byte Buddy (without dependencies) (net.bytebuddy:byte-buddy:1.15.11 - https://bytebuddy.net/byte-buddy)
(Apache License version 2.0) Byte Buddy agent (net.bytebuddy:byte-buddy-agent:1.15.11 - https://bytebuddy.net/byte-buddy-agent)
(Apache License version 2.0) org.apiguardian:apiguardian-api (org.apiguardian:apiguardian-api:1.1.2 - https://github.com/apiguardian-team/apiguardian)
(Apache License version 2.0) JetBrains Java Annotations (org.jetbrains:annotations:26.0.1 - https://github.com/JetBrains/java-annotations)
(Apache License version 2.0) JetBrains Java Annotations (org.jetbrains:annotations:26.0.2 - https://github.com/JetBrains/java-annotations)
(Eclipse Public License - v 2.0) JUnit Jupiter API (org.junit.jupiter:junit-jupiter-api:5.11.4 - https://junit.org/junit5/)
(Eclipse Public License - v 2.0) JUnit Platform Commons (org.junit.platform:junit-platform-commons:1.11.4 - https://junit.org/junit5/)
(MIT License) mockito-core (org.mockito:mockito-core:5.15.2 - https://github.com/mockito/mockito)
Expand Down
22 changes: 14 additions & 8 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,43 @@
<artifactId>mock-loggers-commons-logging</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>test</scope>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>
<dependency>
<artifactId>mock-loggers-core</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>test</scope>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>
<dependency>
<artifactId>mock-loggers-elf4j</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>test</scope>
<version>1.2.0</version>
</dependency>
<dependency>
<artifactId>mock-loggers-jdk-platform-logging</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>test</scope>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>
<dependency>
<artifactId>mock-loggers-slf4j</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>test</scope>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>
<dependency>
<artifactId>mock-loggers-tinylog-provider</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>test</scope>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>
<dependency>
<artifactId>mock-loggers-tinylog-writer</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>test</scope>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand All @@ -50,7 +56,7 @@
<parent>
<artifactId>mock-loggers</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<profiles>
<profile>
Expand All @@ -68,5 +74,5 @@
<id>release</id>
</profile>
</profiles>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</project>
55 changes: 55 additions & 0 deletions bom/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Bill of Materials

The Bill Of Material is a special POM file that groups dependency versions that
are known to be valid and tested to work together.[>>][using-bom]

[![Java Version][java-version]][jdk-download]
![Maven Central Last Update][maven-central-last-update]
[![Maven Central][maven-central]][maven-central-link]

## Table of Contents

<!--ts-->
* [How to use](#how-to-use)

<!-- Created by https://github.com/ekalinin/github-markdown-toc -->
<!-- Added by: r2, at: Fri Feb 21 08:07:43 PM EET 2025 -->

<!--te-->

## How to use

Just put a test dependency to your POM:

```xml
<dependencies>
<dependency>
<artifactId>mock-loggers-*****</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<artifactId>mock-loggers-bom</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>import</scope>
<type>pom</type>
<version>1.2.0</version>
</dependency>
</dependencies>
</dependencyManagement>
```

[using-bom]: https://reflectoring.io/maven-bom/#introducing-mavens-bill-of-material-bom "Using Maven’s Bill of Materials (BOM), Abdelbaki BEN ELHAJ SLIMENE"

[java-version]: https://img.shields.io/static/v1?label=Java&message=11&color=blue&logoColor=E23D28

[jdk-download]: https://www.oracle.com/java/technologies/downloads/#java11

[maven-central-last-update]: https://img.shields.io/maven-central/last-update/io.github.vitalijr2.logging/mock-loggers-bom

[maven-central]: https://img.shields.io/maven-central/v/io.github.vitalijr2.logging/mock-loggers-bom

[maven-central-link]: https://central.sonatype.com/artifact/io.github.vitalijr2.logging/mock-loggers-bom?smo=true
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## 1.2.0 - 2025-02-21 - elf4j

### Added

* BOM module
* Use BOM in integration tests
* Add elf4j module

## 1.1.1 - 2025-01-02 - Modules

Expand Down
10 changes: 3 additions & 7 deletions commons-logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,21 @@
<dependency>
<artifactId>mock-loggers-core</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>
<dependency>
<artifactId>mockito-core</artifactId>
<groupId>org.mockito</groupId>
<scope>provided</scope>
</dependency>
<dependency>
<artifactId>mockito-junit-jupiter</artifactId>
<groupId>org.mockito</groupId>
</dependency>
</dependencies>
<description>Mock loggers for Apache Commons Logging backed by Mockito.</description>
<modelVersion>4.0.0</modelVersion>
<name>Mock loggers for Apache Commons Logging</name>
<parent>
<artifactId>mock-loggers</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</parent>
<profiles>
<profile>
Expand Down Expand Up @@ -121,5 +117,5 @@
<properties>
<commons-logging.version>1.3.5</commons-logging.version>
</properties>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</project>
4 changes: 2 additions & 2 deletions commons-logging/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ backed by [Mockito][].
* [How to use](#how-to-use)

<!-- Created by https://github.com/ekalinin/github-markdown-toc -->
<!-- Added by: r2, at: Sun Feb 9 09:27:55 PM EET 2025 -->
<!-- Added by: r2, at: Fri Feb 21 08:07:43 PM EET 2025 -->

<!--te-->

Expand All @@ -32,7 +32,7 @@ Just put a test dependency to your POM:
<artifactId>mock-loggers-commons-logging</artifactId>
<groupId>io.github.vitalijr2.logging</groupId>
<scope>test</scope>
<version>1.1.1</version>
<version>1.2.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion commons-logging/src/it/hello-commons-logging-world/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<groupId>@project.groupId@</groupId>
<scope>import</scope>
<type>pom</type>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
27 changes: 27 additions & 0 deletions commons-logging/src/main/javadoc/resources/mock-loggers.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.tooltip {
border-bottom: 1px dotted #4d7a97;
display: inline-block;
position: relative;
}

.tooltip .tooltiptext {
background-color: #f8981d;
border: 1px dotted #4d7a97;
-moz-border-radius: 6px;
-ms-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
color: #253441;
left: 113%;
padding: 5px 3px;
position: absolute;
text-align: center;
top: -5px;
visibility: hidden;
width: 97px;
z-index: 1;
}

.tooltip:hover .tooltiptext {
visibility: visible;
}
4 changes: 4 additions & 0 deletions commons-logging/src/main/javadoc/resources/prism.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 520a819

Please sign in to comment.