|
6 | 6 |
|
7 | 7 | <groupId>com.contentstack.sdk</groupId>
|
8 | 8 | <artifactId>utils</artifactId>
|
9 |
| - <version>0.1.0</version> |
| 9 | + <version>1.0.0-SNAPSHOT</version> |
10 | 10 | <packaging>jar</packaging>
|
11 | 11 | <name>Contentstack-utils</name>
|
12 | 12 | <description>Java Utils SDK for Contentstack Content Delivery API, Contentstack is a headless CMS with an API-first approach</description>
|
13 | 13 | <url>https://www.***REMOVED***</url>
|
| 14 | + |
14 | 15 | <properties>
|
15 |
| - <!-- package version --> |
16 | 16 | <util.version>0.1.0-SNAPSHOT</util.version>
|
17 |
| - <!-- UTF-8 --> |
18 | 17 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
19 | 18 | <project.reporting.sourceEncoding>UTF-8</project.reporting.sourceEncoding>
|
20 | 19 | <maven.compiler.source>1.8</maven.compiler.source>
|
21 | 20 | <maven.compiler.target>1.8</maven.compiler.target>
|
22 |
| - <!-- Compilation --> |
23 | 21 | <java.version>1.8</java.version>
|
24 |
| - <!-- Build Dependencies --> |
25 | 22 | <build-helper.version>3.0.0</build-helper.version>
|
26 | 23 | <surefire-report-plugin.version>2.22.0</surefire-report-plugin.version>
|
27 | 24 | <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
|
28 | 25 | <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
|
29 |
| - <kotlin.version>1.4.10</kotlin.version> |
| 26 | + <kotlin-test-junit.version>1.4.10</kotlin-test-junit.version> |
30 | 27 | <junit.version>4.13.1</junit.version>
|
31 | 28 | <maven-site-plugin.version>3.3</maven-site-plugin.version>
|
32 | 29 | <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
|
|
66 | 63 | <url>http://github.com/contentstack/contentstack-utils-java/issues</url>
|
67 | 64 | </issueManagement>
|
68 | 65 |
|
| 66 | + <licenses> |
| 67 | + <license> |
| 68 | + <name>MIT</name> |
| 69 | + <url>http://www.opensource.org/licenses/mit-license.php</url> |
| 70 | + </license> |
| 71 | + </licenses> |
| 72 | + |
69 | 73 | <organization>
|
70 | 74 | <name>Contentstack.</name>
|
71 | 75 | <url>http://***REMOVED***</url>
|
|
81 | 85 | <dependency>
|
82 | 86 | <groupId>org.jetbrains.kotlin</groupId>
|
83 | 87 | <artifactId>kotlin-stdlib-jdk8</artifactId>
|
84 |
| - <version>${kotlin.version}</version> |
| 88 | + <version>${kotlin-test-junit.version}</version> |
85 | 89 | </dependency>
|
86 | 90 | <dependency>
|
87 | 91 | <groupId>org.jetbrains.kotlin</groupId>
|
88 |
| - <artifactId>kotlin-test</artifactId> |
89 |
| - <version>${kotlin.version}</version> |
| 92 | + <artifactId>kotlin-test-junit</artifactId> |
| 93 | + <version>${kotlin-test-junit.version}</version> |
90 | 94 | <scope>test</scope>
|
91 | 95 | </dependency>
|
92 | 96 | <dependency>
|
|
101 | 105 | </dependency>
|
102 | 106 | </dependencies>
|
103 | 107 |
|
104 |
| - |
105 | 108 | <build>
|
106 | 109 | <sourceDirectory>src/main/java</sourceDirectory>
|
107 | 110 | <plugins>
|
108 |
| - <!-- |
109 |
| - JaCoCo :: Maven Plugin |
110 |
| - The JaCoCo Maven Plugin provides the JaCoCo runtime agent to your tests and allows basic report creation. |
111 |
| - mvn clean install -P test-coverage |
112 |
| - --> |
113 | 111 | <plugin>
|
114 | 112 | <groupId>org.jacoco</groupId>
|
115 | 113 | <artifactId>jacoco-maven-plugin</artifactId>
|
|
127 | 125 | <goal>report</goal>
|
128 | 126 | </goals>
|
129 | 127 | </execution>
|
130 |
| - |
131 | 128 | </executions>
|
132 | 129 | </plugin>
|
133 | 130 |
|
134 |
| - |
135 | 131 | <plugin>
|
136 | 132 | <groupId>org.apache.maven.plugins</groupId>
|
137 | 133 | <artifactId>maven-compiler-plugin</artifactId>
|
138 | 134 | <version>3.8.1</version>
|
139 | 135 | </plugin>
|
140 | 136 | <!--
|
141 |
| - # Run tests and generate .xml reports |
142 |
| - mvn test |
143 |
| -
|
144 |
| - # Convert .xml reports into .html report, but without the CSS or images |
145 |
| - mvn surefire-report:report-only |
146 |
| -
|
147 |
| - # Put the CSS and images where they need to be without the rest of the |
148 |
| - # time-consuming stuff |
149 |
| - mvn surefire-report:report site -DgenerateReports=false |
| 137 | + mvn test |
| 138 | + mvn surefire-report:report-only |
| 139 | + mvn surefire-report:report site -DgenerateReports=false |
150 | 140 | -->
|
151 | 141 | <plugin>
|
152 | 142 | <groupId>org.apache.maven.plugins</groupId>
|
|
162 | 152 | </executions>
|
163 | 153 | </plugin>
|
164 | 154 |
|
165 |
| - <!--The Source Plugin creates a jar archive of the source files of |
166 |
| - the current project. The jar file is, by default, created in the project's target directory.--> |
167 | 155 | <plugin>
|
168 | 156 | <groupId>org.apache.maven.plugins</groupId>
|
169 | 157 | <artifactId>maven-source-plugin</artifactId>
|
|
178 | 166 | </executions>
|
179 | 167 | </plugin>
|
180 | 168 |
|
181 |
| - <!--The Javadoc Plugin uses the Javadoc tool to generate javadocs for the specified project--> |
182 |
| -<!-- <plugin>--> |
183 |
| -<!-- <groupId>org.apache.maven.plugins</groupId>--> |
184 |
| -<!-- <artifactId>maven-javadoc-plugin</artifactId>--> |
185 |
| -<!-- <version>${maven-javadoc-plugin.version}</version>--> |
186 |
| -<!-- </plugin>--> |
187 |
| - |
188 | 169 | <plugin>
|
189 | 170 | <groupId>org.apache.maven.plugins</groupId>
|
190 | 171 | <artifactId>maven-javadoc-plugin</artifactId>
|
|
210 | 191 | </executions>
|
211 | 192 | </plugin>
|
212 | 193 |
|
213 |
| - |
214 |
| - <!-- |
215 |
| - The Site Plugin is used to generate a site for the project. |
216 |
| - The generated site also includes the project's reports that were configured in the POM. |
217 |
| - --> |
218 | 194 | <plugin>
|
219 | 195 | <groupId>org.apache.maven.plugins</groupId>
|
220 | 196 | <artifactId>maven-site-plugin</artifactId>
|
221 | 197 | <version>${maven-site-plugin.version}</version>
|
222 | 198 | </plugin>
|
223 | 199 |
|
224 |
| - <!-- |
225 |
| - Signs all of a project's attached artifacts with GnuPG. |
226 |
| - You need to have previously configured the default key. |
227 |
| - gpg also needs to be on the search path. |
228 |
| - --> |
229 | 200 | <plugin>
|
230 | 201 | <groupId>org.apache.maven.plugins</groupId>
|
231 | 202 | <artifactId>maven-gpg-plugin</artifactId>
|
|
241 | 212 | </executions>
|
242 | 213 | </plugin>
|
243 | 214 |
|
244 |
| - <!-- |
245 |
| - Sometimes when you may need to compile a certain project to a different |
246 |
| - version than what you are currently using. The javac can accept such command |
247 |
| - using -source and -target. The Compiler Plugin can also be configured to |
248 |
| - provide these option during compilation |
249 |
| - --> |
250 |
| - |
251 |
| - <!--Provides support to access staging functionality in a remote Nexus Professional server.--> |
252 | 215 | <plugin>
|
253 | 216 | <groupId>org.sonatype.plugins</groupId>
|
254 | 217 | <artifactId>nexus-staging-maven-plugin</artifactId>
|
255 |
| - <version>${nexus-staging-maven-plugin.version}</version> |
| 218 | + <version>1.6.7</version> |
256 | 219 | <extensions>true</extensions>
|
257 | 220 | <configuration>
|
258 | 221 | <serverId>ossrh</serverId>
|
|
261 | 224 | </configuration>
|
262 | 225 | </plugin>
|
263 | 226 |
|
264 |
| - <!-- |
265 |
| - This plugin is used to release a project with Maven, saving a lot of repetitive, manual work. |
266 |
| - Releasing a project is made in two steps: prepare and perform. |
267 |
| - --> |
268 | 227 | <plugin>
|
269 | 228 | <groupId>org.apache.maven.plugins</groupId>
|
270 | 229 | <artifactId>maven-release-plugin</artifactId>
|
|
277 | 236 | </configuration>
|
278 | 237 | </plugin>
|
279 | 238 |
|
280 |
| - |
281 |
| -<!-- <plugin>--> |
282 |
| -<!-- <groupId>org.jacoco</groupId>--> |
283 |
| -<!-- <artifactId>jacoco-maven-plugin</artifactId>--> |
284 |
| -<!-- <version>0.8.5</version>--> |
285 |
| -<!-- </plugin>--> |
286 |
| - |
287 |
| -<!-- <plugin>--> |
288 |
| -<!-- <groupId>org.apache.maven.plugins</groupId>--> |
289 |
| -<!-- <artifactId>maven-compiler-plugin</artifactId>--> |
290 |
| -<!-- <version>3.8.0</version>--> |
291 |
| -<!-- <executions>--> |
292 |
| -<!-- <execution>--> |
293 |
| -<!-- <id>compile</id>--> |
294 |
| -<!-- <phase>compile</phase>--> |
295 |
| -<!-- <goals>--> |
296 |
| -<!-- <goal>compile</goal>--> |
297 |
| -<!-- </goals>--> |
298 |
| -<!-- </execution>--> |
299 |
| -<!-- <execution>--> |
300 |
| -<!-- <id>testCompile</id>--> |
301 |
| -<!-- <phase>test-compile</phase>--> |
302 |
| -<!-- <goals>--> |
303 |
| -<!-- <goal>testCompile</goal>--> |
304 |
| -<!-- </goals>--> |
305 |
| -<!-- </execution>--> |
306 |
| -<!-- </executions>--> |
307 |
| -<!-- <configuration>--> |
308 |
| -<!-- <source>${java.version}</source>--> |
309 |
| -<!-- <target>${java.version}</target>--> |
310 |
| -<!-- <compilerArgument>-Xlint:all</compilerArgument>--> |
311 |
| -<!-- <showWarnings>true</showWarnings>--> |
312 |
| -<!-- <showDeprecation>true</showDeprecation>--> |
313 |
| -<!-- </configuration>--> |
314 |
| -<!-- </plugin>--> |
315 |
| - |
316 | 239 | <plugin>
|
317 | 240 | <groupId>org.jetbrains.kotlin</groupId>
|
318 | 241 | <artifactId>kotlin-maven-plugin</artifactId>
|
319 |
| - <version>${kotlin.version}</version> |
| 242 | + <version>${kotlin-test-junit.version}</version> |
320 | 243 | <executions>
|
321 | 244 | <execution>
|
322 | 245 | <id>compile</id>
|
|
327 | 250 | </execution>
|
328 | 251 | </executions>
|
329 | 252 | </plugin>
|
330 |
| - |
331 |
| - |
332 | 253 | </plugins>
|
333 | 254 | </build>
|
334 | 255 |
|
|
0 commit comments