@@ -48,7 +48,7 @@ allprojects {
48
48
}
49
49
}
50
50
51
- task checkstyle(type: Checkstyle) {
51
+ tasks.register("checkstyle", Checkstyle) {
52
52
source 'src'
53
53
54
54
classpath = files()
@@ -91,19 +91,19 @@ subprojects {
91
91
ktlint 'com.github.shyiko:ktlint:0.29.0'
92
92
}
93
93
94
- task ktlint(type: JavaExec) {
94
+ tasks.register("ktlint", JavaExec) {
95
95
main = "com.github.shyiko.ktlint.Main"
96
96
classpath = configurations.ktlint
97
97
args "src/**/*.kt"
98
98
}
99
99
100
- task ktlintFormat(type: JavaExec) {
100
+ tasks.register("ktlintFormat", JavaExec) {
101
101
main = "com.github.shyiko.ktlint.Main"
102
102
classpath = configurations.ktlint
103
103
args "-F", "src/**/*.kt"
104
104
}
105
105
106
- task ciktlint(type: JavaExec) {
106
+ tasks.register("ciktlint", JavaExec) {
107
107
main = "com.github.shyiko.ktlint.Main"
108
108
classpath = configurations.ktlint
109
109
args "src/**/*.kt", "--reporter=checkstyle,output=${buildDir}/ktlint.xml"
@@ -158,7 +158,7 @@ ext {
158
158
}
159
159
160
160
// Onboarding and dev env setup tasks
161
- task checkBundler(type: Exec) {
161
+ tasks.register("checkBundler", Exec) {
162
162
doFirst {
163
163
println "Check Bundler"
164
164
}
@@ -176,7 +176,8 @@ task checkBundler(type:Exec) {
176
176
}
177
177
}
178
178
179
- task checkBundle(type:Exec, dependsOn:checkBundler) {
179
+ tasks.register("checkBundle", Exec) {
180
+ dependsOn tasks.named("checkBundler")
180
181
doFirst {
181
182
println "Check Bundle"
182
183
}
@@ -194,7 +195,8 @@ task checkBundle(type:Exec, dependsOn:checkBundler) {
194
195
}
195
196
}
196
197
197
- task applyCredentials(type:Exec, dependsOn:checkBundle) {
198
+ tasks.register("applyCredentials", Exec) {
199
+ dependsOn tasks.named("checkBundle")
198
200
doFirst {
199
201
println "Apply credentials for this branch"
200
202
}
0 commit comments