@@ -45,7 +45,7 @@ func TestGradleBuildConditionalUpload(t *testing.T) {
45
45
oldHomeDir := changeWD (t , filepath .Dir (buildGradlePath ))
46
46
defer clientTestUtils .ChangeDirAndAssert (t , oldHomeDir )
47
47
execFunc := func () error {
48
- return runJfrogCliWithoutAssertion ("gradle" , "clean artifactoryPublish" , "-b" + buildGradlePath , "--scan" )
48
+ return runJfrogCliWithoutAssertion ("gradle" , "clean" , " artifactoryPublish" , "-b" + buildGradlePath , "--scan" )
49
49
}
50
50
testConditionalUpload (t , execFunc , searchSpec , tests .GetGradleDeployedArtifacts ()... )
51
51
cleanGradleTest (t )
@@ -61,7 +61,7 @@ func TestGradleWithDeploymentView(t *testing.T) {
61
61
defer clientTestUtils .ChangeDirAndAssert (t , oldHomeDir )
62
62
assertPrintedDeploymentViewFunc , cleanupFunc := initDeploymentViewTest (t )
63
63
defer cleanupFunc ()
64
- assert .NoError (t , runJfrogCliWithoutAssertion ("gradle" , "clean artifactoryPublish" , "-b" + buildGradlePath ))
64
+ assert .NoError (t , runJfrogCliWithoutAssertion ("gradle" , "clean" , " artifactoryPublish" , "-b" + buildGradlePath ))
65
65
assertPrintedDeploymentViewFunc ()
66
66
cleanGradleTest (t )
67
67
}
@@ -76,7 +76,7 @@ func TestGradleBuildWithServerID(t *testing.T) {
76
76
buildNumber := "1"
77
77
// Windows compatibility
78
78
buildGradlePath = strings .ReplaceAll (buildGradlePath , `\` , "/" )
79
- runJfrogCli (t , "gradle" , "clean artifactoryPublish" , "-b" + buildGradlePath , "--build-name=" + tests .GradleBuildName , "--build-number=" + buildNumber )
79
+ runJfrogCli (t , "gradle" , "clean" , " artifactoryPublish" , "-b" + buildGradlePath , "--build-name=" + tests .GradleBuildName , "--build-number=" + buildNumber )
80
80
clientTestUtils .ChangeDirAndAssert (t , oldHomeDir )
81
81
// Validate
82
82
searchSpec , err := tests .CreateSpec (tests .SearchAllGradle )
@@ -111,8 +111,8 @@ func TestGradleBuildWithServerIDAndDetailedSummary(t *testing.T) {
111
111
buildGradlePath = strings .ReplaceAll (buildGradlePath , `\` , "/" )
112
112
113
113
// Test gradle with detailed summary without buildinfo props.
114
- filteredGradleArgs := []string {"clean artifactoryPublish" , "-b" + buildGradlePath }
115
- gradleCmd := gradle .NewGradleCommand ().SetConfiguration (new (utils.BuildConfiguration )).SetTasks (strings . Join ( filteredGradleArgs , " " ) ).SetConfigPath (filepath .Join (destPath , "gradle.yaml" )).SetDetailedSummary (true )
114
+ filteredGradleArgs := []string {"clean" , " artifactoryPublish" , "-b" + buildGradlePath }
115
+ gradleCmd := gradle .NewGradleCommand ().SetConfiguration (new (utils.BuildConfiguration )).SetTasks (filteredGradleArgs ).SetConfigPath (filepath .Join (destPath , "gradle.yaml" )).SetDetailedSummary (true )
116
116
assert .NoError (t , commands .Exec (gradleCmd ))
117
117
// Validate sha256
118
118
assert .NotNil (t , gradleCmd .Result ())
@@ -121,7 +121,7 @@ func TestGradleBuildWithServerIDAndDetailedSummary(t *testing.T) {
121
121
}
122
122
123
123
// Test gradle with detailed summary + buildinfo.
124
- gradleCmd = gradle .NewGradleCommand ().SetConfiguration (utils .NewBuildConfiguration (tests .GradleBuildName , buildNumber , "" , "" )).SetTasks (strings . Join ( filteredGradleArgs , " " ) ).SetConfigPath (filepath .Join (destPath , "gradle.yaml" )).SetDetailedSummary (true )
124
+ gradleCmd = gradle .NewGradleCommand ().SetConfiguration (utils .NewBuildConfiguration (tests .GradleBuildName , buildNumber , "" , "" )).SetTasks (filteredGradleArgs ).SetConfigPath (filepath .Join (destPath , "gradle.yaml" )).SetDetailedSummary (true )
125
125
assert .NoError (t , commands .Exec (gradleCmd ))
126
126
// Validate sha256
127
127
tests .VerifySha256DetailedSummaryFromResult (t , gradleCmd .Result ())
@@ -160,7 +160,7 @@ func TestGradleBuildWithServerIDWithUsesPlugin(t *testing.T) {
160
160
oldHomeDir := changeWD (t , filepath .Dir (buildGradlePath ))
161
161
buildName := tests .GradleBuildName
162
162
buildNumber := "1"
163
- runJfrogCli (t , "gradle" , "clean artifactoryPublish -b " + buildGradlePath , "--build-name=" + buildName , "--build-number=" + buildNumber )
163
+ runJfrogCli (t , "gradle" , "clean" , " artifactoryPublish" , "-b "+ buildGradlePath , "--build-name=" + buildName , "--build-number=" + buildNumber )
164
164
changeWD (t , oldHomeDir )
165
165
// Validate
166
166
searchSpec , err := tests .CreateSpec (tests .SearchAllGradle )
0 commit comments