Skip to content

Commit 8ffef39

Browse files
wangyb-AAlex Wang
andauthored
Update POM file (#122)
- Parent: - Add gpg sign plugin - Add maven publish plugin - Add OSS information (url, licenses, developers, scm) - Add flattern plugin so that we can manage the information in the parent pom - Children: - Include source file - Include javadoc file Co-authored-by: Alex Wang <wangyb@amazon.com>
1 parent 30fc861 commit 8ffef39

6 files changed

Lines changed: 205 additions & 5 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ Thumbs.db
4141
.aws-sam/
4242
samconfig.toml
4343
samconfig.toml.bak
44+
45+
# OSS
46+
.flattened-pom.xml

examples/pom.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.lambda.durable</groupId>
99
<artifactId>aws-durable-execution-sdk-java-parent</artifactId>
10-
<version>0.5.0-SNAPSHOT</version>
10+
<version>0.5.0-beta</version>
1111
</parent>
1212

1313
<artifactId>aws-durable-execution-sdk-java-examples</artifactId>
@@ -107,6 +107,30 @@
107107
</execution>
108108
</executions>
109109
</plugin>
110+
<plugin>
111+
<groupId>org.apache.maven.plugins</groupId>
112+
<artifactId>maven-source-plugin</artifactId>
113+
<executions>
114+
<execution>
115+
<id>attach-sources</id>
116+
<goals>
117+
<goal>jar-no-fork</goal>
118+
</goals>
119+
</execution>
120+
</executions>
121+
</plugin>
122+
<plugin>
123+
<groupId>org.apache.maven.plugins</groupId>
124+
<artifactId>maven-javadoc-plugin</artifactId>
125+
<executions>
126+
<execution>
127+
<id>attach-javadocs</id>
128+
<goals>
129+
<goal>jar</goal>
130+
</goals>
131+
</execution>
132+
</executions>
133+
</plugin>
110134
</plugins>
111135
</build>
112136
</project>

pom.xml

Lines changed: 102 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,35 @@
66

77
<groupId>software.amazon.lambda.durable</groupId>
88
<artifactId>aws-durable-execution-sdk-java-parent</artifactId>
9-
<version>0.5.0-SNAPSHOT</version>
9+
<version>0.5.0-beta</version>
1010
<packaging>pom</packaging>
1111

1212
<name>AWS Lambda Durable Execution SDK Parent</name>
1313
<description>Parent POM for AWS Lambda Durable Execution SDK and Examples</description>
14+
<url>https://github.com/aws/aws-lambda-java-durable-execution-sdk</url>
15+
16+
<licenses>
17+
<license>
18+
<name>Apache License 2.0</name>
19+
<url>http://aws.amazon.com/apache2.0</url>
20+
<distribution>repo</distribution>
21+
</license>
22+
</licenses>
23+
24+
<developers>
25+
<developer>
26+
<id>amazonwebservices</id>
27+
<organization>Amazon Web Services</organization>
28+
<organizationUrl>http://aws.amazon.com</organizationUrl>
29+
<roles>
30+
<role>developer</role>
31+
</roles>
32+
</developer>
33+
</developers>
34+
35+
<scm>
36+
<url>https://github.com/aws/aws-lambda-java-durable-execution-sdk.git</url>
37+
</scm>
1438

1539
<modules>
1640
<module>sdk</module>
@@ -124,6 +148,24 @@
124148
</java>
125149
</configuration>
126150
</plugin>
151+
<plugin>
152+
<groupId>org.apache.maven.plugins</groupId>
153+
<artifactId>maven-gpg-plugin</artifactId>
154+
<version>3.2.8</version>
155+
</plugin>
156+
<plugin>
157+
<groupId>org.apache.maven.plugins</groupId>
158+
<artifactId>maven-source-plugin</artifactId>
159+
<version>3.3.1</version>
160+
</plugin>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-javadoc-plugin</artifactId>
164+
<version>3.11.2</version>
165+
<configuration>
166+
<doclint>none</doclint>
167+
</configuration>
168+
</plugin>
127169
</plugins>
128170
</pluginManagement>
129171

@@ -150,6 +192,65 @@
150192
<groupId>com.diffplug.spotless</groupId>
151193
<artifactId>spotless-maven-plugin</artifactId>
152194
</plugin>
195+
<!-- Flatten the POM so that we can store the oss info in parent POM -->
196+
<plugin>
197+
<groupId>org.codehaus.mojo</groupId>
198+
<artifactId>flatten-maven-plugin</artifactId>
199+
<version>1.7.3</version>
200+
<configuration>
201+
<flattenMode>oss</flattenMode>
202+
</configuration>
203+
<executions>
204+
<!-- enable flattening -->
205+
<execution>
206+
<id>flatten</id>
207+
<phase>process-resources</phase>
208+
<goals>
209+
<goal>flatten</goal>
210+
</goals>
211+
</execution>
212+
<!-- ensure proper cleanup -->
213+
<execution>
214+
<id>flatten.clean</id>
215+
<goals>
216+
<goal>clean</goal>
217+
</goals>
218+
</execution>
219+
</executions>
220+
</plugin>
153221
</plugins>
154222
</build>
223+
224+
<profiles>
225+
<profile>
226+
<id>publishing</id>
227+
<build>
228+
<plugins>
229+
<plugin>
230+
<groupId>org.apache.maven.plugins</groupId>
231+
<artifactId>maven-gpg-plugin</artifactId>
232+
<executions>
233+
<execution>
234+
<id>sign-artifacts</id>
235+
<phase>verify</phase>
236+
<goals>
237+
<goal>sign</goal>
238+
</goals>
239+
</execution>
240+
</executions>
241+
</plugin>
242+
<plugin>
243+
<groupId>org.sonatype.central</groupId>
244+
<artifactId>central-publishing-maven-plugin</artifactId>
245+
<version>0.9.0</version>
246+
<extensions>true</extensions>
247+
<configuration>
248+
<serverId>central</serverId>
249+
<autoPublish>false</autoPublish>
250+
</configuration>
251+
</plugin>
252+
</plugins>
253+
</build>
254+
</profile>
255+
</profiles>
155256
</project>

sdk-integration-tests/pom.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.lambda.durable</groupId>
99
<artifactId>aws-durable-execution-sdk-java-parent</artifactId>
10-
<version>0.5.0-SNAPSHOT</version>
10+
<version>0.5.0-beta</version>
1111
</parent>
1212

1313
<artifactId>aws-durable-execution-sdk-java-integration-tests</artifactId>
@@ -58,6 +58,30 @@
5858
</execution>
5959
</executions>
6060
</plugin>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-source-plugin</artifactId>
64+
<executions>
65+
<execution>
66+
<id>attach-sources</id>
67+
<goals>
68+
<goal>jar-no-fork</goal>
69+
</goals>
70+
</execution>
71+
</executions>
72+
</plugin>
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-javadoc-plugin</artifactId>
76+
<executions>
77+
<execution>
78+
<id>attach-javadocs</id>
79+
<goals>
80+
<goal>jar</goal>
81+
</goals>
82+
</execution>
83+
</executions>
84+
</plugin>
6185
</plugins>
6286
</build>
6387
</project>

sdk-testing/pom.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.lambda.durable</groupId>
99
<artifactId>aws-durable-execution-sdk-java-parent</artifactId>
10-
<version>0.5.0-SNAPSHOT</version>
10+
<version>0.5.0-beta</version>
1111
</parent>
1212

1313
<artifactId>aws-durable-execution-sdk-java-testing</artifactId>
@@ -62,6 +62,30 @@
6262
<groupId>org.apache.maven.plugins</groupId>
6363
<artifactId>maven-compiler-plugin</artifactId>
6464
</plugin>
65+
<plugin>
66+
<groupId>org.apache.maven.plugins</groupId>
67+
<artifactId>maven-source-plugin</artifactId>
68+
<executions>
69+
<execution>
70+
<id>attach-sources</id>
71+
<goals>
72+
<goal>jar-no-fork</goal>
73+
</goals>
74+
</execution>
75+
</executions>
76+
</plugin>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-javadoc-plugin</artifactId>
80+
<executions>
81+
<execution>
82+
<id>attach-javadocs</id>
83+
<goals>
84+
<goal>jar</goal>
85+
</goals>
86+
</execution>
87+
</executions>
88+
</plugin>
6589
</plugins>
6690
</build>
6791
</project>

sdk/pom.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.lambda.durable</groupId>
99
<artifactId>aws-durable-execution-sdk-java-parent</artifactId>
10-
<version>0.5.0-SNAPSHOT</version>
10+
<version>0.5.0-beta</version>
1111
</parent>
1212

1313
<artifactId>aws-durable-execution-sdk-java</artifactId>
@@ -68,6 +68,30 @@
6868
<groupId>org.apache.maven.plugins</groupId>
6969
<artifactId>maven-surefire-plugin</artifactId>
7070
</plugin>
71+
<plugin>
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-source-plugin</artifactId>
74+
<executions>
75+
<execution>
76+
<id>attach-sources</id>
77+
<goals>
78+
<goal>jar-no-fork</goal>
79+
</goals>
80+
</execution>
81+
</executions>
82+
</plugin>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-javadoc-plugin</artifactId>
86+
<executions>
87+
<execution>
88+
<id>attach-javadocs</id>
89+
<goals>
90+
<goal>jar</goal>
91+
</goals>
92+
</execution>
93+
</executions>
94+
</plugin>
7195
</plugins>
7296
</build>
7397
</project>

0 commit comments

Comments
 (0)