Skip to content

Commit 57296bd

Browse files
committed
Change
1 parent cf3504c commit 57296bd

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

build.gradle

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ task doRelease {
112112
checkLastVersionValueTask,
113113
'initializeSonatypeStagingRepository',
114114
'clean',
115-
'build'
115+
'build',
116+
tasks.named {it.name = 'publishToSonatype'}
116117
)
117118
}
118119

@@ -121,16 +122,3 @@ model {
121122
dependsOn updateLastVersionValueTask
122123
}
123124
}
124-
println('ooo1')
125-
println(project.getTasksByName('publishToSonatype', true))
126-
println('ooo1')
127-
afterEvaluate {
128-
println('ooo2')
129-
println(project.getTasksByName('publishToSonatype', true))
130-
println('ooo2')
131-
model {
132-
tasks.doRelease {
133-
dependsOn project.getTasksByName('publishToSonatype', true)
134-
}
135-
}
136-
}

0 commit comments

Comments
 (0)