Add support for invoking AOT to the Gradle plugin

Closes gh-30527
This commit is contained in:
Andy Wilkinson
2022-04-06 12:01:33 +01:00
parent fd7bb53180
commit fcf45d5c22
16 changed files with 413 additions and 9 deletions

View File

@@ -0,0 +1,11 @@
plugins {
id 'org.springframework.boot' version '{version}'
}
apply plugin: 'org.graalvm.buildtools.native'
task('aotPluginApplied') {
doFirst {
println "org.springframework.boot.aot applied = ${plugins.hasPlugin('org.springframework.boot.aot')}"
}
}

View File

@@ -0,0 +1,11 @@
plugins {
id 'org.springframework.boot'
id 'org.springframework.boot.aot'
id 'java'
}
task('taskExists') {
doFirst {
println "${taskName} exists = ${tasks.findByName(taskName) != null}"
}
}

View File

@@ -0,0 +1,10 @@
plugins {
id 'org.springframework.boot'
id 'java'
}
task('taskExists') {
doFirst {
println "${taskName} exists = ${tasks.findByName(taskName) != null}"
}
}