Browse Source

Version 2.0.0-beta1

Aidan Follestad 6 years ago
parent
commit
6377018135
7 changed files with 17 additions and 7 deletions
  1. 1 1
      build.gradle
  2. 0 1
      color/build.gradle
  3. 0 1
      core/build.gradle
  4. 2 2
      dependencies.gradle
  5. 0 1
      files/build.gradle
  6. 0 1
      input/build.gradle
  7. 14 0
      versionsPlugin.gradle

+ 1 - 1
build.gradle

@@ -1,5 +1,5 @@
 apply from: './dependencies.gradle'
-apply plugin: "com.github.ben-manes.versions"
+apply from: './versionsPlugin.gradle'
 
 buildscript {
   apply from: './dependencies.gradle'

+ 0 - 1
color/build.gradle

@@ -1,7 +1,6 @@
 apply plugin: 'com.android.library'
 apply plugin: 'kotlin-android'
 apply from: '../dependencies.gradle'
-apply plugin: "com.github.ben-manes.versions"
 
 ext.shard = 'color'
 apply from: '../bintrayconfig.gradle'

+ 0 - 1
core/build.gradle

@@ -1,7 +1,6 @@
 apply plugin: 'com.android.library'
 apply plugin: 'kotlin-android'
 apply from: '../dependencies.gradle'
-apply plugin: "com.github.ben-manes.versions"
 
 ext.shard = 'core'
 apply from: '../bintrayconfig.gradle'

+ 2 - 2
dependencies.gradle

@@ -2,8 +2,8 @@ ext.versions = [
     minSdk            : 16,
     compileSdk        : 28,
     buildTools        : '28.0.2',
-    publishVersion    : '2.0.0-alpha12',
-    publishVersionCode: 211,
+    publishVersion    : '2.0.0-beta1',
+    publishVersionCode: 212,
 
     gradlePlugin      : '3.1.4',
     spotlessPlugin    : '3.14.0',

+ 0 - 1
files/build.gradle

@@ -1,7 +1,6 @@
 apply plugin: 'com.android.library'
 apply plugin: 'kotlin-android'
 apply from: '../dependencies.gradle'
-apply plugin: "com.github.ben-manes.versions"
 
 ext.shard = 'files'
 apply from: '../bintrayconfig.gradle'

+ 0 - 1
input/build.gradle

@@ -1,7 +1,6 @@
 apply plugin: 'com.android.library'
 apply plugin: 'kotlin-android'
 apply from: '../dependencies.gradle'
-apply plugin: "com.github.ben-manes.versions"
 
 ext.shard = 'input'
 apply from: '../bintrayconfig.gradle'

+ 14 - 0
versionsPlugin.gradle

@@ -0,0 +1,14 @@
+apply plugin: "com.github.ben-manes.versions"
+
+dependencyUpdates.resolutionStrategy {
+  componentSelection { rules ->
+    rules.all { ComponentSelection selection ->
+      boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
+        selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
+      }
+      if (rejected) {
+        selection.reject('Not stable')
+      }
+    }
+  }
+}