Make transitive runtime dependencies available to AOT processing
Closes gh-31970
This commit is contained in:
@@ -60,4 +60,10 @@ class SpringBootAotPluginIntegrationTests {
|
||||
assertThat(this.gradleBuild.build("generateAotSourcesClasspath").getOutput()).contains("library.jar");
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
void generateAotSourcesHasTransitiveRuntimeDependenciesOnItsClasspath() {
|
||||
String output = this.gradleBuild.build("generateAotSourcesClasspath").getOutput();
|
||||
assertThat(output).contains("org.jboss.logging/jboss-logging");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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('generateAotSourcesClasspath') {
|
||||
doFirst {
|
||||
tasks.findByName('generateAotSources').classpath.files.each { println it }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user