Skip to content

Commit fa7224d

Browse files
committed
Prepare project for initial release to Maven Central.
1 parent 4f7bc3f commit fa7224d

File tree

7 files changed

+104
-118
lines changed

7 files changed

+104
-118
lines changed

aws-serverless-java-container-core/pom.xml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,17 @@
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>
66

7-
<groupId>com.amazonaws.serverless</groupId>
87
<artifactId>aws-serverless-java-container-core</artifactId>
98
<name>AWS Serverless Java container support - Core</name>
109
<description>Allows Java applications written for a servlet container to run in AWS Lambda</description>
11-
<url>https://aws.amazon.com/lambda/</url>
12-
<version>0.1</version>
10+
<url>https://aws.amazon.com/lambda</url>
11+
<version>0.2-SNAPSHOT</version>
1312

14-
<scm>
15-
<url>https://github.com/awslabs/aws-serverless-java-container.git</url>
16-
</scm>
17-
18-
<licenses>
19-
<license>
20-
<name>The Apache Software License, Version 2.0</name>
21-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
22-
<distribution>repo</distribution>
23-
</license>
24-
</licenses>
25-
26-
<properties>
27-
<maven.compiler.source>1.8</maven.compiler.source>
28-
<maven.compiler.target>1.8</maven.compiler.target>
29-
</properties>
13+
<parent>
14+
<groupId>com.amazonaws.serverless</groupId>
15+
<artifactId>aws-serverless-java-container</artifactId>
16+
<version>0.2-SNAPSHOT</version>
17+
</parent>
3018

3119
<dependencies>
3220
<!-- https://mvnrepository.com/artifact/com.amazonaws/aws-lambda-java-core -->
@@ -81,13 +69,4 @@
8169
</dependency>
8270
</dependencies>
8371

84-
<build>
85-
<plugins>
86-
<plugin>
87-
<groupId>org.apache.maven.plugins</groupId>
88-
<artifactId>maven-javadoc-plugin</artifactId>
89-
<version>2.10.4</version>
90-
</plugin>
91-
</plugins>
92-
</build>
93-
</project>
72+
</project>

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsHttpServletResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* Basic implementation of the <code>HttpServletResponse</code> object. This is used by the <code>AwsProxyHttpServletResponseWriter</code>
3131
* to generate an <code>AwsProxyResponse</code> object. We have an additional <code>getAwsResponseHeaders()</code> method
32-
* that returns a <code>Map<String, String</code> that can be used for our proxy response object.
32+
* that returns a {@code Map<String, String>} that can be used for our proxy response object.
3333
*/
3434
public class AwsHttpServletResponse
3535
implements HttpServletResponse {

aws-serverless-java-container-jersey/pom.xml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,19 @@
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>
66

7-
<groupId>com.amazonaws.serverless</groupId>
87
<artifactId>aws-serverless-java-container-jersey</artifactId>
98
<name>AWS Serverless Java container support - Jersey implementation</name>
109
<description>Allows Java applications written for Jersey to run in AWS Lambda</description>
11-
<url>https://aws.amazon.com/lambda/</url>
12-
<version>0.1</version>
10+
<url>https://aws.amazon.com/lambda</url>
11+
<version>0.2-SNAPSHOT</version>
1312

14-
<scm>
15-
<url>https://github.com/awslabs/aws-serverless-java-container.git</url>
16-
</scm>
17-
18-
<licenses>
19-
<license>
20-
<name>The Apache Software License, Version 2.0</name>
21-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
22-
<distribution>repo</distribution>
23-
</license>
24-
</licenses>
13+
<parent>
14+
<groupId>com.amazonaws.serverless</groupId>
15+
<artifactId>aws-serverless-java-container</artifactId>
16+
<version>0.2-SNAPSHOT</version>
17+
</parent>
2518

2619
<properties>
27-
<maven.compiler.source>1.8</maven.compiler.source>
28-
<maven.compiler.target>1.8</maven.compiler.target>
2920
<jackson.version>2.8.4</jackson.version>
3021
<jersey.version>2.24</jersey.version>
3122
</properties>
@@ -35,7 +26,7 @@
3526
<dependency>
3627
<groupId>com.amazonaws.serverless</groupId>
3728
<artifactId>aws-serverless-java-container-core</artifactId>
38-
<version>0.1</version>
29+
<version>0.2-SNAPSHOT</version>
3930
</dependency>
4031

4132
<!-- https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-server -->
@@ -100,13 +91,4 @@
10091

10192
</dependencies>
10293

103-
<build>
104-
<plugins>
105-
<plugin>
106-
<groupId>org.apache.maven.plugins</groupId>
107-
<artifactId>maven-javadoc-plugin</artifactId>
108-
<version>2.10.4</version>
109-
</plugin>
110-
</plugins>
111-
</build>
112-
</project>
94+
</project>

aws-serverless-java-container-jersey/src/main/java/com/amazonaws/serverless/proxy/jersey/JerseyAwsProxyServletRequestFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
* by Jersey to generate a Servlet request given an <code>AwsProxyRequest</code> event.
2525
*
2626
* <pre>
27-
* {@code
27+
* <code>
2828
* ResourceConfig app = new ResourceConfig().packages("my.app.package")
2929
* .register(new AbstractBinder() {
30-
* @Override
30+
* {@literal @}Override
3131
* protected void configure() {
3232
* bindFactory(JerseyAwsProxyServletRequestFactory.class)
3333
* .to(HttpServletRequest.class)
3434
* .in(RequestScoped.class);
3535
* }
3636
* });
37-
* }
37+
* </code>
3838
* </pre>
3939
*/
4040
public class JerseyAwsProxyServletRequestFactory

aws-serverless-java-container-spark/pom.xml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,19 @@
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>
66

7-
<groupId>com.amazonaws.serverless</groupId>
87
<artifactId>aws-serverless-java-container-spark</artifactId>
98
<name>AWS Serverless Java container support - Spark implementation</name>
109
<description>Allows Java applications written for Spark to run in AWS Lambda</description>
11-
<url>https://aws.amazon.com/lambda/</url>
12-
<version>0.1</version>
10+
<url>https://aws.amazon.com/lambda</url>
11+
<version>0.2-SNAPSHOT</version>
1312

14-
<scm>
15-
<url>https://github.com/awslabs/aws-serverless-java-container.git</url>
16-
</scm>
17-
18-
<licenses>
19-
<license>
20-
<name>The Apache Software License, Version 2.0</name>
21-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
22-
<distribution>repo</distribution>
23-
</license>
24-
</licenses>
13+
<parent>
14+
<groupId>com.amazonaws.serverless</groupId>
15+
<artifactId>aws-serverless-java-container</artifactId>
16+
<version>0.2-SNAPSHOT</version>
17+
</parent>
2518

2619
<properties>
27-
<maven.compiler.source>1.8</maven.compiler.source>
28-
<maven.compiler.target>1.8</maven.compiler.target>
2920
<jackson.version>2.8.4</jackson.version>
3021
<spark.version>2.5.3</spark.version>
3122
</properties>
@@ -35,7 +26,7 @@
3526
<dependency>
3627
<groupId>com.amazonaws.serverless</groupId>
3728
<artifactId>aws-serverless-java-container-core</artifactId>
38-
<version>0.1</version>
29+
<version>0.2-SNAPSHOT</version>
3930
</dependency>
4031

4132
<!-- https://mvnrepository.com/artifact/com.sparkjava/spark-core -->
@@ -75,13 +66,4 @@
7566
</dependency>
7667
</dependencies>
7768

78-
<build>
79-
<plugins>
80-
<plugin>
81-
<groupId>org.apache.maven.plugins</groupId>
82-
<artifactId>maven-javadoc-plugin</artifactId>
83-
<version>2.10.4</version>
84-
</plugin>
85-
</plugins>
86-
</build>
87-
</project>
69+
</project>

aws-serverless-java-container-spring/pom.xml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,21 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
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">
5+
<modelVersion>4.0.0</modelVersion>
56

6-
<groupId>com.amazonaws.serverless</groupId>
77
<artifactId>aws-serverless-java-container-spring</artifactId>
88
<name>AWS Serverless Java container support - Spring implementation</name>
99
<description>Allows Java applications written for the Spring framework to run in AWS Lambda</description>
10-
<url>https://aws.amazon.com/lambda/</url>
11-
<version>0.1</version>
12-
13-
<scm>
14-
<url>https://github.com/awslabs/aws-serverless-java-container.git</url>
15-
</scm>
10+
<url>https://aws.amazon.com/lambda</url>
11+
<version>0.2-SNAPSHOT</version>
1612

17-
<licenses>
18-
<license>
19-
<name>The Apache Software License, Version 2.0</name>
20-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
21-
<distribution>repo</distribution>
22-
</license>
23-
</licenses>
24-
<modelVersion>4.0.0</modelVersion>
13+
<parent>
14+
<groupId>com.amazonaws.serverless</groupId>
15+
<artifactId>aws-serverless-java-container</artifactId>
16+
<version>0.2-SNAPSHOT</version>
17+
</parent>
2518

2619
<properties>
27-
<maven.compiler.source>1.8</maven.compiler.source>
28-
<maven.compiler.target>1.8</maven.compiler.target>
2920
<spring.version>4.3.4.RELEASE</spring.version>
3021
<jackson.version>2.8.4</jackson.version>
3122
</properties>
@@ -35,7 +26,7 @@
3526
<dependency>
3627
<groupId>com.amazonaws.serverless</groupId>
3728
<artifactId>aws-serverless-java-container-core</artifactId>
38-
<version>0.1</version>
29+
<version>0.2-SNAPSHOT</version>
3930
</dependency>
4031

4132
<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
@@ -82,13 +73,13 @@
8273
<version>${jackson.version}</version>
8374
<scope>test</scope>
8475
</dependency>
76+
8577
<dependency>
8678
<groupId>com.fasterxml.jackson.core</groupId>
8779
<artifactId>jackson-databind</artifactId>
8880
<version>${jackson.version}</version>
8981
<scope>test</scope>
9082
</dependency>
91-
92-
9383
</dependencies>
94-
</project>
84+
85+
</project>

pom.xml

Lines changed: 62 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,27 @@
77
<groupId>com.amazonaws.serverless</groupId>
88
<artifactId>aws-serverless-java-container</artifactId>
99
<packaging>pom</packaging>
10-
<version>0.1</version>
10+
<version>0.2-SNAPSHOT</version>
1111
<name>AWS Serverless Java container</name>
1212

13+
<!-- https://mvnrepository.com/artifact/org.sonatype.oss/oss-parent -->
14+
<parent>
15+
<groupId>org.sonatype.oss</groupId>
16+
<artifactId>oss-parent</artifactId>
17+
<version>7</version>
18+
</parent>
19+
20+
<modules>
21+
<module>aws-serverless-java-container-core</module>
22+
<module>aws-serverless-java-container-jersey</module>
23+
<module>aws-serverless-java-container-spark</module>
24+
<module>aws-serverless-java-container-spring</module>
25+
</modules>
26+
1327
<scm>
1428
<url>https://github.com/awslabs/aws-serverless-java-container.git</url>
29+
<connection>scm:git:[email protected]:awslabs/aws-serverless-java-container.git</connection>
30+
<developerConnection>scm:git:[email protected]:awslabs/aws-serverless-java-container.git</developerConnection>
1531
</scm>
1632

1733
<licenses>
@@ -22,13 +38,6 @@
2238
</license>
2339
</licenses>
2440

25-
<modules>
26-
<module>aws-serverless-java-container-core</module>
27-
<module>aws-serverless-java-container-jersey</module>
28-
<module>aws-serverless-java-container-spark</module>
29-
<module>aws-serverless-java-container-spring</module>
30-
</modules>
31-
3241
<build>
3342
<pluginManagement>
3443
<plugins>
@@ -40,11 +49,54 @@
4049
<target>1.8</target>
4150
</configuration>
4251
</plugin>
52+
53+
<plugin>
54+
<groupId>org.apache.maven.plugins</groupId>
55+
<artifactId>maven-javadoc-plugin</artifactId>
56+
<version>2.10.4</version>
57+
</plugin>
58+
59+
<plugin>
60+
<groupId>org.apache.maven.plugins</groupId>
61+
<artifactId>maven-release-plugin</artifactId>
62+
<configuration>
63+
<preparationGoals>clean verify install</preparationGoals>
64+
<pushChanges>false</pushChanges>
65+
<localCheckout>true</localCheckout>
66+
</configuration>
67+
</plugin>
4368
</plugins>
4469
</pluginManagement>
4570
</build>
4671

47-
<dependencies>
72+
<profiles>
73+
<profile>
74+
<id>release-sign-artifacts</id>
75+
<activation>
76+
<property>
77+
<name>performRelease</name>
78+
<value>true</value>
79+
</property>
80+
</activation>
81+
<build>
82+
<plugins>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-gpg-plugin</artifactId>
86+
<version>1.4</version>
87+
<executions>
88+
<execution>
89+
<id>sign-artifacts</id>
90+
<phase>verify</phase>
91+
<goals>
92+
<goal>sign</goal>
93+
</goals>
94+
</execution>
95+
</executions>
96+
</plugin>
97+
</plugins>
98+
</build>
99+
</profile>
100+
</profiles>
48101

49-
</dependencies>
50102
</project>

0 commit comments

Comments
 (0)