@@ -79,8 +79,8 @@ void createsBootStartScriptsTaskUsesApplicationPluginsDefaultJvmOpts() {
79
79
80
80
@ TestTemplate
81
81
void zipDistributionForJarCanBeBuilt () throws IOException {
82
- assertThat (this .gradleBuild .build ( "bootDistZip " ).task ( ": bootDistZip"). getOutcome () )
83
- .isEqualTo (TaskOutcome .SUCCESS );
82
+ assertThat (this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ( "6.4 " ).build ( " bootDistZip" )
83
+ .task ( ":bootDistZip" ). getOutcome ()). isEqualTo (TaskOutcome .SUCCESS );
84
84
String name = this .gradleBuild .getProjectDir ().getName ();
85
85
File distribution = new File (this .gradleBuild .getProjectDir (), "build/distributions/" + name + "-boot.zip" );
86
86
assertThat (distribution ).isFile ();
@@ -91,8 +91,8 @@ void zipDistributionForJarCanBeBuilt() throws IOException {
91
91
92
92
@ TestTemplate
93
93
void tarDistributionForJarCanBeBuilt () throws IOException {
94
- assertThat (this .gradleBuild .build ( "bootDistTar " ).task ( ": bootDistTar"). getOutcome () )
95
- .isEqualTo (TaskOutcome .SUCCESS );
94
+ assertThat (this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ( "6.4 " ).build ( " bootDistTar" )
95
+ .task ( ":bootDistTar" ). getOutcome ()). isEqualTo (TaskOutcome .SUCCESS );
96
96
String name = this .gradleBuild .getProjectDir ().getName ();
97
97
File distribution = new File (this .gradleBuild .getProjectDir (), "build/distributions/" + name + "-boot.tar" );
98
98
assertThat (distribution ).isFile ();
@@ -103,8 +103,8 @@ void tarDistributionForJarCanBeBuilt() throws IOException {
103
103
104
104
@ TestTemplate
105
105
void zipDistributionForWarCanBeBuilt () throws IOException {
106
- assertThat (this .gradleBuild .build ( "bootDistZip " ).task ( ": bootDistZip"). getOutcome () )
107
- .isEqualTo (TaskOutcome .SUCCESS );
106
+ assertThat (this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ( "6.4 " ).build ( " bootDistZip" )
107
+ .task ( ":bootDistZip" ). getOutcome ()). isEqualTo (TaskOutcome .SUCCESS );
108
108
String name = this .gradleBuild .getProjectDir ().getName ();
109
109
File distribution = new File (this .gradleBuild .getProjectDir (), "build/distributions/" + name + "-boot.zip" );
110
110
assertThat (distribution ).isFile ();
@@ -115,8 +115,8 @@ void zipDistributionForWarCanBeBuilt() throws IOException {
115
115
116
116
@ TestTemplate
117
117
void tarDistributionForWarCanBeBuilt () throws IOException {
118
- assertThat (this .gradleBuild .build ( "bootDistTar " ).task ( ": bootDistTar"). getOutcome () )
119
- .isEqualTo (TaskOutcome .SUCCESS );
118
+ assertThat (this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ( "6.4 " ).build ( " bootDistTar" )
119
+ .task ( ":bootDistTar" ). getOutcome ()). isEqualTo (TaskOutcome .SUCCESS );
120
120
String name = this .gradleBuild .getProjectDir ().getName ();
121
121
File distribution = new File (this .gradleBuild .getProjectDir (), "build/distributions/" + name + "-boot.tar" );
122
122
assertThat (distribution ).isFile ();
@@ -127,8 +127,8 @@ void tarDistributionForWarCanBeBuilt() throws IOException {
127
127
128
128
@ TestTemplate
129
129
void applicationNameCanBeUsedToCustomizeDistributionName () throws IOException {
130
- assertThat (this .gradleBuild .build ( "bootDistTar " ).task ( ": bootDistTar"). getOutcome () )
131
- .isEqualTo (TaskOutcome .SUCCESS );
130
+ assertThat (this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ( "6.4 " ).build ( " bootDistTar" )
131
+ .task ( ":bootDistTar" ). getOutcome ()). isEqualTo (TaskOutcome .SUCCESS );
132
132
File distribution = new File (this .gradleBuild .getProjectDir (), "build/distributions/custom-boot.tar" );
133
133
assertThat (distribution ).isFile ();
134
134
String name = this .gradleBuild .getProjectDir ().getName ();
@@ -139,8 +139,8 @@ void applicationNameCanBeUsedToCustomizeDistributionName() throws IOException {
139
139
140
140
@ TestTemplate
141
141
void scriptsHaveCorrectPermissions () throws IOException {
142
- assertThat (this .gradleBuild .build ( "bootDistTar " ).task ( ": bootDistTar"). getOutcome () )
143
- .isEqualTo (TaskOutcome .SUCCESS );
142
+ assertThat (this .gradleBuild .expectDeprecationWarningsWithAtLeastVersion ( "6.4 " ).build ( " bootDistTar" )
143
+ .task ( ":bootDistTar" ). getOutcome ()). isEqualTo (TaskOutcome .SUCCESS );
144
144
String name = this .gradleBuild .getProjectDir ().getName ();
145
145
File distribution = new File (this .gradleBuild .getProjectDir (), "build/distributions/" + name + "-boot.tar" );
146
146
assertThat (distribution ).isFile ();
0 commit comments