Skip to content

Commit

Permalink
Fix up the explicit dependencies in pom files based on reports
Browse files Browse the repository at this point in the history
from maven-dependency-plugin.

Fix up deploy and release scripts to publish release jars. Needed a
substitution to bring those up to publish jars at the latest release
version.

Fixes #668
Fixes #671
Fixes #672
Fixes #673
Fixes #674
Fixes #675
Fixes #676
Fixes #677
Fixes #678
Fixes #679
Fixes #680
Fixes #681
Fixes #682
  • Loading branch information
dickschoeller committed May 1, 2018
1 parent ad1488b commit 1a9dfe1
Show file tree
Hide file tree
Showing 18 changed files with 158 additions and 79 deletions.
2 changes: 1 addition & 1 deletion config/before-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
echo TRAVIS_BRANCH=$TRAVIS_BRANCH
echo TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
if [[ $TRAVIS_PULL_REQUEST == 'false' && ( $TRAVIS_BRANCH == '1.2.2' || $TRAVIS_BRANCH == 'development' ) ]]; then
if [[ $TRAVIS_PULL_REQUEST == 'false' && ( $TRAVIS_BRANCH == 'XXXXXX' || $TRAVIS_BRANCH == 'development' ) ]]; then
openssl aes-256-cbc -K $encrypted_0b79b78d9b0a_key -iv $encrypted_0b79b78d9b0a_iv -in config/codesigning.asc.enc -out config/codesigning.asc -d
gpg --fast-import config/codesigning.asc
else
Expand Down
2 changes: 1 addition & 1 deletion config/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
if [[ $TRAVIS_PULL_REQUEST == 'false' && ( $TRAVIS_BRANCH == '1.2.2' || $TRAVIS_BRANCH == 'development' ) ]]; then
if [[ $TRAVIS_PULL_REQUEST == 'false' && ( $TRAVIS_BRANCH == 'XXXXXX' || $TRAVIS_BRANCH == 'development' ) ]]; then
mvn --batch-mode --settings=config/settings.xml -Psign,deploy -DpushImage deploy
else
echo "Only deploy on push to development or label"
Expand Down
4 changes: 4 additions & 0 deletions config/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ sed -i -e "s/$development_version/$release_version/" geoservice/src/main/resourc
sed -i -e "s/$development_version/$release_version/" README.md
sed -i -e "s/$development_version/$release_version/" gedbrowser-api/src/main/resources/banner.txt
sed -i -e "s/$development_version/$release_version/" gedbrowser-api/src/main/docker/Dockerfile
sed -i -e "s/XXXXXX/$release_version/" config/deploy.sh
sed -i -e "s/XXXXXX/$release_version/" config/before-deploy.sh

# Fix published docker version
sed -i -e "s/docker.image.tag.snapshot/docker.image.tag>$release_version/" pom.xml
Expand Down Expand Up @@ -76,6 +78,8 @@ sed -i -e "s/$release_version/$new_development_version/" gedbrowser-api/src/main

sed -i -e "s/docker.image.tag.$release_version/docker.image.tag>snapshot/" pom.xml
sed -i -e 's/imageTag>latest/imageTag>snapshot/' gedbrowser/pom.xml geoservice/pom.xml gedbrowser-api/pom.xml
sed -i -e "s/$release_version/XXXXXX/" config/deploy.sh
sed -i -e "s/$release_version/XXXXXX/" config/before-deploy.sh

git add -A
git status
Expand Down
5 changes: 5 additions & 0 deletions gedbrowser-analytics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
21 changes: 17 additions & 4 deletions gedbrowser-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
<groupId>org.schoellerfamily.gedbrowser</groupId>
<artifactId>gedbrowser-mongo-dao</artifactId>
</dependency>
<dependency>
<groupId>org.schoellerfamily.gedbrowser</groupId>
<artifactId>gedbrowser-dao</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -82,15 +86,19 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
</dependency>
<!-- end questionable -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>

<!-- Testing dependencies -->
<dependency>
Expand All @@ -108,6 +116,11 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<reporting>
Expand Down
10 changes: 0 additions & 10 deletions gedbrowser-dao/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@
<groupId>org.schoellerfamily.gedbrowser</groupId>
<artifactId>gedbrowser-datamodel</artifactId>
</dependency>
<dependency>
<groupId>org.schoellerfamily.gedbrowser</groupId>
<artifactId>gedbrowser-reader</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
Expand All @@ -153,10 +147,6 @@
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
Expand Down
8 changes: 8 additions & 0 deletions gedbrowser-geographics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
Expand Down
18 changes: 6 additions & 12 deletions gedbrowser-mongo-dao/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,12 @@
<artifactId>spring-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>

<dependency>
Expand All @@ -176,15 +180,5 @@
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions gedbrowser-reader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
20 changes: 20 additions & 0 deletions gedbrowser-renderer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,26 @@
<groupId>org.schoellerfamily.gedbrowser</groupId>
<artifactId>geoservice-client</artifactId>
</dependency>
<dependency>
<groupId>org.schoellerfamily.gedbrowser</groupId>
<artifactId>geoservice-persistence</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>de.grundid.opendatalab</groupId>
<artifactId>geojson-jackson</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
Expand Down
5 changes: 5 additions & 0 deletions gedbrowser-writer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
19 changes: 16 additions & 3 deletions gedbrowser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@
</dependency>
<dependency>
<groupId>org.schoellerfamily.gedbrowser</groupId>
<artifactId>gedbrowser-mongo-dao</artifactId>
<artifactId>gedbrowser-dao</artifactId>
</dependency>
<dependency>
<groupId>org.schoellerfamily.gedbrowser</groupId>
<artifactId>gedbrowser-analytics</artifactId>
<artifactId>gedbrowser-mongo-dao</artifactId>
</dependency>
<dependency>
<groupId>org.schoellerfamily.gedbrowser</groupId>
<artifactId>gedbrowser-geographics</artifactId>
<artifactId>gedbrowser-analytics</artifactId>
</dependency>
<dependency>
<groupId>org.schoellerfamily.gedbrowser</groupId>
Expand Down Expand Up @@ -117,6 +117,14 @@
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>

<!-- Testing dependencies -->
<dependency>
Expand Down Expand Up @@ -185,6 +193,11 @@
<artifactId>sauce_junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<reporting>
Expand Down
16 changes: 4 additions & 12 deletions geoservice-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@
<artifactId>geoservice-persistence</artifactId>
</dependency>

<dependency>
<groupId>de.grundid.opendatalab</groupId>
<artifactId>geojson-jackson</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
Expand All @@ -162,16 +158,12 @@
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>

<dependency>
Expand Down
16 changes: 4 additions & 12 deletions geoservice-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,12 @@
<artifactId>spring-data-commons</artifactId>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>

<dependency>
Expand Down
22 changes: 10 additions & 12 deletions geoservice-persistence-mongo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,16 @@
<artifactId>spring-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<groupId>com.google.maps</groupId>
<artifactId>google-maps-services</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>

<dependency>
Expand All @@ -166,15 +174,5 @@
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
16 changes: 4 additions & 12 deletions geoservice-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,12 @@
<artifactId>spring-data-commons</artifactId>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</dependency>

<dependency>
Expand Down
Loading

0 comments on commit 1a9dfe1

Please sign in to comment.