Skip to content

Commit b93a076

Browse files
committed
moved tasks
1 parent 2ee8117 commit b93a076

File tree

6 files changed

+6
-13
lines changed

6 files changed

+6
-13
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jdk:
2121
script:
2222
- chmod +x gradlew
2323
- ./gradlew clean build
24-
- ./gradlew buildAndUpload
2524

2625
cache:
2726
directories:

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ plugins {
2424
id "com.jfrog.bintray" version "1.7.3"
2525
}
2626
apply plugin: 'kotlin'
27-
apply from: file('gradle/buildAndDeploy.gradle')
2827

2928
allprojects {
3029
repositories {

loading-skeleton/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,6 @@ dependencies {
4747
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
4848

4949
compile 'com.facebook.shimmer:shimmer:0.1.0@aar'
50-
}
50+
}
51+
52+
apply from: file('gradle/buildAndDeploy.gradle')
File renamed without changes.

gradle/buildAndDeploy.gradle renamed to loading-skeleton/gradle/buildAndDeploy.gradle

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,10 @@ apply from: file('gradle/bintray-upload.gradle')
55

66
task buildAndDeploy {
77
if ((System.env.TRAVIS_TAG != null && !System.env.TRAVIS_TAG.isEmpty())) {
8-
dependsOn 'clean'
9-
dependsOn 'build'
108
dependsOn 'install'
119
dependsOn 'bintrayUpload'
12-
tasks.findByName('build').mustRunAfter 'clean'
13-
tasks.findByName('install').mustRunAfter 'build'
1410
tasks.findByName('bintrayUpload').mustRunAfter 'install'
15-
} else {
16-
dependsOn 'clean'
17-
dependsOn 'build'
18-
19-
tasks.findByName('build').mustRunAfter 'clean'
2011
}
21-
}
12+
}
13+
14+
tasks.findByName('build').finalizedBy(buildAndDeploy)

0 commit comments

Comments
 (0)