diff --git a/README.md b/README.md index 64ae9f85..546dca4b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Project Keeper Maven Plugin [![Build Status](https://github.com/exasol/project-keeper/actions/workflows/ci-build.yml/badge.svg)](https://github.com/exasol/project-keeper/actions/workflows/ci-build.yml) -Project keeper core: [![Maven Central – Project keeper core](https://img.shields.io/maven-central/v/com.exasol/project-keeper-core)](https://search.maven.org/artifact/com.exasol/project-keeper-core), Project Keeper Command Line Interface: [![Maven Central – Project Keeper Command Line Interface](https://img.shields.io/maven-central/v/com.exasol/project-keeper-cli)](https://search.maven.org/artifact/com.exasol/project-keeper-cli), Project keeper maven plugin: [![Maven Central – Project keeper maven plugin](https://img.shields.io/maven-central/v/com.exasol/project-keeper-maven-plugin)](https://search.maven.org/artifact/com.exasol/project-keeper-maven-plugin) +Project keeper core: [![Maven Central – Project keeper core](https://img.shields.io/maven-central/v/com.exasol/project-keeper-core)](https://search.maven.org/artifact/com.exasol/project-keeper-core), Project Keeper Command Line Interface: [![Maven Central – Project Keeper Command Line Interface](https://img.shields.io/maven-central/v/com.exasol/project-keeper-cli)](https://search.maven.org/artifact/com.exasol/project-keeper-cli), Project keeper maven plugin: [![Maven Central – Project keeper maven plugin](https://img.shields.io/maven-central/v/com.exasol/project-keeper-maven-plugin)](https://search.maven.org/artifact/com.exasol/project-keeper-maven-plugin) This maven plugin checks and unifies the project's structure according to the Exasol integration team's repository standards. diff --git a/doc/changes/changes_2.9.4.md b/doc/changes/changes_2.9.4.md index 50e8786d..9701b5a3 100644 --- a/doc/changes/changes_2.9.4.md +++ b/doc/changes/changes_2.9.4.md @@ -14,11 +14,16 @@ Implementation-Version: ${project.version} Implementation-Vendor: ${project.organization.name} ``` +This release also changes the Maven Central badge label in the `README.md` file to contain `–` (–) instead of a unicode endash `\ux2013`. This makes it easier to copy the expected text in case the file is outdated. + +Please note that when upgrading to Project Keeper 2.9.4 you will need to update `README.md` and replace `–` with `–`. + ## Features * #428: Fixed failure of GitHub Workflow `project-keeper-verify.yml` when no NPM modules are present * #430: Updated dependencies * #427: Added `addDefaultImplementationEntries` attribute to `maven-assembly-plugin` +* #359: Changed expected Maven Central badge label ## Dependency Updates diff --git a/project-keeper/src/main/java/com/exasol/projectkeeper/validators/ReadmeFileValidator.java b/project-keeper/src/main/java/com/exasol/projectkeeper/validators/ReadmeFileValidator.java index 1111d246..690723f2 100644 --- a/project-keeper/src/main/java/com/exasol/projectkeeper/validators/ReadmeFileValidator.java +++ b/project-keeper/src/main/java/com/exasol/projectkeeper/validators/ReadmeFileValidator.java @@ -171,7 +171,7 @@ private String getDeploymentBadge(final AnalyzedSource source, final boolean wit } private String getMavenCentralBadge(final boolean withProjectName, final AnalyzedMavenSource mavenSource) { - final String badge = getBadge("Maven Central – " + mavenSource.getProjectName(), + final String badge = getBadge("Maven Central – " + mavenSource.getProjectName(), "https://img.shields.io/maven-central/v/com.exasol/" + mavenSource.getArtifactId(), "https://search.maven.org/artifact/com.exasol/" + mavenSource.getArtifactId()); if (withProjectName) { diff --git a/project-keeper/src/test/java/com/exasol/projectkeeper/validators/ReadmeFileValidatorTest.java b/project-keeper/src/test/java/com/exasol/projectkeeper/validators/ReadmeFileValidatorTest.java index 83308458..8b7ac601 100644 --- a/project-keeper/src/test/java/com/exasol/projectkeeper/validators/ReadmeFileValidatorTest.java +++ b/project-keeper/src/test/java/com/exasol/projectkeeper/validators/ReadmeFileValidatorTest.java @@ -27,7 +27,7 @@ void testCreateFileForSimpleMavenProject(@TempDir final Path tempDir) throws IOE final String readme = Files.readString(tempDir.resolve("README.md")); assertThat(readme, Matchers.equalTo(adaptLineSeparators("# My Project\n" + "\n" + "[![Build Status](https://github.com/exasol/my-project-repo/actions/workflows/ci-build.yml/badge.svg)](https://github.com/exasol/my-project-repo/actions/workflows/ci-build.yml)\n" - + "[![Maven Central – my project](https://img.shields.io/maven-central/v/com.exasol/my-project)](https://search.maven.org/artifact/com.exasol/my-project)\n" + + "[![Maven Central – my project](https://img.shields.io/maven-central/v/com.exasol/my-project)](https://search.maven.org/artifact/com.exasol/my-project)\n" + "\n" + "[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Amy-project&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.exasol%3Amy-project)\n" + "\n" @@ -58,7 +58,7 @@ void testCreateFileForMavenMultiModuleProject(@TempDir final Path tempDir) throw final String readme = Files.readString(tempDir.resolve("README.md")); assertThat(readme, Matchers.startsWith(adaptLineSeparators("# My Project\n" + "\n" + "[![Build Status](https://github.com/exasol/my-project-repo/actions/workflows/ci-build.yml/badge.svg)](https://github.com/exasol/my-project-repo/actions/workflows/ci-build.yml)\n" - + "sub 1: [![Maven Central – sub 1](https://img.shields.io/maven-central/v/com.exasol/sub-1)](https://search.maven.org/artifact/com.exasol/sub-1), sub 2: [![Maven Central – sub 2](https://img.shields.io/maven-central/v/com.exasol/sub-2)](https://search.maven.org/artifact/com.exasol/sub-2)\n"))); + + "sub 1: [![Maven Central – sub 1](https://img.shields.io/maven-central/v/com.exasol/sub-1)](https://search.maven.org/artifact/com.exasol/sub-1), sub 2: [![Maven Central – sub 2](https://img.shields.io/maven-central/v/com.exasol/sub-2)](https://search.maven.org/artifact/com.exasol/sub-2)\n"))); } private String adaptLineSeparators(final String string) {