Skip to content

Commit 080da19

Browse files
committed
Change doRelease
1 parent 205ec6d commit 080da19

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

build.gradle

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ nexusPublishing {
6969
}
7070

7171
release {
72-
buildTasks = ['doRelease']
72+
buildTasks = [
73+
'checkLastVersionValue',
74+
'initializeSonatypeStagingRepository',
75+
'clean',
76+
'build',
77+
'publishToSonatype'
78+
]
7379
git {
7480
requireBranch.set('xxx')
7581
}
@@ -101,16 +107,6 @@ def updateLastVersionValueTask = tasks.register('updateLastVersionValue') {
101107
}
102108
}
103109

104-
task doRelease {
105-
dependsOn(
106-
checkLastVersionValueTask,
107-
'initializeSonatypeStagingRepository',
108-
'clean',
109-
'build',
110-
project.getTasksByName('publishToSonatype', true)
111-
)
112-
}
113-
114110
model {
115111
tasks.unSnapshotVersion {
116112
dependsOn updateLastVersionValueTask

0 commit comments

Comments
 (0)