Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Add BOMs for jUnit and Mockito, update badges
Browse files Browse the repository at this point in the history
* Add BOMs for jUnit5 and Mockito; update badges on REAMDE and Javadoc

* Regroup badges

* jUnit Jupiter -> jUnit

* Add GitHub Check Runs Badge

* Add GitHub Check Runs Badge

* Add GitHub Check Runs Badge
  • Loading branch information
vitalijr2 authored Oct 25, 2024
1 parent c8a7971 commit 2f1bbfc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 26 deletions.
29 changes: 20 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
<links>
<link>https://javadoc.io/doc/org.mockito/mockito-core/${mockito.version}/</link>
<link>https://javadoc.io/doc/org.junit.jupiter/junit-jupiter-api/${junit-jupiter.version}/</link>
<link>https://javadoc.io/doc/org.junit.jupiter/junit-jupiter-api/${junit.version}/</link>
</links>
<offline>false</offline>
<show>public</show>
Expand Down Expand Up @@ -287,19 +287,16 @@
<artifactId>mockito-core</artifactId>
<groupId>org.mockito</groupId>
<scope>provided</scope>
<version>${mockito.version}</version>
</dependency>
<dependency>
<artifactId>junit-jupiter-api</artifactId>
<groupId>org.junit.jupiter</groupId>
<scope>provided</scope>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<artifactId>junit-platform-commons</artifactId>
<groupId>org.junit.platform</groupId>
<scope>provided</scope>
<version>${junit-platform.version}</version>
</dependency>
<dependency>
<artifactId>annotations</artifactId>
Expand All @@ -312,19 +309,16 @@
<artifactId>junit-jupiter-engine</artifactId>
<groupId>org.junit.jupiter</groupId>
<scope>test</scope>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<artifactId>junit-jupiter-params</artifactId>
<groupId>org.junit.jupiter</groupId>
<scope>test</scope>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<artifactId>mockito-junit-jupiter</artifactId>
<groupId>org.mockito</groupId>
<scope>test</scope>
<version>${mockito.version}</version>
</dependency>
<dependency>
<artifactId>hamcrest</artifactId>
Expand All @@ -333,6 +327,24 @@
<version>3.0</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<artifactId>mockito-bom</artifactId>
<groupId>org.mockito</groupId>
<scope>import</scope>
<type>pom</type>
<version>${mockito.version}</version>
</dependency>
<dependency>
<artifactId>junit-bom</artifactId>
<groupId>org.junit</groupId>
<scope>import</scope>
<type>pom</type>
<version>${junit.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<description>JDK Platform Logging Service with mock loggers backed by Mockito.</description>
<developers>
<developer>
Expand Down Expand Up @@ -440,8 +452,7 @@
<properties>
<java.version>11</java.version>
<javadoc-plugin.version>3.10.1</javadoc-plugin.version>
<junit-jupiter.version>5.11.3</junit-jupiter.version>
<junit-platform.version>1.11.3</junit-platform.version>
<junit.version>5.11.3</junit.version>
<mockito.version>5.14.2</mockito.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Expand Down
22 changes: 12 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

JDK Platform Logging Service with mock loggers backed by [Mockito][].

[![Codacy Badge][codacy-badge]][codacy-badge-link]
[![Codacy Coverage][codacy-coverage]][codacy-coverage-link]
[![Java Version][java-version]][jdk-download]
![jUnit Version][junit-version]
![Mockito Version][mockito-version]
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html)
![Maven Central Last Update](https://img.shields.io/maven-central/last-update/io.github.vitalijr2.logging/mock-jdk-platform-logging)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.vitalijr2.logging/mock-jdk-platform-logging)](https://search.maven.org/artifact/io.github.vitalijr2.logging/mock-jdk-platform-logging)
[![Javadoc](https://javadoc.io/badge2/io.github.vitalijr2.logging/mock-jdk-platform-logging/javadoc.svg)](https://javadoc.io/doc/io.github.vitalijr2.logging/mock-jdk-platform-logging)
[![Java Version][java-version]][jdk-download]
![jUnit Jupiter Version][junit-jupiter-version]
![jUnit Platform Version][junit-platform-version]
![Mockito Version][mockito-version]
[![GitHub master check runs][github-master-check-runs]][github-master-check-runs-link]
[![Codacy Badge][codacy-badge]][codacy-badge-link]
[![Codacy Coverage][codacy-coverage]][codacy-coverage-link]

## How to use

Expand Down Expand Up @@ -134,10 +135,13 @@ See the License for the specific language governing permissions and
limitations under the License.

[Apache License v2.0](LICENSE)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html)

[Mockito]: https://site.mockito.org

[github-master-check-runs]: https://img.shields.io/github/check-runs/vitalijr2/mock-jdk-platform-logging/master

[github-master-check-runs-link]: https://github.com/vitalijr2/mock-jdk-platform-logging/actions?query=branch%3Amaster

[codacy-badge]: https://app.codacy.com/project/badge/Grade/9be380deaf3e40138ad306a40532289c

[codacy-badge-link]: https://app.codacy.com/gh/vitalijr2/mock-jdk-platform-logging/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
Expand All @@ -150,9 +154,7 @@ limitations under the License.

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

[junit-jupiter-version]: https://img.shields.io/static/v1?label=jUnit+Jupiter&message=5.11.3&color=blue&logo=junit5&logoColor=E23D28

[junit-platform-version]: https://img.shields.io/static/v1?label=jUnit+Platform&message=1.11.3&color=blue&logo=junit5&logoColor=E23D28
[junit-version]: https://img.shields.io/static/v1?label=jUnit&message=5.11.3&color=blue&logo=junit5&logoColor=E23D28

[mockito-version]: https://img.shields.io/static/v1?label=Mockito&message=5.14.2&color=blue&logoColor=E23D28

Expand Down
9 changes: 2 additions & 7 deletions src/main/javadoc/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@
<body>
<p>JDK Platform Logging Service with mock loggers backed by <a href="https://site.mockito.org/">Mockito</a>.</p>
<p id="badges">
<a href="https://app.codacy.com/gh/vitalijr2/mock-jdk-platform-logging/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img
alt="Codacy Badge" src="https://app.codacy.com/project/badge/Grade/9be380deaf3e40138ad306a40532289c"></a>
<a href="https://app.codacy.com/gh/vitalijr2/mock-jdk-platform-logging/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage"><img
alt="Codacy Coverage"
src="https://app.codacy.com/project/badge/Coverage/9be380deaf3e40138ad306a40532289c"></a><br>
<a href="https://www.oracle.com/java/technologies/downloads/#java11"><img
alt="Java Version"
src="https://img.shields.io/static/v1?label=java&message=11&color=blue&logo=java&logoColor=E23D28"></a>
<img alt="jUnit Jupiter Version"
src="https://img.shields.io/static/v1?label=jUnit+Jupiter&message=5.11.3&color=blue&logo=junit5&logoColor=E23D28">
<img alt="jUnit Platform Version"
src="https://img.shields.io/static/v1?label=jUnit+Platform&message=1.11.3&color=blue&logo=junit5&logoColor=E23D28">
<img alt="Mockito Version"
src="https://img.shields.io/static/v1?label=Mockito&message=5.14.2&color=blue&logoColor=E23D28">
<a href="https://www.apache.org/licenses/LICENSE-2.0.html"><img
alt="License" src="https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat"></a>
</p>
<p>
The most basic usage example looks like this:
Expand Down

0 comments on commit 2f1bbfc

Please sign in to comment.