|
11 | 11 | <packaging>pom</packaging>
|
12 | 12 |
|
13 | 13 | <properties>
|
| 14 | + <maven.compile.source>1.8</maven.compile.source> |
| 15 | + <maven.compile.target>1.8</maven.compile.target> |
| 16 | + <maven.source.plugin>3.0.1</maven.source.plugin> |
| 17 | + <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version> |
| 18 | + |
14 | 19 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
15 | 20 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
16 | 21 | <java.version>1.8</java.version>
|
|
104 | 109 | </dependencies>
|
105 | 110 | </dependencyManagement>
|
106 | 111 |
|
107 |
| - <build> |
108 |
| - <plugins> |
109 |
| - <plugin> |
110 |
| - <groupId>org.apache.maven.plugins</groupId> |
111 |
| - <artifactId>maven-source-plugin</artifactId> |
112 |
| - <version>3.0.1</version> |
113 |
| - <executions> |
114 |
| - <execution> |
115 |
| - <id>attach-sources</id> |
116 |
| - <goals> |
117 |
| - <goal>jar</goal> |
118 |
| - </goals> |
119 |
| - </execution> |
120 |
| - </executions> |
121 |
| - </plugin> |
122 |
| - <plugin> |
123 |
| - <groupId>org.apache.maven.plugins</groupId> |
124 |
| - <artifactId>maven-compiler-plugin</artifactId> |
125 |
| - <configuration> |
126 |
| - <source>8</source> |
127 |
| - <target>8</target> |
128 |
| - </configuration> |
129 |
| - </plugin> |
130 |
| - </plugins> |
131 |
| - </build> |
132 | 112 |
|
| 113 | + <profiles> |
| 114 | + <profile> |
| 115 | + <id>dev</id> |
| 116 | + <activation> |
| 117 | + <activeByDefault>true</activeByDefault> |
| 118 | + </activation> |
| 119 | + <properties> |
| 120 | + <boot.profile>dev</boot.profile> |
| 121 | + </properties> |
| 122 | + <build> |
| 123 | + <plugins> |
| 124 | + <plugin> |
| 125 | + <groupId>org.apache.maven.plugins</groupId> |
| 126 | + <artifactId>maven-compiler-plugin</artifactId> |
| 127 | + <configuration> |
| 128 | + <source>${maven.compile.source}</source> |
| 129 | + <target>${maven.compile.target}</target> |
| 130 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 131 | + <compilerArgument>-Xlint:deprecation</compilerArgument> |
| 132 | + </configuration> |
| 133 | + </plugin> |
| 134 | + |
| 135 | + <plugin> |
| 136 | + <groupId>org.apache.maven.plugins</groupId> |
| 137 | + <artifactId>maven-source-plugin</artifactId> |
| 138 | + <version>${maven.source.plugin}</version> |
| 139 | + <executions> |
| 140 | + <execution> |
| 141 | + <id>attach-sources</id> |
| 142 | + <goals> |
| 143 | + <goal>jar-no-fork</goal> |
| 144 | + </goals> |
| 145 | + </execution> |
| 146 | + </executions> |
| 147 | + </plugin> |
| 148 | + |
| 149 | + <plugin> |
| 150 | + <groupId>org.sonatype.plugins</groupId> |
| 151 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 152 | + <version>${nexus.staging.maven.plugin}</version> |
| 153 | + <extensions>true</extensions> |
| 154 | + <configuration> |
| 155 | + <serverId>ossrh</serverId> |
| 156 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 157 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 158 | + </configuration> |
| 159 | + </plugin> |
| 160 | + </plugins> |
| 161 | + </build> |
| 162 | + </profile> |
| 163 | + <profile> |
| 164 | + <id>travis</id> |
| 165 | + <properties> |
| 166 | + <boot.profile>travis</boot.profile> |
| 167 | + </properties> |
| 168 | + <build> |
| 169 | + <plugins> |
| 170 | + <plugin> |
| 171 | + <groupId>org.jacoco</groupId> |
| 172 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 173 | + <version>0.8.2</version> |
| 174 | + <executions> |
| 175 | + <execution> |
| 176 | + <goals> |
| 177 | + <goal>prepare-agent</goal> |
| 178 | + </goals> |
| 179 | + </execution> |
| 180 | + <execution> |
| 181 | + <id>report</id> |
| 182 | + <phase>test</phase> |
| 183 | + <goals> |
| 184 | + <goal>report</goal> |
| 185 | + </goals> |
| 186 | + </execution> |
| 187 | + </executions> |
| 188 | + </plugin> |
| 189 | + |
| 190 | + |
| 191 | + <plugin> |
| 192 | + <groupId>org.openclover</groupId> |
| 193 | + <artifactId>clover-maven-plugin</artifactId> |
| 194 | + <version>4.3.1</version> |
| 195 | + <configuration> |
| 196 | + <generateHtml>true</generateHtml> |
| 197 | + <generateXml>true</generateXml> |
| 198 | + </configuration> |
| 199 | + </plugin> |
| 200 | + </plugins> |
| 201 | + </build> |
| 202 | + </profile> |
| 203 | + </profiles> |
133 | 204 |
|
134 | 205 | </project>
|
0 commit comments