File tree 9 files changed +51
-17
lines changed
test-suite-aws-lambda-events
9 files changed +51
-17
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ end_of_line = lf
12
12
[{* .bat,* .cmd} ]
13
13
end_of_line = crlf
14
14
15
+ [{* .mustache,* .ftl} ]
16
+ insert_final_newline = false
17
+
15
18
[* .java ]
16
19
indent_size = 4
17
20
tab_width = 4
Original file line number Diff line number Diff line change 34
34
runs-on : ubuntu-latest
35
35
strategy :
36
36
max-parallel : 6
37
- matrix : ${{ fromJson(needs.build_matrix.outputs.matrix) }}
37
+ matrix :
38
+ java : ['17', '21']
39
+ native_test_task : ${{ fromJson(needs.build_matrix.outputs.matrix).native_test_task }}
38
40
env :
39
41
GRADLE_ENTERPRISE_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
40
42
GRADLE_ENTERPRISE_CACHE_USERNAME : ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
46
48
id : pre-build
47
49
with :
48
50
distribution : ' graalvm'
49
- java : ' 17 '
51
+ java : ${{ matrix.java }}
50
52
- name : Build Steps
51
53
uses : micronaut-projects/github-actions/graalvm/build@master
52
54
id : build
60
62
uses : micronaut-projects/github-actions/graalvm/post-build@master
61
63
id : post-build
62
64
with :
63
- java : ' 17 '
65
+ java : ${{ matrix.java }}
Original file line number Diff line number Diff line change 19
19
runs-on : ubuntu-latest
20
20
strategy :
21
21
matrix :
22
- java : ['17']
22
+ java : ['17', '21' ]
23
23
env :
24
24
GRADLE_ENTERPRISE_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
25
25
GRADLE_ENTERPRISE_CACHE_USERNAME : ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
64
64
./gradlew check --no-daemon --continue
65
65
66
66
- name : " 🔎 Run static analysis"
67
- if : env.SONAR_TOKEN != ''
67
+ if : env.SONAR_TOKEN != '' && matrix.java == '17'
68
68
run : |
69
69
./gradlew sonar
70
70
Original file line number Diff line number Diff line change @@ -11,3 +11,16 @@ developers=Graeme Rocher
11
11
org.gradle.caching =true
12
12
# For sonarqube
13
13
org.gradle.jvmargs =-XX:MaxMetaspaceSize=1g
14
+
15
+ # No matter which Java toolchain we use, the Kotlin Daemon is always invoked by the current JDK.
16
+ # Therefor to fix Kapt errors when running tests under Java 21, we need to open up some modules for the Kotlin Daemon.
17
+ kotlin.daemon.jvmargs =--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED\
18
+ --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
19
+ --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
20
+ --add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
21
+ --add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \
22
+ --add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
23
+ --add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
24
+ --add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \
25
+ --add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
26
+ --add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ micronaut = "4.1.9"
3
3
micronaut-docs = " 2.0.0"
4
4
micronaut-test = " 4.0.2"
5
5
micronaut-testresources = " 2.0.0"
6
- groovy = " 4.0.13 "
6
+ groovy = " 4.0.15 "
7
7
spock = " 2.3-groovy-4.0"
8
8
9
9
bouncycastle = ' 1.70'
@@ -53,7 +53,6 @@ micronaut-gradle-plugin = "4.1.1"
53
53
javapoet = { module = " com.squareup:javapoet" , version.ref = " javapoet" }
54
54
55
55
micronaut-core = { module = ' io.micronaut:micronaut-core-bom' , version.ref = ' micronaut' }
56
- micronaut-logging = { module = " io.micronaut.discovery:micronaut-logging-bom" , version.ref = " micronaut-logging" }
57
56
micronaut-discovery-client = { module = " io.micronaut.discovery:micronaut-discovery-client-bom" , version.ref = " micronaut-discovery" }
58
57
micronaut-groovy = { module = " io.micronaut.groovy:micronaut-groovy-bom" , version.ref = " micronaut-groovy" }
59
58
micronaut-mongodb = { module = " io.micronaut.mongodb:micronaut-mongo-bom" , version.ref = " micronaut-mongodb" }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ pluginManagement {
6
6
}
7
7
8
8
plugins {
9
- id(" io.micronaut.build.shared.settings" ) version " 6.5.7 "
9
+ id(" io.micronaut.build.shared.settings" ) version " 6.6.0 "
10
10
}
11
11
12
12
enableFeaturePreview(" TYPESAFE_PROJECT_ACCESSORS" )
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id(" java-library" )
3
+ id(" io.micronaut.build.internal.common" )
3
4
}
4
5
dependencies {
5
6
api(libs.aws.lambda.java.runtimeinterfaceclient)
6
7
api(libs.managed.aws.lambda.events)
7
8
implementation(mnTest.micronaut.test.junit5)
8
9
implementation(projects.micronautFunctionAws)
9
10
}
11
+
12
+ spotless {
13
+ java {
14
+ targetExclude(" **/lambda/events/**" )
15
+ }
16
+ }
17
+
18
+ tasks.withType<Checkstyle > {
19
+ enabled = false
20
+ }
Original file line number Diff line number Diff line change @@ -22,16 +22,11 @@ tasks {
22
22
named(" test" , Test ::class ) {
23
23
useJUnitPlatform()
24
24
}
25
+ }
25
26
26
- named(" compileTestKotlin" , org.jetbrains.kotlin.gradle.tasks.KotlinCompile ::class ) {
27
- kotlinOptions {
28
- jvmTarget = " 17"
29
- javaParameters = true
30
- }
27
+ kotlin {
28
+ jvmToolchain {
29
+ languageVersion.set(JavaLanguageVersion .of(17 ))
31
30
}
32
- }
33
31
34
- java {
35
- sourceCompatibility = JavaVersion .toVersion(" 17" )
36
- targetCompatibility = JavaVersion .toVersion(" 17" )
37
32
}
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id(" java-library" )
3
3
id(" io.micronaut.build.internal.aws-tests-java" )
4
+ id(" io.micronaut.build.internal.common" )
4
5
}
5
6
dependencies {
6
7
testImplementation(projects.micronautFunctionAws)
@@ -16,3 +17,13 @@ tasks {
16
17
systemProperty(" aws.region" , " us-east-1" )
17
18
}
18
19
}
20
+
21
+ spotless {
22
+ java {
23
+ targetExclude(" **/docs/**" )
24
+ }
25
+ }
26
+
27
+ tasks.withType<Checkstyle > {
28
+ enabled = false
29
+ }
You can’t perform that action at this time.
0 commit comments