@@ -110,13 +110,13 @@ def cloneDocsWebsiteTask = tasks.register( 'cloneDocsWebsite', Exec ) {
110
110
// Assure that the buildDir exists. Otherwise this task will fail.
111
111
dependsOn compileJava
112
112
workingDir project. layout. buildDirectory
113
- executeGitCommand( ' clone' , docPublishRepoUri, ' -b' , docPublishBranch, ' --sparse' , ' --depth' , ' 1' , ' docs-website' )
113
+ commandLine ' git ' , ' clone' , docPublishRepoUri, ' -b' , docPublishBranch, ' --sparse' , ' --depth' , ' 1' , ' docs-website'
114
114
}
115
115
116
116
def sparseCheckoutDocumentationTask = tasks. register( ' sparseCheckoutDocumentation' , Exec ) {
117
117
dependsOn cloneDocsWebsiteTask
118
118
workingDir project. layout. buildDirectory. dir( " docs-website" )
119
- executeGitCommand( ' sparse-checkout' , ' set' , docWebsiteRelativePath )
119
+ commandLine ' git ' , ' sparse-checkout' , ' set' , docWebsiteRelativePath
120
120
}
121
121
122
122
/**
@@ -163,20 +163,20 @@ def updateDocumentationTask = tasks.register( 'updateDocumentation' ) {
163
163
164
164
def stageDocChangesTask = tasks. register( ' stageDocChanges' , Exec ) {
165
165
workingDir project. layout. buildDirectory. dir( " docs-website" )
166
- executeGitCommand( ' add' , ' -A' , ' .' )
166
+ commandLine ' git ' , ' add' , ' -A' , ' .'
167
167
}
168
168
169
169
def commitDocChangesTask = tasks. register( ' commitDocChanges' , Exec ) {
170
170
dependsOn stageDocChangesTask
171
171
workingDir project. layout. buildDirectory. dir( " docs-website" )
172
- executeGitCommand( ' git' , ' commit' , ' -m' , " [HR] Hibernate Reactive documentation for ${ projectVersion} " )
172
+ commandLine ' git' , ' commit' , ' -m' , " [HR] Hibernate Reactive documentation for ${ projectVersion} "
173
173
}
174
174
175
175
def pushDocChangesTask = tasks. register( ' pushDocChanges' , Exec ) {
176
176
description " Push documentation changes on the remote repository"
177
177
dependsOn commitDocChangesTask
178
178
workingDir project. layout. buildDirectory. dir( " docs-website" )
179
- executeGitCommand( ' git' , ' push' , ' --atomic' , ' origin' , docPublishBranch )
179
+ commandLine ' git' , ' push' , ' --atomic' , ' origin' , docPublishBranch
180
180
}
181
181
182
182
def uploadDocumentationTask = tasks. register( ' uploadDocumentation' ) {
0 commit comments