Skip to content

Commit

Permalink
it's module time
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan committed Sep 4, 2024
1 parent e6c11eb commit 3d56c82
Show file tree
Hide file tree
Showing 10 changed files with 179 additions and 3 deletions.
10 changes: 10 additions & 0 deletions aws-lambda-java-events-sdk-transformer/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module aws.lambda.events.sdk.transformer {

exports com.amazonaws.services.lambda.runtime.events.transformers.v1;
exports com.amazonaws.services.lambda.runtime.events.transformers.v1.dynamodb;
exports com.amazonaws.services.lambda.runtime.events.transformers.v2;
exports com.amazonaws.services.lambda.runtime.events.transformers.v2.dynamodb;

requires transitive aws.lambda.events;
requires static aws.java.sdk.dynamodb;
}
21 changes: 21 additions & 0 deletions aws-lambda-java-events-sdk-transformer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,27 @@
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.0.0.Final</version>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>./module-info.java
</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
11 changes: 11 additions & 0 deletions aws-lambda-java-events/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module aws.lambda.events {

exports com.amazonaws.services.lambda.runtime.events;
exports com.amazonaws.services.lambda.runtime.events.models;
exports com.amazonaws.services.lambda.runtime.events.models.dynamodb;
exports com.amazonaws.services.lambda.runtime.events.models.kinesis;
exports com.amazonaws.services.lambda.runtime.events.models.s3;

requires static lombok;
requires org.joda.time;
}
25 changes: 25 additions & 0 deletions aws-lambda-java-events/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,31 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.0.0.Final</version>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>./module-info.java
</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dev</id>
Expand Down
9 changes: 9 additions & 0 deletions aws-lambda-java-log4j2/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module aws.lambda.log4j2 {

exports com.amazonaws.services.lambda.runtime.log4j2;

requires aws.lambda.core;
requires org.apache.logging.log4j;
requires org.apache.logging.log4j.core;

}
26 changes: 25 additions & 1 deletion aws-lambda-java-log4j2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,31 @@
<version>${log4j.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.0.0.Final</version>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>./module-info.java
</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dev</id>
Expand Down
16 changes: 16 additions & 0 deletions aws-lambda-java-runtime-interface-client/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module aws.lambda.runtime.client {

exports com.amazonaws.services.lambda.crac;
exports com.amazonaws.services.lambda.runtime.api.client;
exports com.amazonaws.services.lambda.runtime.api.client.api;
exports com.amazonaws.services.lambda.runtime.api.client.logging;
exports com.amazonaws.services.lambda.runtime.api.client.runtimeapi;
exports com.amazonaws.services.lambda.runtime.api.client.runtimeapi.converters;
exports com.amazonaws.services.lambda.runtime.api.client.runtimeapi.dto;
exports com.amazonaws.services.lambda.runtime.api.client.util;

requires transitive aws.lambda.core;
requires transitive aws.lambda.serialization;
requires jdk.unsupported;

}
21 changes: 21 additions & 0 deletions aws-lambda-java-runtime-interface-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.0.0.Final</version>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>./module-info.java
</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
18 changes: 18 additions & 0 deletions aws-lambda-java-serialization/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module aws.lambda.serialization {

exports com.amazonaws.services.lambda.runtime.serialization;
exports com.amazonaws.services.lambda.runtime.serialization.events;
exports com.amazonaws.services.lambda.runtime.serialization.events.mixins;
exports com.amazonaws.services.lambda.runtime.serialization.events.modules;
exports com.amazonaws.services.lambda.runtime.serialization.events.serializers;
exports com.amazonaws.services.lambda.runtime.serialization.factories;
exports com.amazonaws.services.lambda.runtime.serialization.util;

requires transitive com.fasterxml.jackson.databind;
requires static com.fasterxml.jackson.datatype.joda;
requires static org.json;
requires static com.google.gson;
requires static com.fasterxml.jackson.datatype.jsr310;
requires static com.fasterxml.jackson.datatype.jdk8;

}
25 changes: 23 additions & 2 deletions aws-lambda-java-serialization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,27 @@
</execution>
</executions>
</plugin>
</plugins>
</build>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>1.0.0.Final</version>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>./module-info.java
</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 3d56c82

Please sign in to comment.