@@ -57,7 +57,7 @@ void applyingNativeImagePluginAppliesAotPlugin() {
57
57
@ TestTemplate
58
58
void reachabilityMetadataConfigurationFilesAreCopiedToJar () throws IOException {
59
59
writeDummySpringApplicationAotProcessorMainClass ();
60
- BuildResult result = this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ( "8.2-rc-1" ). build ("bootJar" );
60
+ BuildResult result = this .gradleBuild .build ("bootJar" );
61
61
assertThat (result .task (":bootJar" ).getOutcome ()).isEqualTo (TaskOutcome .SUCCESS );
62
62
File buildLibs = new File (this .gradleBuild .getProjectDir (), "build/libs" );
63
63
File jarFile = new File (buildLibs , this .gradleBuild .getProjectDir ().getName () + ".jar" );
@@ -75,7 +75,7 @@ void reachabilityMetadataConfigurationFilesFromFileRepositoryAreCopiedToJar() th
75
75
writeDummySpringApplicationAotProcessorMainClass ();
76
76
FileSystemUtils .copyRecursively (new File ("src/test/resources/reachability-metadata-repository" ),
77
77
new File (this .gradleBuild .getProjectDir (), "reachability-metadata-repository" ));
78
- BuildResult result = this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ( "8.2-rc-1" ). build ("bootJar" );
78
+ BuildResult result = this .gradleBuild .build ("bootJar" );
79
79
assertThat (result .task (":bootJar" ).getOutcome ()).isEqualTo (TaskOutcome .SUCCESS );
80
80
File buildLibs = new File (this .gradleBuild .getProjectDir (), "build/libs" );
81
81
File jarFile = new File (buildLibs , this .gradleBuild .getProjectDir ().getName () + ".jar" );
@@ -91,40 +91,36 @@ void reachabilityMetadataConfigurationFilesFromFileRepositoryAreCopiedToJar() th
91
91
@ TestTemplate
92
92
void bootBuildImageIsConfiguredToBuildANativeImage () {
93
93
writeDummySpringApplicationAotProcessorMainClass ();
94
- BuildResult result = this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ("8.2-rc-1" )
95
- .build ("bootBuildImageConfiguration" );
94
+ BuildResult result = this .gradleBuild .build ("bootBuildImageConfiguration" );
96
95
assertThat (result .getOutput ()).contains ("paketobuildpacks/builder-jammy-tiny:latest" )
97
96
.contains ("BP_NATIVE_IMAGE = true" );
98
97
}
99
98
100
99
@ TestTemplate
101
100
void developmentOnlyDependenciesDoNotAppearInNativeImageClasspath () {
102
101
writeDummySpringApplicationAotProcessorMainClass ();
103
- BuildResult result = this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ("8.2-rc-1" )
104
- .build ("checkNativeImageClasspath" );
102
+ BuildResult result = this .gradleBuild .build ("checkNativeImageClasspath" );
105
103
assertThat (result .getOutput ()).doesNotContain ("commons-lang" );
106
104
}
107
105
108
106
@ TestTemplate
109
107
void classesGeneratedDuringAotProcessingAreOnTheNativeImageClasspath () {
110
- BuildResult result = this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ("8.2-rc-1" )
111
- .build ("checkNativeImageClasspath" );
108
+ BuildResult result = this .gradleBuild .build ("checkNativeImageClasspath" );
112
109
assertThat (result .getOutput ()).contains (projectPath ("build/classes/java/aot" ),
113
110
projectPath ("build/resources/aot" ), projectPath ("build/generated/aotClasses" ));
114
111
}
115
112
116
113
@ TestTemplate
117
114
void classesGeneratedDuringAotTestProcessingAreOnTheTestNativeImageClasspath () {
118
- BuildResult result = this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ("8.2-rc-1" )
119
- .build ("checkTestNativeImageClasspath" );
115
+ BuildResult result = this .gradleBuild .build ("checkTestNativeImageClasspath" );
120
116
assertThat (result .getOutput ()).contains (projectPath ("build/classes/java/aotTest" ),
121
117
projectPath ("build/resources/aotTest" ), projectPath ("build/generated/aotTestClasses" ));
122
118
}
123
119
124
120
@ TestTemplate
125
121
void nativeEntryIsAddedToManifest () throws IOException {
126
122
writeDummySpringApplicationAotProcessorMainClass ();
127
- BuildResult result = this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ( "8.2-rc-1" ). build ("bootJar" );
123
+ BuildResult result = this .gradleBuild .build ("bootJar" );
128
124
assertThat (result .task (":bootJar" ).getOutcome ()).isEqualTo (TaskOutcome .SUCCESS );
129
125
File buildLibs = new File (this .gradleBuild .getProjectDir (), "build/libs" );
130
126
JarFile jarFile = new JarFile (new File (buildLibs , this .gradleBuild .getProjectDir ().getName () + ".jar" ));
0 commit comments