|
3 | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
4 | 4 | <modelVersion>4.0.0</modelVersion>
|
5 | 5 |
|
6 |
| - <groupId>io.api</groupId> |
7 |
| - <artifactId>etherscan</artifactId> |
| 6 | + <groupId>com.github.goodforgod</groupId> |
| 7 | + <artifactId>java-etherscan-api</artifactId> |
8 | 8 | <version>1.0.0</version>
|
| 9 | + <packaging>jar</packaging> |
9 | 10 |
|
10 |
| - <name>java-etherscan-api</name> |
| 11 | + <name>${project.groupId}:${project.artifactId}</name> |
| 12 | + <description>Library is a wrapper for EtherScan API.</description> |
| 13 | + <url>http://maven.apache.org</url> |
| 14 | + |
| 15 | + <licenses> |
| 16 | + <license> |
| 17 | + <name>MIT License</name> |
| 18 | + <url>https://github.com/GoodforGod/java-etherscan-api/blob/master/LICENSE</url> |
| 19 | + <distribution>repo</distribution> |
| 20 | + </license> |
| 21 | + </licenses> |
| 22 | + |
| 23 | + <developers> |
| 24 | + <developer> |
| 25 | + <name>Anton Kurako</name> |
| 26 | + <email>goodforgod.dev@gmail.com</email> |
| 27 | + <organizationUrl>https://github.com/GoodforGod</organizationUrl> |
| 28 | + </developer> |
| 29 | + </developers> |
| 30 | + |
| 31 | + <scm> |
| 32 | + <connection>scm:git:git://github.com/GoodforGod/java-etherscan-api.git</connection> |
| 33 | + <developerConnection>scm:git:ssh://GoodforGod/java-etherscan-api.git</developerConnection> |
| 34 | + <url>https://github.com/GoodforGod/java-etherscan-api/tree/master</url> |
| 35 | + </scm> |
| 36 | + |
| 37 | + <distributionManagement> |
| 38 | + <snapshotRepository> |
| 39 | + <id>ossrh</id> |
| 40 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 41 | + </snapshotRepository> |
| 42 | + <repository> |
| 43 | + <id>ossrh</id> |
| 44 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 45 | + </repository> |
| 46 | + </distributionManagement> |
11 | 47 |
|
12 | 48 | <properties>
|
13 | 49 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
14 | 50 | <maven.compiler.source>1.8</maven.compiler.source>
|
15 | 51 | <maven.compiler.target>1.8</maven.compiler.target>
|
| 52 | + |
| 53 | + <maven-build-plugin-version>3.0.2</maven-build-plugin-version> |
| 54 | + <maven-gpg-plugin-version>1.6</maven-gpg-plugin-version> |
| 55 | + <maven-source-plugin-version>3.0.1</maven-source-plugin-version> |
| 56 | + <maven-javadoc-plugin-version>2.10.4</maven-javadoc-plugin-version> |
| 57 | + <maven-nexus-staging-maven-plugin-version>1.6.8</maven-nexus-staging-maven-plugin-version> |
| 58 | + <cobertura-plugin-version>2.7</cobertura-plugin-version> |
| 59 | + |
| 60 | + <junit-version>4.12</junit-version> |
| 61 | + <gson-version>2.8.5</gson-version> |
16 | 62 | </properties>
|
17 | 63 |
|
18 | 64 | <dependencies>
|
19 | 65 | <dependency>
|
20 | 66 | <groupId>junit</groupId>
|
21 | 67 | <artifactId>junit</artifactId>
|
22 |
| - <version>4.12</version> |
| 68 | + <version>${junit-version}</version> |
23 | 69 | <scope>test</scope>
|
24 | 70 | </dependency>
|
25 | 71 |
|
26 | 72 | <dependency>
|
27 | 73 | <groupId>com.google.code.gson</groupId>
|
28 | 74 | <artifactId>gson</artifactId>
|
29 |
| - <version>2.8.5</version> |
| 75 | + <version>${gson-version}</version> |
30 | 76 | </dependency>
|
31 | 77 |
|
32 | 78 | <dependency>
|
|
36 | 82 | </dependency>
|
37 | 83 | </dependencies>
|
38 | 84 |
|
39 |
| - <build> |
| 85 | + <profiles> |
| 86 | + <profile> |
| 87 | + <id>release</id> |
| 88 | + <build> |
| 89 | + <plugins> |
| 90 | + <plugin> |
| 91 | + <groupId>org.sonatype.plugins</groupId> |
| 92 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 93 | + <version>${maven-nexus-staging-maven-plugin-version}</version> |
| 94 | + <extensions>true</extensions> |
| 95 | + <configuration> |
| 96 | + <serverId>ossrh</serverId> |
| 97 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 98 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 99 | + </configuration> |
| 100 | + </plugin> |
| 101 | + </plugins> |
| 102 | + </build> |
| 103 | + </profile> |
| 104 | + |
| 105 | + <profile> |
| 106 | + <id>sign</id> |
| 107 | + <build> |
| 108 | + <plugins> |
| 109 | + <plugin> |
| 110 | + <groupId>org.apache.maven.plugins</groupId> |
| 111 | + <artifactId>maven-gpg-plugin</artifactId> |
| 112 | + <version>${maven-gpg-plugin-version}</version> |
| 113 | + <executions> |
| 114 | + <execution> |
| 115 | + <id>sign-artifacts</id> |
| 116 | + <phase>verify</phase> |
| 117 | + <goals> |
| 118 | + <goal>sign</goal> |
| 119 | + </goals> |
| 120 | + </execution> |
| 121 | + </executions> |
| 122 | + </plugin> |
| 123 | + </plugins> |
| 124 | + </build> |
| 125 | + </profile> |
| 126 | + |
| 127 | + <profile> |
| 128 | + <id>build-extras</id> |
| 129 | + <activation> |
| 130 | + <activeByDefault>true</activeByDefault> |
| 131 | + </activation> |
| 132 | + <build> |
| 133 | + <plugins> |
| 134 | + <plugin> |
| 135 | + <groupId>org.apache.maven.plugins</groupId> |
| 136 | + <artifactId>maven-source-plugin</artifactId> |
| 137 | + <version>${maven-source-plugin-version}</version> |
| 138 | + <executions> |
| 139 | + <execution> |
| 140 | + <id>attach-sources</id> |
| 141 | + <goals> |
| 142 | + <goal>jar-no-fork</goal> |
| 143 | + </goals> |
| 144 | + </execution> |
| 145 | + </executions> |
| 146 | + </plugin> |
40 | 147 |
|
| 148 | + <plugin> |
| 149 | + <groupId>org.apache.maven.plugins</groupId> |
| 150 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 151 | + <version>${maven-javadoc-plugin-version}</version> |
| 152 | + <executions> |
| 153 | + <execution> |
| 154 | + <id>attach-javadocs</id> |
| 155 | + <goals> |
| 156 | + <goal>jar</goal> |
| 157 | + </goals> |
| 158 | + </execution> |
| 159 | + </executions> |
| 160 | + </plugin> |
| 161 | + </plugins> |
| 162 | + </build> |
| 163 | + </profile> |
| 164 | + </profiles> |
| 165 | + |
| 166 | + <build> |
| 167 | + <plugins> |
| 168 | + <plugin> |
| 169 | + <groupId>org.codehaus.mojo</groupId> |
| 170 | + <artifactId>cobertura-maven-plugin</artifactId> |
| 171 | + <version>${cobertura-plugin-version}</version> |
| 172 | + <configuration> |
| 173 | + <formats> |
| 174 | + <format>html</format> |
| 175 | + <format>xml</format> |
| 176 | + </formats> |
| 177 | + <check/> |
| 178 | + </configuration> |
| 179 | + </plugin> |
| 180 | + <plugin> |
| 181 | + <groupId>org.apache.maven.plugins</groupId> |
| 182 | + <artifactId>maven-jar-plugin</artifactId> |
| 183 | + <version>${maven-build-plugin-version}</version> |
| 184 | + </plugin> |
| 185 | + </plugins> |
41 | 186 | </build>
|
42 | 187 | </project>
|
0 commit comments