diff --git a/build.gradle b/build.gradle index 6952c30..29d0221 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ /// / Top-level build file where you can add configuration options common to all sub-projects/modules. apply plugin: 'kotlin' +apply from: 'gradle/dependencies.gradle' ext { supportLibraryVersion = '27.1.1' diff --git a/cockpit/build.gradle b/cockpit/build.gradle index 209180b..cf10e9b 100644 --- a/cockpit/build.gradle +++ b/cockpit/build.gradle @@ -4,8 +4,6 @@ apply plugin: 'kotlin-android-extensions' apply from: rootProject.file('gradle/publishing.gradle') buildscript { - ext.cockpit_core_version = '1.1.1-SNAPSHOT' - dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.android.tools.build:gradle:3.1.3' diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle new file mode 100644 index 0000000..82e6b61 --- /dev/null +++ b/gradle/dependencies.gradle @@ -0,0 +1,3 @@ +ext { + cockpit_core_version = '1.1.1-SNAPSHOT' +} \ No newline at end of file diff --git a/sample/build.gradle b/sample/build.gradle index 8ff459c..68acbc3 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -4,7 +4,6 @@ apply plugin: 'kotlin-android-extensions' apply plugin: 'com.polidea.cockpit' buildscript { - ext.cockpit_core_version = '1.1.1-SNAPSHOT' repositories { jcenter() mavenCentral()