|
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"> |
4 | 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | + |
5 | 5 | <groupId>org.reactome.release.updateDOIs</groupId> |
6 | 6 | <artifactId>update-dois</artifactId> |
7 | | - <packaging>jar</packaging> |
8 | 7 | <version>1.0.2-SNAPSHOT</version> |
| 8 | + <packaging>jar</packaging> |
| 9 | + |
9 | 10 | <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 | + |
| 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> |
10 | 44 |
|
11 | 45 | <dependencies> |
12 | 46 | <!-- Main dependencies --> |
|
18 | 52 | <dependency> |
19 | 53 | <groupId>org.reactome.release</groupId> |
20 | 54 | <artifactId>release-common-lib</artifactId> |
21 | | - <version>1.1.1-SNAPSHOT</version> |
| 55 | + <version>1.2.0</version> |
22 | 56 | </dependency> |
23 | 57 |
|
24 | 58 | <!-- Test dependencies --> |
|
29 | 63 | <scope>test</scope> |
30 | 64 | </dependency> |
31 | 65 | <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> |
35 | 75 | <scope>test</scope> |
36 | 76 | </dependency> |
37 | 77 | </dependencies> |
38 | 78 |
|
39 | 79 | <build> |
40 | 80 | <plugins> |
| 81 | + <!-- sets the Java compiler version targeted by Maven --> |
41 | 82 | <plugin> |
42 | 83 | <groupId>org.apache.maven.plugins</groupId> |
43 | 84 | <artifactId>maven-compiler-plugin</artifactId> |
44 | | - <version>3.7.0</version> |
| 85 | + <version>3.8.1</version> |
45 | 86 | <configuration> |
46 | 87 | <source>1.8</source> |
47 | 88 | <target>1.8</target> |
48 | 89 | </configuration> |
49 | 90 | </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 | + --> |
50 | 97 | <plugin> |
| 98 | + <groupId>org.apache.maven.plugins</groupId> |
51 | 99 | <artifactId>maven-assembly-plugin</artifactId> |
| 100 | + <version>3.2.0</version> |
52 | 101 | <configuration> |
53 | 102 | <archive> |
54 | 103 | <manifest> |
|
59 | 108 | <descriptorRef>jar-with-dependencies</descriptorRef> |
60 | 109 | </descriptorRefs> |
61 | 110 | </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> |
62 | 156 | </plugin> |
63 | 157 | </plugins> |
64 | 158 | </build> |
|
0 commit comments