Skip to content

Investigate why the Native Build Tools plugin isn't applied in PaketoBuilderTests.nativeApp #42338

Closed
@mhalbritter

Description

@mhalbritter

spring-boot-system-tests/spring-boot-image-tests/src/systemTest/resources/org/springframework/boot/image/paketo/PaketoBuilderTests-nativeApp.gradle has this snippet:

bootJar {
	manifest {
		attributes(
			'Implementation-Version': '1.0.0',
			'Implementation-Title': 'Paketo Test',
			'Spring-Boot-Native-Processed': 'true'
		)
	}
}

'Spring-Boot-Native-Processed': 'true' shouldn't be necessary, because it is set by our NativeImagePluginAction. However, for reasons unclear to me, the NativeImagePluginAction isn't executed in this build, despite the NBT plugin in the plugins section.

When removing the .withPluginClasspath call in org.springframework.boot.testsupport.gradle.testkit.GradleBuild#prepareRunner, it works. No idea if that is a red herring or not.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions