Add Maven plugin support for processing test contexts Ahead-of-time

Refactor and update the Spring Boot Maven Plugin so that it can
be used to perform AOT processing of test classes.

Closes gh-32191
This commit is contained in:
Phillip Webb
2022-08-29 21:23:39 -07:00
parent e599a70425
commit 09bd531fe5
13 changed files with 639 additions and 158 deletions

View File

@@ -132,6 +132,13 @@ publishing.publications.withType(MavenPublication) {
delegate.useDefaultDelimiters('false')
}
}
plugin {
delegate.groupId('org.graalvm.buildtools')
delegate.artifactId('native-maven-plugin')
configuration {
delegate.extensions('true')
}
}
plugin {
delegate.groupId('io.github.git-commit-id')
delegate.artifactId('git-commit-id-maven-plugin')
@@ -226,6 +233,13 @@ publishing.publications.withType(MavenPublication) {
profiles {
profile {
delegate.id("native")
delegate.dependencies {
dependency {
delegate.groupId('org.junit.platform')
delegate.artifactId('junit-platform-launcher')
delegate.scope('test')
}
}
build {
plugins {
plugin {
@@ -238,7 +252,12 @@ publishing.publications.withType(MavenPublication) {
delegate.goal('process-aot')
}
}
}
execution {
delegate.id('process-test-aot')
goals {
delegate.goal('process-test-aot')
}
} }
}
plugin {
delegate.groupId('org.graalvm.buildtools')