Skip to content

Commit d6b5d0c

Browse files
committed
Refactor dependency importing formats
1 parent 5d42ac2 commit d6b5d0c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
apply plugin: 'com.android.application'
16-
apply from: '../dependencies.gradle'
16+
apply from: "$rootDir/dependencies.gradle"
1717

1818
android {
1919
compileSdkVersion versions.compileSdk
@@ -39,4 +39,4 @@ dependencies {
3939

4040
tasks.withType(Javadoc).all { enabled = false }
4141

42-
apply from: '../spotless.gradle'
42+
apply from: "$rootDir/spotless.gradle"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
buildscript {
16-
apply from: './dependencies.gradle'
16+
apply from: "$rootDir/dependencies.gradle"
1717
repositories {
1818
jcenter()
1919
google()

colorpickerview/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
// limitations under the License.
1414

1515
apply plugin: 'com.android.library'
16-
apply from: '../dependencies.gradle'
17-
apply from: '../publish.gradle'
16+
apply from: "$rootDir/dependencies.gradle"
17+
apply from: "$rootDir/publish.gradle"
1818

1919
android {
2020
compileSdkVersion versions.compileSdk
@@ -36,4 +36,4 @@ dependencies {
3636

3737
tasks.withType(Javadoc).all { enabled = false }
3838

39-
apply from: '../spotless.gradle'
39+
apply from: "$rootDir/spotless.gradle"

publish.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
apply plugin: 'com.jfrog.bintray'
1616
apply plugin: 'maven-publish'
17-
apply from: '../dependencies.gradle'
17+
apply from: "$rootDir/dependencies.gradle"
1818

1919
ext.repository = [
2020
name : "colorpickerview",

spotless.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ apply plugin: "com.diffplug.spotless"
1616
spotless {
1717
java {
1818
target "**/*.java"
19-
licenseHeaderFile '../spotless.license.java'
19+
licenseHeaderFile "$rootDir/spotless.license.java"
2020
trimTrailingWhitespace()
2121
removeUnusedImports()
2222
googleJavaFormat()

0 commit comments

Comments
 (0)