|
3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
5 | 5 | <modelVersion>4.0.0</modelVersion>
|
6 |
| - <groupId>dev.cdevents.sdk-java</groupId> |
| 6 | + <groupId>dev.cdevents</groupId> |
7 | 7 | <artifactId>cdevents-sdk-java</artifactId>
|
8 |
| - <version>v0.1.0-draft6</version> |
| 8 | + <version>0.1.0-SNAPSHOT</version> |
9 | 9 |
|
10 | 10 | <name>cdevents-sdk-java</name>
|
11 | 11 | <description>cdevents java sdk</description>
|
|
24 | 24 | <cloudevents.version>2.3.0</cloudevents.version>
|
25 | 25 | <junit-jupiter.version>5.8.2</junit-jupiter.version>
|
26 | 26 | <assertj-core.version>3.22.0</assertj-core.version>
|
27 |
| - <jackson.version>2.13.4.2</jackson.version> |
| 27 | + <jackson.version>2.15.0</jackson.version> |
| 28 | + <slf4j.version>2.0.7</slf4j.version> |
28 | 29 | <project.github.repository>cdevents/sdk-java</project.github.repository>
|
29 | 30 | <nexus.url>https://s01.oss.sonatype.org</nexus.url>
|
30 | 31 | <repository.url>git@github.com:${project.github.repository}.git</repository.url>
|
31 | 32 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
32 | 33 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
33 |
| - <version.clean.plugin>3.1.0</version.clean.plugin> |
34 |
| - <version.compiler.plugin>3.9.0</version.compiler.plugin> |
35 |
| - <version.deploy.plugin>3.0.0-M1</version.deploy.plugin> |
| 34 | + <project.build.outputTimestamp>${git.commit.author.time}</project.build.outputTimestamp> |
| 35 | + <version.clean.plugin>3.2.0</version.clean.plugin> |
| 36 | + <version.compiler.plugin>3.11.0</version.compiler.plugin> |
| 37 | + <version.deploy.plugin>3.1.1</version.deploy.plugin> |
| 38 | + <version.git.plugin>5.0.0</version.git.plugin> |
36 | 39 | <version.gpg.plugin>1.6</version.gpg.plugin>
|
37 |
| - <version.install.plugin>3.0.0-M1</version.install.plugin> |
38 |
| - <version.javadoc.plugin>3.2.0</version.javadoc.plugin> |
39 |
| - <version.jar.plugin>3.2.0</version.jar.plugin> |
| 40 | + <version.install.plugin>3.1.1</version.install.plugin> |
| 41 | + <version.javadoc.plugin>3..0</version.javadoc.plugin> |
| 42 | + <version.jar.plugin>3.3.0</version.jar.plugin> |
40 | 43 | <version.nexus.plugin>1.6.8</version.nexus.plugin>
|
41 |
| - <version.resources.plugin>3.2.0</version.resources.plugin> |
| 44 | + <version.resources.plugin>3.3.1</version.resources.plugin> |
42 | 45 | <version.source.plugin>3.2.1</version.source.plugin>
|
43 | 46 | </properties>
|
44 | 47 |
|
|
77 | 80 | <url>${repository.url}</url>
|
78 | 81 | </scm>
|
79 | 82 |
|
| 83 | + <dependencyManagement> |
| 84 | + <dependencies> |
| 85 | + <dependency> |
| 86 | + <groupId>com.fasterxml.jackson</groupId> |
| 87 | + <artifactId>jackson-bom</artifactId> |
| 88 | + <version>${jackson.version}</version> |
| 89 | + <type>pom</type> |
| 90 | + <scope>import</scope> |
| 91 | + </dependency> |
| 92 | + </dependencies> |
| 93 | + </dependencyManagement> |
| 94 | + |
80 | 95 | <dependencies>
|
81 | 96 | <dependency>
|
82 | 97 | <groupId>io.cloudevents</groupId>
|
83 | 98 | <artifactId>cloudevents-core</artifactId>
|
84 | 99 | <version>${cloudevents.version}</version>
|
85 | 100 | </dependency>
|
86 | 101 |
|
87 |
| - <!-- Test dependencies --> |
88 |
| - <dependency> |
89 |
| - <groupId>org.junit.jupiter</groupId> |
90 |
| - <artifactId>junit-jupiter</artifactId> |
91 |
| - <version>${junit-jupiter.version}</version> |
92 |
| - <scope>test</scope> |
93 |
| - </dependency> |
94 |
| - |
95 |
| - <dependency> |
96 |
| - <groupId>org.assertj</groupId> |
97 |
| - <artifactId>assertj-core</artifactId> |
98 |
| - <version>${assertj-core.version}</version> |
99 |
| - <scope>test</scope> |
100 |
| - </dependency> |
101 |
| - |
102 | 102 | <dependency>
|
103 | 103 | <groupId>com.fasterxml.jackson.core</groupId>
|
104 | 104 | <artifactId>jackson-databind</artifactId>
|
105 |
| - <version>${jackson.version}</version> |
106 | 105 | </dependency>
|
107 | 106 |
|
| 107 | + <dependency> |
| 108 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 109 | + <artifactId>jackson-datatype-jsr310</artifactId> |
| 110 | + </dependency> |
| 111 | + |
| 112 | + <dependency> |
| 113 | + <groupId>com.networknt</groupId> |
| 114 | + <artifactId>json-schema-validator</artifactId> |
| 115 | + <version>1.0.80</version> |
| 116 | + </dependency> |
| 117 | + |
108 | 118 | <dependency>
|
109 | 119 | <groupId>org.slf4j</groupId>
|
110 | 120 | <artifactId>slf4j-api</artifactId>
|
111 |
| - <version>2.0.6</version> |
| 121 | + <version>${slf4j.version}</version> |
112 | 122 | </dependency>
|
113 | 123 |
|
114 | 124 | <dependency>
|
115 | 125 | <groupId>org.slf4j</groupId>
|
116 | 126 | <artifactId>slf4j-log4j12</artifactId>
|
117 |
| - <version>2.0.6</version> |
| 127 | + <version>${slf4j.version}</version> |
| 128 | + <optional>true</optional> |
| 129 | + <scope>runtime</scope> |
118 | 130 | </dependency>
|
119 | 131 |
|
| 132 | + <!-- Test dependencies --> |
120 | 133 | <dependency>
|
121 |
| - <groupId>com.fasterxml.jackson.datatype</groupId> |
122 |
| - <artifactId>jackson-datatype-jsr310</artifactId> |
123 |
| - <version>2.14.2</version> |
| 134 | + <groupId>org.junit.jupiter</groupId> |
| 135 | + <artifactId>junit-jupiter</artifactId> |
| 136 | + <version>${junit-jupiter.version}</version> |
| 137 | + <scope>test</scope> |
124 | 138 | </dependency>
|
125 | 139 |
|
126 | 140 | <dependency>
|
127 |
| - <groupId>com.networknt</groupId> |
128 |
| - <artifactId>json-schema-validator</artifactId> |
129 |
| - <version>1.0.78</version> |
| 141 | + <groupId>org.assertj</groupId> |
| 142 | + <artifactId>assertj-core</artifactId> |
| 143 | + <version>${assertj-core.version}</version> |
| 144 | + <scope>test</scope> |
130 | 145 | </dependency>
|
131 |
| - |
132 |
| - |
133 | 146 | </dependencies>
|
134 | 147 | <build>
|
135 | 148 | <pluginManagement>
|
|
190 | 203 | <plugin>
|
191 | 204 | <groupId>org.apache.maven.plugins</groupId>
|
192 | 205 | <artifactId>maven-surefire-plugin</artifactId>
|
193 |
| - <version>2.22.0</version> |
| 206 | + <version>3.0.0</version> |
194 | 207 | </plugin>
|
| 208 | + <plugin> |
| 209 | + <groupId>io.github.git-commit-id</groupId> |
| 210 | + <artifactId>git-commit-id-maven-plugin</artifactId> |
| 211 | + <version>${version.git.plugin}</version> |
| 212 | + <executions> |
| 213 | + <execution> |
| 214 | + <id>resolve-git-properties</id> |
| 215 | + <goals> |
| 216 | + <goal>revision</goal> |
| 217 | + </goals> |
| 218 | + <phase>validate</phase> |
| 219 | + <configuration> |
| 220 | + <verbose>false</verbose> |
| 221 | + <failOnNoGitDirectory>false</failOnNoGitDirectory> |
| 222 | + <generateGitPropertiesFile>true</generateGitPropertiesFile> |
| 223 | + <generateGitPropertiesFilename>${project.build.directory}/git.properties</generateGitPropertiesFilename> |
| 224 | + <dateFormat>yyyy-MM-dd'T'HH:mm:ssXXX</dateFormat> |
| 225 | + </configuration> |
| 226 | + </execution> |
| 227 | + </executions> |
| 228 | + </plugin> |
195 | 229 | <plugin>
|
196 | 230 | <groupId>org.apache.maven.plugins</groupId>
|
197 | 231 | <artifactId>maven-jar-plugin</artifactId>
|
198 | 232 | <configuration>
|
199 | 233 | <archive>
|
200 | 234 | <manifestEntries>
|
201 |
| - <Build-Jdk>${java.version} (${java.vendor} ${java.vm.version})</Build-Jdk> |
202 |
| - <Build-OS>${os.name} ${os.arch} ${os.version}</Build-OS> |
| 235 | + <Build-Timestamp>${git.commit.author.time}</Build-Timestamp> |
| 236 | + <Build-Revision>${git.commit.id}</Build-Revision> |
203 | 237 | </manifestEntries>
|
204 | 238 | <manifest>
|
205 | 239 | <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
0 commit comments