diff --git a/dependencies.md b/dependencies.md index 9aac2641..5a560064 100644 --- a/dependencies.md +++ b/dependencies.md @@ -30,14 +30,9 @@ | [org.xmlunit:xmlunit-matchers][13] | [The Apache Software License, Version 2.0][5] | | [SLF4J JDK14 Binding][36] | [MIT License][21] | | [mockito-core][38] | [The MIT License][39] | +| [JaCoCo :: Agent][40] | [Eclipse Public License 2.0][41] | | [JaCoCo :: Core][40] | [Eclipse Public License 2.0][41] | -| [Maven Plugin Integration Testing][42] | [MIT][16] | - -## Runtime Dependencies - -| Dependency | License | -| --------------------- | -------------------------------- | -| [JaCoCo :: Agent][40] | [Eclipse Public License 2.0][41] | +| [Maven Plugin Integration Testing][44] | [MIT][16] | ## Plugin Dependencies @@ -118,7 +113,7 @@ [88]: http://maven.apache.org/plugins/maven-install-plugin/ [56]: https://sonatype.github.io/ossindex-maven/maven-plugin/ [17]: https://www.eclipse.org/jgit/ -[42]: https://github.com/exasol/maven-plugin-integration-testing +[44]: https://github.com/exasol/maven-plugin-integration-testing [72]: http://maven.apache.org/plugins/maven-deploy-plugin/ [90]: http://maven.apache.org/plugins/maven-site-plugin/ [60]: https://maven.apache.org/plugins/maven-javadoc-plugin/ diff --git a/doc/changes/changes_1.2.0.md b/doc/changes/changes_1.2.0.md index 9f8143ac..da808518 100644 --- a/doc/changes/changes_1.2.0.md +++ b/doc/changes/changes_1.2.0.md @@ -9,9 +9,18 @@ In this release we added a property that allows users to skip the execution of p ## Features * #176: Added skip property +* #178: Moved jacoco dependency to test scope ## Dependency Updates +### Runtime Dependency Updates + +* Removed `org.jacoco:org.jacoco.agent:0.8.7` + +### Test Dependency Updates + +* Added `org.jacoco:org.jacoco.agent:0.8.7` + ### Plugin Dependency Updates * Updated `com.exasol:project-keeper-maven-plugin:1.1.0` to `1.2.0` diff --git a/pom.xml b/pom.xml index f12e3668..8ab8541b 100644 --- a/pom.xml +++ b/pom.xml @@ -176,7 +176,7 @@ org.jacoco.agent ${jacoco.version} runtime - runtime + test org.jacoco diff --git a/src/main/java/com/exasol/projectkeeper/validators/pom/dependencies/JacocoAgentDependencyValidator.java b/src/main/java/com/exasol/projectkeeper/validators/pom/dependencies/JacocoAgentDependencyValidator.java index 5ff5f432..48e5b532 100644 --- a/src/main/java/com/exasol/projectkeeper/validators/pom/dependencies/JacocoAgentDependencyValidator.java +++ b/src/main/java/com/exasol/projectkeeper/validators/pom/dependencies/JacocoAgentDependencyValidator.java @@ -16,7 +16,7 @@ public class JacocoAgentDependencyValidator extends AbstractDependencyValidator * Create a new instance of {@link JacocoAgentDependencyValidator}. */ public JacocoAgentDependencyValidator() { - super("org.jacoco", "org.jacoco.agent", "0.8.5", Scope.RUNTIME); + super("org.jacoco", "org.jacoco.agent", "0.8.5", Scope.TEST); } @Override diff --git a/src/test/java/com/exasol/projectkeeper/ProjectKeeperIT.java b/src/test/java/com/exasol/projectkeeper/ProjectKeeperIT.java index 2f9f6c5a..4b07ba20 100644 --- a/src/test/java/com/exasol/projectkeeper/ProjectKeeperIT.java +++ b/src/test/java/com/exasol/projectkeeper/ProjectKeeperIT.java @@ -228,7 +228,11 @@ private void commitAndMakeTag(final Git git, final String releaseTag) throws Git @Test void testJacocoAgentIsExtracted() throws VerificationException, IOException { - writePomWithAllProjectKeeperPlugins(); + final var pom = new TestMavenModel(); + pom.addProjectKeeperPlugin( + new ProjectKeeperPluginDeclaration(CURRENT_VERSION).withEnabledModules(INTEGRATION_TESTS, UDF_COVERAGE) + .withExcludedPlugins("com.exasol:error-code-crawler-maven-plugin")); + pom.writeAsPomToProject(this.projectDir); final Verifier verifier = getVerifier(); verifier.executeGoal("project-keeper:fix"); verifier.executeGoal("package");