Skip to content

Commit

Permalink
Update versions, add README to BOM module
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalijr2 committed Feb 21, 2025
1 parent af03a71 commit 78f439e
Show file tree
Hide file tree
Showing 25 changed files with 107 additions and 54 deletions.
18 changes: 9 additions & 9 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +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-SNAPSHOT</version>
<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 @@ -56,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 @@ -74,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
6 changes: 3 additions & 3 deletions commons-logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<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>
Expand All @@ -69,7 +69,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 Down Expand Up @@ -117,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
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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 @@ -84,5 +84,5 @@
<id>prepare-and-check</id>
</profile>
</profiles>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</project>
6 changes: 3 additions & 3 deletions elf4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<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>
Expand All @@ -73,7 +73,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 Down Expand Up @@ -121,5 +121,5 @@
<properties>
<elf4j.version>4.1.0</elf4j.version>
</properties>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</project>
4 changes: 2 additions & 2 deletions elf4j/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* [How to use](#how-to-use)

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

<!--te-->

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

Expand Down
5 changes: 1 addition & 4 deletions elf4j/src/it/hello-elf4j-world/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,10 @@
<dependencies>
<dependency>
<artifactId>mock-loggers-bom</artifactId>
<!--
<groupId>@project.groupId@</groupId>
-->
<groupId>io.github.vitalijr2.logging</groupId>
<scope>import</scope>
<type>pom</type>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
6 changes: 3 additions & 3 deletions jdk-platform-logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<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>
Expand All @@ -64,7 +64,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 Down Expand Up @@ -93,5 +93,5 @@
<id>run-its</id>
</profile>
</profiles>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</project>
4 changes: 2 additions & 2 deletions jdk-platform-logging/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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:44 PM EET 2025 -->

<!--te-->

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -544,5 +544,5 @@
<url>https://github.com/vitalijr2/mock-loggers</url>
</scm>
<url>https://github.com/vitalijr2/mock-loggers</url>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</project>
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Different logging services can be tested using mock loggers backed by [Mockito][
* [License](#license)

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

<!--te-->

Expand Down
6 changes: 3 additions & 3 deletions slf4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<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>
Expand All @@ -69,7 +69,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 Down Expand Up @@ -117,5 +117,5 @@
<properties>
<slf4j.version>2.0.16</slf4j.version>
</properties>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
</project>
4 changes: 2 additions & 2 deletions slf4j/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* [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:45 PM EET 2025 -->

<!--te-->

Expand All @@ -31,7 +31,7 @@ Just put a test dependency to your POM:
<artifactId>mock-loggers-slf4j</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 slf4j/src/it/hello-slf4j-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
Loading

0 comments on commit 78f439e

Please sign in to comment.