Skip to content

Commit e7154e9

Browse files
authored
Merge pull request #2 from reactome/feature/update-pom
Feature/update pom
2 parents 84a1f20 + 3f84fcd commit e7154e9

File tree

6 files changed

+146
-187
lines changed

6 files changed

+146
-187
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
/target/
1+
doisToBeUpdated-*.txt
2+
3+
logs/
4+
target/
5+
6+
# Ignore IntelliJ files
7+
.idea/
8+
update-dois.iml

bin/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/pom.xml

Lines changed: 0 additions & 91 deletions
This file was deleted.

pom.xml

Lines changed: 103 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,46 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3-
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
43
<modelVersion>4.0.0</modelVersion>
4+
55
<groupId>org.reactome.release.updateDOIs</groupId>
66
<artifactId>update-dois</artifactId>
7-
<packaging>jar</packaging>
87
<version>1.0.2-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
910
<name>update-dois</name>
11+
<description>
12+
Updates DOIs of pathways that were updated significantly between releases (these pathways will be tagged as
13+
needing a value in their doi attribute)
14+
</description>
15+
<url>https://reactome.org</url>
16+
<licenses>
17+
<license>
18+
<name>GNU AFFERO GENERAL PUBLIC LICENSE</name>
19+
<url>https://www.gnu.org/licenses/agpl-3.0.txt</url>
20+
</license>
21+
</licenses>
22+
23+
<developers>
24+
<developer>
25+
<name>Justin Cook</name>
26+
<email>[email protected]</email>
27+
<organization>Reactome</organization>
28+
<organizationUrl>https://reactome.org</organizationUrl>
29+
</developer>
30+
</developers>
31+
32+
<scm>
33+
<connection>scm:git:git://github.com/reactome/release-update-dois.git</connection>
34+
<developerConnection>scm:git:ssh://github.com/reactome/release-update-dois.git</developerConnection>
35+
<url>https://github.com/reactome/release-update-dois</url>
36+
<tag>develop</tag>
37+
</scm>
38+
39+
<properties>
40+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41+
42+
<mockito.version>2.18.3</mockito.version>
43+
</properties>
1044

1145
<dependencies>
1246
<!-- Main dependencies -->
@@ -18,7 +52,7 @@
1852
<dependency>
1953
<groupId>org.reactome.release</groupId>
2054
<artifactId>release-common-lib</artifactId>
21-
<version>1.1.1-SNAPSHOT</version>
55+
<version>1.2.0</version>
2256
</dependency>
2357

2458
<!-- Test dependencies -->
@@ -29,26 +63,41 @@
2963
<scope>test</scope>
3064
</dependency>
3165
<dependency>
32-
<groupId>org.powermock</groupId>
33-
<artifactId>powermock-api-mockito</artifactId>
34-
<version>1.6.5</version>
66+
<groupId>org.mockito</groupId>
67+
<artifactId>mockito-core</artifactId>
68+
<version>${mockito.version}</version>
69+
<scope>test</scope>
70+
</dependency>
71+
<dependency>
72+
<groupId>org.mockito</groupId>
73+
<artifactId>mockito-junit-jupiter</artifactId>
74+
<version>${mockito.version}</version>
3575
<scope>test</scope>
3676
</dependency>
3777
</dependencies>
3878

3979
<build>
4080
<plugins>
81+
<!-- sets the Java compiler version targeted by Maven -->
4182
<plugin>
4283
<groupId>org.apache.maven.plugins</groupId>
4384
<artifactId>maven-compiler-plugin</artifactId>
44-
<version>3.7.0</version>
85+
<version>3.8.1</version>
4586
<configuration>
4687
<source>1.8</source>
4788
<target>1.8</target>
4889
</configuration>
4990
</plugin>
91+
92+
<!--
93+
allows 'mvn clean compile assembly:single' command to create a jar with dependencies
94+
95+
execution section also allows 'mvn clean package' command to create two jars - with/without dependencies
96+
-->
5097
<plugin>
98+
<groupId>org.apache.maven.plugins</groupId>
5199
<artifactId>maven-assembly-plugin</artifactId>
100+
<version>3.2.0</version>
52101
<configuration>
53102
<archive>
54103
<manifest>
@@ -59,6 +108,51 @@
59108
<descriptorRef>jar-with-dependencies</descriptorRef>
60109
</descriptorRefs>
61110
</configuration>
111+
<executions>
112+
<execution>
113+
<id>make-assembly</id> <!-- this is used for inheritance merges -->
114+
<phase>package</phase> <!-- bind to the packaging phase -->
115+
<goals>
116+
<goal>single</goal>
117+
</goals>
118+
</execution>
119+
</executions>
120+
</plugin>
121+
122+
<!--
123+
allows 'mvn release' command to create a new release of the project
124+
https://maven.apache.org/maven-release/maven-release-plugin/
125+
-->
126+
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
128+
<artifactId>maven-release-plugin</artifactId>
129+
<version>2.5.3</version>
130+
<configuration>
131+
<autoVersionSubmodules>true</autoVersionSubmodules>
132+
<useReleaseProfile>false</useReleaseProfile>
133+
<releaseProfiles>release</releaseProfiles>
134+
<goals>deploy</goals>
135+
<tagNameFormat>v@{project.version}</tagNameFormat>
136+
</configuration>
137+
</plugin>
138+
139+
<!--
140+
checks the POM file has the order specified by the POM Code Convention
141+
http://maven.apache.org/developers/conventions/code.html#POM_Code_Convention
142+
-->
143+
<plugin>
144+
<groupId>org.codehaus.mojo</groupId>
145+
<artifactId>tidy-maven-plugin</artifactId>
146+
<version>1.1.0</version>
147+
<executions>
148+
<execution>
149+
<id>validate</id>
150+
<phase>validate</phase>
151+
<goals>
152+
<goal>check</goal>
153+
</goals>
154+
</execution>
155+
</executions>
62156
</plugin>
63157
</plugins>
64158
</build>

src/test/java/org/reactome/release/updateDOIs/AppTest.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)