Skip to content

Commit 7a50d20

Browse files
authored
Update pom for release (#37)
Update pom for release: * Restore snapshot version * Update groupId to dev.cdevents * Update plugin versions * Configure reproducible archive timestamp * Update dependencies * Update maven wrapper to 3.9.1 * Use jackson-bom
1 parent 758569f commit 7a50d20

File tree

3 files changed

+78
-44
lines changed

3 files changed

+78
-44
lines changed

.mvn/wrapper/maven-wrapper.jar

1.17 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
# to you under the Apache License, Version 2.0 (the
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
1111
# Unless required by applicable law or agreed to in writing,
1212
# software distributed under the License is distributed on an
1313
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
18-
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.1/apache-maven-3.9.1-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar

pom.xml

Lines changed: 73 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
<groupId>dev.cdevents.sdk-java</groupId>
6+
<groupId>dev.cdevents</groupId>
77
<artifactId>cdevents-sdk-java</artifactId>
8-
<version>v0.1.0-draft6</version>
8+
<version>0.1.0-SNAPSHOT</version>
99

1010
<name>cdevents-sdk-java</name>
1111
<description>cdevents java sdk</description>
@@ -24,21 +24,24 @@
2424
<cloudevents.version>2.3.0</cloudevents.version>
2525
<junit-jupiter.version>5.8.2</junit-jupiter.version>
2626
<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>
2829
<project.github.repository>cdevents/sdk-java</project.github.repository>
2930
<nexus.url>https://s01.oss.sonatype.org</nexus.url>
3031
<repository.url>git@github.com:${project.github.repository}.git</repository.url>
3132
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3233
<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>
3639
<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>
4043
<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>
4245
<version.source.plugin>3.2.1</version.source.plugin>
4346
</properties>
4447

@@ -77,59 +80,69 @@
7780
<url>${repository.url}</url>
7881
</scm>
7982

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+
8095
<dependencies>
8196
<dependency>
8297
<groupId>io.cloudevents</groupId>
8398
<artifactId>cloudevents-core</artifactId>
8499
<version>${cloudevents.version}</version>
85100
</dependency>
86101

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-
102102
<dependency>
103103
<groupId>com.fasterxml.jackson.core</groupId>
104104
<artifactId>jackson-databind</artifactId>
105-
<version>${jackson.version}</version>
106105
</dependency>
107106

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+
108118
<dependency>
109119
<groupId>org.slf4j</groupId>
110120
<artifactId>slf4j-api</artifactId>
111-
<version>2.0.6</version>
121+
<version>${slf4j.version}</version>
112122
</dependency>
113123

114124
<dependency>
115125
<groupId>org.slf4j</groupId>
116126
<artifactId>slf4j-log4j12</artifactId>
117-
<version>2.0.6</version>
127+
<version>${slf4j.version}</version>
128+
<optional>true</optional>
129+
<scope>runtime</scope>
118130
</dependency>
119131

132+
<!-- Test dependencies -->
120133
<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>
124138
</dependency>
125139

126140
<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>
130145
</dependency>
131-
132-
133146
</dependencies>
134147
<build>
135148
<pluginManagement>
@@ -190,16 +203,37 @@
190203
<plugin>
191204
<groupId>org.apache.maven.plugins</groupId>
192205
<artifactId>maven-surefire-plugin</artifactId>
193-
<version>2.22.0</version>
206+
<version>3.0.0</version>
194207
</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>
195229
<plugin>
196230
<groupId>org.apache.maven.plugins</groupId>
197231
<artifactId>maven-jar-plugin</artifactId>
198232
<configuration>
199233
<archive>
200234
<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>
203237
</manifestEntries>
204238
<manifest>
205239
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>

0 commit comments

Comments
 (0)