Skip to content

Commit

Permalink
modifications of maven files pom.xml related to releasing some of the…
Browse files Browse the repository at this point in the history
… libraries to OSSRH ("Maven Central")
  • Loading branch information
TomasJohansson committed May 2, 2018
1 parent 2e909e6 commit 6ca1aee
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 65 deletions.
35 changes: 29 additions & 6 deletions adapters-shortest-paths-core/pom.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,38 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" 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>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths</artifactId>
<version>1.0.0</version>
</parent>

<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-core</artifactId>

<name>adapters-shortest-paths-core</name>
<description>
Core adapter library with general classes and interfaces.
For example it contains the Target (see the Adapter design pattern) interfaces.
The adapter implementations with dependencies to adaptees are located in other libraries.
(https://github.com/TomasJohansson/adapters-shortest-paths)
</description>
<url>https://github.com/TomasJohansson/adapters-shortest-paths/tree/master/adapters-shortest-paths-core</url>

<licenses>
<license>
<name>MIT License</name>
<url>https://github.com/TomasJohansson/adapters-shortest-paths/blob/master/License.txt</url>
<comments>MIT license for the core library. The adapter libraries have the same license as the adaptee libraries.</comments>
</license>
</licenses>

<developers>
<developer>
<name>Tomas Johansson</name>
<organizationUrl>https://github.com/TomasJohansson</organizationUrl>
</developer>
</developers>

<dependencies>
<dependency>
<groupId>junit</groupId>
Expand All @@ -17,12 +46,6 @@
<scope>test</scope>
</dependency>
</dependencies>

<parent>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<build>
<resources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<properties>
<outputDirectoryForGeneratedJpaMetamodel>${project.basedir}/src/java-generated</outputDirectoryForGeneratedJpaMetamodel>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>

<repositories>
Expand Down Expand Up @@ -106,5 +107,4 @@

</plugins>
</build>

</project>
3 changes: 3 additions & 0 deletions adapters-shortest-paths-example-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@
</dependency>
</dependencies>

<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
</project>
58 changes: 39 additions & 19 deletions adapters-shortest-paths-impl-bsmock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,55 @@
<parent>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-impl-bsmock</artifactId>

<name>adapters-shortest-paths-impl-bsmock</name>
<description>
Adapter implementation (for the Target Adapter interfaces defined in 'adapters-shortest-paths-core')
which uses 'fork of bsmock k-shortest-paths' as the adaptee.
(
the library located at URL
https://github.com/TomasJohansson/k-shortest-paths
is a fork of
https://github.com/bsmock/k-shortest-paths
)
</description>
<url>https://github.com/TomasJohansson/adapters-shortest-paths/tree/master/adapters-shortest-paths-impl-bsmock</url>

<licenses>
<license>
<name>Apache Software License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Tomas Johansson</name>
<organizationUrl>https://github.com/TomasJohansson</organizationUrl>
</developer>
</developers>

<dependencies>

<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-core</artifactId>
</dependency>

<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>fork-of-edu.ufl.cise.bsmock.graph</artifactId>
<version>1.0.0</version>
</dependency>

<!--
"bsmock" implementation does not currently have a maven pom.xml file
The "bsmock" implementation did not have a maven pom.xml file
so I created a fork of it and used jitpack and my own github commit id as version below
https://github.com/bsmock/k-shortest-paths
https://github.com/TomasJohansson/k-shortest-paths
Expand All @@ -29,27 +60,16 @@
The artifact below will be retrieved from the "jitpack" repository which been added to the parent pom.xml file
Thanks to the below dependency below, the types within the following "bsmock" package can be used:
edu.ufl.cise.bsmock
Updated comment: Now when the bsmock fork have been released to OSSRH ("Maven Central") the jitpack is no longer needed for the 'bsmock' adapter
-->


<dependency> <!-- repository "jitpack.io" in parent pom.xml -->
<!-- repository "jitpack.io" in parent pom.xml -->
<!--
<dependency>
<groupId>com.github.TomasJohansson</groupId>
<artifactId>k-shortest-paths</artifactId>
<version>0506929fa994f76fbd7c4f4312374657c591781a</version> <!-- 2017-12-18 -->
<version>0506929fa994f76fbd7c4f4312374657c591781a</version> 2017-12-18
</dependency>
<!--
<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>fork-of-edu.ufl.cise.bsmock.graph</artifactId>
</dependency>
-->


<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-core</artifactId>
</dependency>

-->
</dependencies>

<build>
Expand Down
7 changes: 5 additions & 2 deletions adapters-shortest-paths-impl-jgrapht/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<groupId>com.programmerare.shortest-paths</groupId>
Expand Down Expand Up @@ -65,5 +65,8 @@
</resource>
</resources>
</build>


<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
</project>
7 changes: 5 additions & 2 deletions adapters-shortest-paths-impl-mulavito/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0</version>
</parent>
<artifactId>adapters-shortest-paths-impl-mulavito</artifactId>

Expand Down Expand Up @@ -77,5 +77,8 @@
</resource>
</resources>
</build>


<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
</project>
7 changes: 5 additions & 2 deletions adapters-shortest-paths-impl-reneargento/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<groupId>com.programmerare.shortest-paths</groupId>
Expand Down Expand Up @@ -57,5 +57,8 @@
</resource>
</resources>
</build>


<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
</project>
72 changes: 47 additions & 25 deletions adapters-shortest-paths-impl-yanqi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,53 @@
<parent>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-impl-yanqi</artifactId>

<name>adapters-shortest-paths-impl-yanqi</name>
<description>
Adapter implementation (for the Target Adapter interfaces defined in 'adapters-shortest-paths-core')
which uses 'fork of yan-qi k-shortest-paths-java-version' as the adaptee.
(
the library located at URL
https://github.com/TomasJohansson/k-shortest-paths-java-version
is a fork of
https://github.com/yan-qi/k-shortest-paths-java-version
)
</description>
<url>https://github.com/TomasJohansson/adapters-shortest-paths/tree/master/adapters-shortest-paths-impl-yanqi</url>

<licenses>
<license>
<name>Apache Software License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>


<developers>
<developer>
<name>Tomas Johansson</name>
<organizationUrl>https://github.com/TomasJohansson</organizationUrl>
</developer>
</developers>

<dependencies>

<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-core</artifactId>
</dependency>

<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>fork-of-edu.asu.emit.algorithm.graph</artifactId>
<version>1.0.0</version>
</dependency>
<!--
"yanqi" implementation does not currently seem to provide a way of programmatically create a graph,
"yanqi" implementation did not seem to provide a way of programmatically create a graph,
but rather seem to require that input data must come from a file.
For that reason, I created a fork of it and used jitpack and my own github commit id as version below.
https://github.com/yan-qi/k-shortest-paths-java-version
Expand All @@ -31,27 +60,14 @@
The artifact below will be retrieved from the "jitpack" repository which been added to the parent pom.xml file
Thanks to the below maven dependency, the types within the following "yanqi" package can be used:
edu.asu.emit.algorithm
-->


<dependency> <!-- repository "jitpack.io" in parent pom.xml -->
<groupId>com.github.TomasJohansson</groupId>
<artifactId>k-shortest-paths-java-version</artifactId>
<version>323afae47fb580a50bf18129108385126eda969b</version> <!-- 2017-11-12 -->
</dependency>
<!--
<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>fork_of_com.programmerare.edu.asu.emit.algorithm.graph</artifactId>
</dependency>
-->


<dependency>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths-core</artifactId>
</dependency>

repository "jitpack.io" in parent pom.xml
<dependency>
<groupId>com.github.TomasJohansson</groupId>
<artifactId>k-shortest-paths-java-version</artifactId>
<version>323afae47fb580a50bf18129108385126eda969b</version> 2017-11-12
</dependency>
Updated comment: Now when the yan-qi fork have been released to OSSRH ("Maven Central") the jitpack is no longer needed for the 'yan-qi' adapter
-->
</dependencies>

<build>
Expand All @@ -65,4 +81,10 @@
</resources>
</build>

<repositories>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</repositories>
</project>
7 changes: 5 additions & 2 deletions adapters-shortest-paths-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.programmerare.shortest-paths</groupId>
<artifactId>adapters-shortest-paths</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<groupId>com.programmerare.shortest-paths</groupId>
Expand Down Expand Up @@ -69,6 +69,9 @@
<artifactId>adapters-shortest-paths-impl-mulavito</artifactId>
</dependency>

</dependencies>
</dependencies>

<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
</project>
Loading

0 comments on commit 6ca1aee

Please sign in to comment.