Skip to content

Commit

Permalink
Cleanup of the cdk/base modules - using dependency analzye to ensure …
Browse files Browse the repository at this point in the history
…all used undelcared dependencies are included and unused declared are removed.
  • Loading branch information
johnmay authored and egonw committed Dec 22, 2021
1 parent a207f62 commit 869bfce
Show file tree
Hide file tree
Showing 21 changed files with 90 additions and 46 deletions.
7 changes: 0 additions & 7 deletions base/annotation/pom.xml
Expand Up @@ -13,13 +13,6 @@
<artifactId>cdk-annotation</artifactId>

<name>cdk-annotation</name>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
Expand Down
5 changes: 0 additions & 5 deletions base/atomtype/pom.xml
Expand Up @@ -29,11 +29,6 @@
<artifactId>cdk-standard</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
9 changes: 4 additions & 5 deletions base/core/pom.xml
Expand Up @@ -14,6 +14,10 @@

<name>cdk-core</name>
<dependencies>
<dependency>
<groupId>javax.vecmath</groupId>
<artifactId>vecmath</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand All @@ -23,11 +27,6 @@
<artifactId>cdk-interfaces</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion base/data/pom.xml
Expand Up @@ -29,7 +29,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion base/datadebug/pom.xml
Expand Up @@ -25,7 +25,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
13 changes: 10 additions & 3 deletions base/dict/pom.xml
Expand Up @@ -19,19 +19,26 @@
<artifactId>xom</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.3.03</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-interfaces</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<!-- Only used for CDK logging in tests-->
<groupId>${project.groupId}</groupId>
<artifactId>cdk-core</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down
2 changes: 1 addition & 1 deletion base/isomorphism/pom.xml
Expand Up @@ -29,7 +29,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
5 changes: 5 additions & 0 deletions base/reaction/pom.xml
Expand Up @@ -19,6 +19,11 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-interfaces</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion base/silent/pom.xml
Expand Up @@ -29,7 +29,7 @@
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
5 changes: 5 additions & 0 deletions base/test-atomtype/pom.xml
Expand Up @@ -25,6 +25,11 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-interfaces</artifactId>
Expand Down
12 changes: 12 additions & 0 deletions base/test-core/pom.xml
Expand Up @@ -127,6 +127,18 @@
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-ioformats</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-ctab</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
5 changes: 5 additions & 0 deletions base/test-interfaces/pom.xml
Expand Up @@ -30,6 +30,11 @@
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.vecmath</groupId>
<artifactId>vecmath</artifactId>
Expand Down
22 changes: 17 additions & 5 deletions base/test-standard/pom.xml
Expand Up @@ -15,14 +15,14 @@
<name>cdk-test-standard</name>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-standard</artifactId>
<version>${project.parent.version}</version>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-standard</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -144,6 +144,18 @@
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-atomtype</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-formula</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
11 changes: 11 additions & 0 deletions base/test-valencycheck/pom.xml
Expand Up @@ -20,6 +20,11 @@
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down Expand Up @@ -91,6 +96,12 @@
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-ctab</artifactId>
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>cdk-testdata</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions base/test/pom.xml
Expand Up @@ -19,6 +19,11 @@
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.vecmath</groupId>
<artifactId>vecmath</artifactId>
Expand Down
5 changes: 1 addition & 4 deletions base/testdata/pom.xml
Expand Up @@ -3,21 +3,18 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<artifactId>cdk-base</artifactId>
<groupId>org.openscience.cdk</groupId>
<version>2.7-SNAPSHOT</version>
</parent>

<artifactId>cdk-testdata</artifactId>

<name>cdk-testdata</name>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

</project>
2 changes: 1 addition & 1 deletion descriptor/fingerprint/pom.xml
Expand Up @@ -35,7 +35,7 @@
<groupId>uk.ac.ebi.beam</groupId>
<artifactId>beam-func</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<scope>test</scope>
Expand Down
7 changes: 0 additions & 7 deletions pom.xml
Expand Up @@ -894,11 +894,4 @@
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
5 changes: 0 additions & 5 deletions storage/ctab/pom.xml
Expand Up @@ -42,11 +42,6 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions tool/model/pom.xml
Expand Up @@ -13,6 +13,11 @@
<name>cdk-model</name>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openscience.cdk</groupId>
<artifactId>cdk-fingerprint</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions tool/smarts/pom.xml
Expand Up @@ -34,6 +34,11 @@
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
Expand Down

0 comments on commit 869bfce

Please sign in to comment.