Add Gradle plugin support for processing test contexts ahead-of-time

Closes gh-32192
This commit is contained in:
Andy Wilkinson
2022-09-02 15:54:46 +01:00
parent 746ed84120
commit fd28f6d1d6
10 changed files with 323 additions and 64 deletions

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}"
}
}

View File

@@ -0,0 +1,15 @@
plugins {
id 'org.springframework.boot'
id 'org.springframework.boot.aot'
id 'java'
}
dependencies {
implementation project(":library")
}
task('processTestAotClasspath') {
doFirst {
tasks.findByName('processTestAot').classpath.files.each { println it }
}
}

View File

@@ -0,0 +1,19 @@
plugins {
id 'org.springframework.boot'
id 'org.springframework.boot.aot'
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.hibernate.orm:hibernate-core:6.1.1.Final"
}
task('processTestAotClasspath') {
doFirst {
tasks.findByName('processTestAot').classpath.files.each { println it }
}
}