Skip to content

Commit

Permalink
updates and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Feb 12, 2024
1 parent 84f0884 commit 22f01b8
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 21 deletions.
5 changes: 5 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

</project>
1 change: 1 addition & 0 deletions java/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<executable>mvn</executable>
<workingDirectory>${maven.test.path}</workingDirectory>
<arguments>
<argument>-X</argument>
<argument>install</argument>
</arguments>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void testBasics() {
assertThat(source.getSource()).isSameAs(source);

List<? extends CodeSource> dependencies = source.getDependencies().getDeclared();
assertThat(dependencies).hasSize(5);
assertThat(dependencies).hasSize(4);
CodeSource compileDependency = dependencies.get(0);
verifyDependency(compileDependency, "target/classes", "src/main/java", "compile");
assertThat(source.getParent()).isSameAs(compileDependency);
Expand Down
5 changes: 0 additions & 5 deletions java/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@
<name>${project.artifactId}</name>
<description>Integration with Maven.</description>

<properties>
<maven.version>3.6.1</maven.version>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void testReadModel() {
assertThat(model.getParent().getGroupId()).isEqualTo(groupId);
assertThat(model.getParent().getVersion()).isEqualTo("${revision}");
verifyDependencies(model, DependencyHelper.create(PROJECT_GROUP_ID, "mmm-code-base", null),
DependencyHelper.create("org.apache.maven", "maven-core", "${maven.version}"));
DependencyHelper.create("org.apache.maven", "maven-core", null));
}

/**
Expand Down Expand Up @@ -89,11 +89,10 @@ public void testReadProject() {
assertThat(model.getGroupId()).isEqualTo(groupId);
assertThat(model.getVersion()).matches(VERSION_PATTERN);
verifyDependencies(model, DependencyHelper.create(groupId, "mmm-code-base", "*"),
DependencyHelper.create("org.apache.maven", "maven-core", "3.6.1"),
DependencyHelper.create("org.assertj", "assertj-core", "3.24.2", SCOPE_TEST),
DependencyHelper.create("org.junit.jupiter", "junit-jupiter", "5.9.3", SCOPE_TEST),
DependencyHelper.create("org.mockito", "mockito-junit-jupiter", "4.9.0", SCOPE_TEST),
DependencyHelper.create("ch.qos.logback", "logback-classic", "1.4.5", SCOPE_TEST));
DependencyHelper.create("org.apache.maven", "maven-core", "3.9.6"),
DependencyHelper.create("org.assertj", "assertj-core", "3.25.3", SCOPE_TEST),
DependencyHelper.create("org.junit.jupiter", "junit-jupiter", "5.10.2", SCOPE_TEST),
DependencyHelper.create("ch.qos.logback", "logback-classic", "1.4.14", SCOPE_TEST));
}

private void verifyDependencies(Model model, Dependency... dependencies) {
Expand Down
20 changes: 11 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<properties>
<java.version>17</java.version>
<mmm.repository>code</mmm.repository>
<maven.version>3.9.6</maven.version>
</properties>

<modules>
Expand All @@ -24,14 +25,6 @@
<module>java</module>
</modules>

<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>4.9.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- BOM of mmm-scanner -->
Expand All @@ -42,7 +35,16 @@
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.10.0</version>
</dependency>
<!-- Internal dependencies -->
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down

0 comments on commit 22f01b8

Please sign in to comment.