Skip to content

Commit 9397970

Browse files
committed
remove java 1.8 relics
1 parent 0dc57a4 commit 9397970

File tree

3 files changed

+5
-139
lines changed

3 files changed

+5
-139
lines changed

docs/utilities/large_messages.md

Lines changed: 2 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ of amazon-sns-java-extended-client-lib.
9494

9595
## Install
9696

97-
Depending on your version of Java (either Java 1.8 or 11+), the configuration slightly changes.
98-
99-
=== "Maven Java 11+"
97+
=== "Maven"
10098

10199
```xml hl_lines="3-7 16 18 24-27"
102100
<dependencies>
@@ -141,52 +139,7 @@ Depending on your version of Java (either Java 1.8 or 11+), the configuration sl
141139
</build>
142140
```
143141

144-
=== "Maven Java 1.8"
145-
146-
```xml hl_lines="3-7 16 18 24-27"
147-
<dependencies>
148-
...
149-
<dependency>
150-
<groupId>software.amazon.lambda</groupId>
151-
<artifactId>powertools-large-messages</artifactId>
152-
<version>{{ powertools.version }}</version>
153-
</dependency>
154-
...
155-
</dependencies>
156-
...
157-
<!-- configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambda-powertools-java aspects into your project -->
158-
<build>
159-
<plugins>
160-
...
161-
<plugin>
162-
<groupId>org.codehaus.mojo</groupId>
163-
<artifactId>aspectj-maven-plugin</artifactId>
164-
<version>1.14.0</version>
165-
<configuration>
166-
<source>1.8</source>
167-
<target>1.8</target>
168-
<complianceLevel>1.8</complianceLevel>
169-
<aspectLibraries>
170-
<aspectLibrary>
171-
<groupId>software.amazon.lambda</groupId>
172-
<artifactId>powertools-large-messages</artifactId>
173-
</aspectLibrary>
174-
</aspectLibraries>
175-
</configuration>
176-
<executions>
177-
<execution>
178-
<goals>
179-
<goal>compile</goal>
180-
</goals>
181-
</execution>
182-
</executions>
183-
</plugin>
184-
...
185-
</plugins>
186-
</build>
187-
```
188-
189-
=== "Gradle Java 11+"
142+
=== "Gradle"
190143

191144
```groovy hl_lines="3 11"
192145
plugins {
@@ -206,26 +159,6 @@ Depending on your version of Java (either Java 1.8 or 11+), the configuration sl
206159
targetCompatibility = 11 // or higher
207160
```
208161

209-
=== "Gradle Java 1.8"
210-
211-
```groovy hl_lines="3 11"
212-
plugins {
213-
id 'java'
214-
id 'io.freefair.aspectj.post-compile-weaving' version '6.6.3'
215-
}
216-
217-
repositories {
218-
mavenCentral()
219-
}
220-
221-
dependencies {
222-
aspect 'software.amazon.lambda:powertools-large-messages:{{ powertools.version }}'
223-
}
224-
225-
sourceCompatibility = 1.8
226-
targetCompatibility = 1.8
227-
```
228-
229162
## Permissions
230163

231164
As the utility interacts with Amazon S3, the lambda function must have the following permissions

docs/utilities/validation.md

Lines changed: 2 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ This utility provides JSON Schema validation for payloads held within events and
1212
* JMESPath support validate only a sub part of the event
1313

1414
## Install
15-
Depending on your version of Java (either Java 1.8 or 11+), the configuration slightly changes.
1615

17-
=== "Maven Java 11+"
16+
=== "Maven"
1817
```xml hl_lines="3-7 16 18 24-27"
1918
<dependencies>
2019
...
@@ -58,52 +57,7 @@ Depending on your version of Java (either Java 1.8 or 11+), the configuration sl
5857
</build>
5958
```
6059

61-
=== "Maven Java 1.8"
62-
63-
```xml hl_lines="3-7 16 18 24-27"
64-
<dependencies>
65-
...
66-
<dependency>
67-
<groupId>software.amazon.lambda</groupId>
68-
<artifactId>powertools-validation</artifactId>
69-
<version>{{ powertools.version }}</version>
70-
</dependency>
71-
...
72-
</dependencies>
73-
...
74-
<!-- configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambda-powertools-java aspects into your project -->
75-
<build>
76-
<plugins>
77-
...
78-
<plugin>
79-
<groupId>org.codehaus.mojo</groupId>
80-
<artifactId>aspectj-maven-plugin</artifactId>
81-
<version>1.14.0</version>
82-
<configuration>
83-
<source>1.8</source>
84-
<target>1.8</target>
85-
<complianceLevel>1.8</complianceLevel>
86-
<aspectLibraries>
87-
<aspectLibrary>
88-
<groupId>software.amazon.lambda</groupId>
89-
<artifactId>powertools-validation</artifactId>
90-
</aspectLibrary>
91-
</aspectLibraries>
92-
</configuration>
93-
<executions>
94-
<execution>
95-
<goals>
96-
<goal>compile</goal>
97-
</goals>
98-
</execution>
99-
</executions>
100-
</plugin>
101-
...
102-
</plugins>
103-
</build>
104-
```
105-
106-
=== "Gradle Java 11+"
60+
=== "Gradle"
10761

10862
```groovy hl_lines="3 11"
10963
plugins {
@@ -123,27 +77,6 @@ Depending on your version of Java (either Java 1.8 or 11+), the configuration sl
12377
targetCompatibility = 11 // or higher
12478
```
12579

126-
=== "Gradle Java 1.8"
127-
128-
```groovy hl_lines="3 11"
129-
plugins {
130-
id 'java'
131-
id 'io.freefair.aspectj.post-compile-weaving' version '6.6.3'
132-
}
133-
134-
repositories {
135-
mavenCentral()
136-
}
137-
138-
dependencies {
139-
aspect 'software.amazon.lambda:powertools-validation:{{ powertools.version }}'
140-
}
141-
142-
sourceCompatibility = 1.8
143-
targetCompatibility = 1.8
144-
```
145-
146-
14780
## Validating events
14881

14982
You can validate inbound and outbound events using `@Validation` annotation.

examples/powertools-examples-core-utilities/kotlin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies {
1818
aspect("software.amazon.lambda:powertools-tracing:2.0.0-SNAPSHOT")
1919
aspect("software.amazon.lambda:powertools-logging-log4j:2.0.0-SNAPSHOT")
2020
aspect("software.amazon.lambda:powertools-metrics:2.0.0-SNAPSHOT")
21-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10")
21+
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.24")
2222
}
2323

2424
kotlin {

0 commit comments

Comments
 (0)