Skip to content

Commit

Permalink
Automated Bintray Uploads and version updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsinar committed Oct 21, 2020
1 parent 5a3530c commit 03bd790
Show file tree
Hide file tree
Showing 13 changed files with 158 additions and 28 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/animators_publish_bintray_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "core: publish (animators)"

on:
release:
types: [published]

jobs:
publish-bintray:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/animators')

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: :animators:bintrayUpload -PdryRun=false
env:
BINTRAY_USER: yatsinar
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
22 changes: 22 additions & 0 deletions .github/workflows/decorations_publish_bintray_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "core: publish (decorations)"

on:
release:
types: [published]

jobs:
publish-bintray:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/decorations')

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: :decorations:bintrayUpload -PdryRun=false
env:
BINTRAY_USER: yatsinar
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
22 changes: 22 additions & 0 deletions .github/workflows/delegates_publish_bintray_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "core: publish (delegates)"

on:
release:
types: [published]

jobs:
publish-bintray:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/delegates')

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: :delegates:bintrayUpload -PdryRun=false
env:
BINTRAY_USER: yatsinar
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
22 changes: 22 additions & 0 deletions .github/workflows/kextenstions_publish_bintray_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "core: publish (kextensions)"

on:
release:
types: [published]

jobs:
publish-bintray:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/kextensions')

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: :kextensions:bintrayUpload -PdryRun=false
env:
BINTRAY_USER: yatsinar
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
22 changes: 22 additions & 0 deletions .github/workflows/rxdiffadapter_publish_bintray_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "core: publish (rxdiffadapter)"

on:
release:
types: [published]

jobs:
publish-bintray:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/rxdiffadapter')

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: :rxdiffadapter:bintrayUpload -PdryRun=false
env:
BINTRAY_USER: yatsinar
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
16 changes: 10 additions & 6 deletions animators/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ android {

}

kotlinOptions {
jvmTarget = '1.8'
}

buildTypes {
release {
minifyEnabled false
Expand All @@ -28,13 +32,13 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.recyclerview:recyclerview:$recycler_version"

androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:4.3'
testImplementation 'junit:junit:4.13'
testImplementation 'org.robolectric:robolectric:4.4'
testImplementation 'com.nhaarman:mockito-kotlin:1.5.0'
testImplementation "org.mockito:mockito-core:3.0.0"
testImplementation "org.mockito:mockito-core:3.5.10"

api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
Expand All @@ -46,7 +50,7 @@ repositories {
publish {
def groupProjectID = 'com.revolut.recyclerkit'
def artifactProjectID = 'animators'
def publishVersionID = '1.0.10'
def publishVersionID = '1.0.11'

bintrayUser = System.getenv("BINTRAY_USER")
bintrayKey = System.getenv("BINTRAY_KEY")
Expand Down
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ androidExtensions {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
implementation "androidx.recyclerview:recyclerview:$recycler_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'
api 'com.thedeanda:lorem:2.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
implementation project(':animators')
implementation project(':delegates')
implementation project(':decorations')
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.3.72'
ext.recycler_version = '1.1.0'

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.android.tools.build:gradle:3.6.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.novoda:bintray-release:0.9.1'
classpath 'com.novoda:bintray-release:0.9.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
18 changes: 11 additions & 7 deletions decorations/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
buildToolsVersion "29.0.3"


defaultConfig {
Expand All @@ -18,6 +18,10 @@ android {
consumerProguardFiles 'consumer-rules.pro'
}

kotlinOptions {
jvmTarget = '1.8'
}

buildTypes {
release {
minifyEnabled false
Expand All @@ -31,19 +35,19 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':delegates')

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.core:core-ktx:1.3.2'

testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:4.3'
testImplementation 'junit:junit:4.13'
testImplementation 'org.robolectric:robolectric:4.4'
testImplementation 'com.nhaarman:mockito-kotlin:1.5.0'
testImplementation "org.mockito:mockito-core:3.0.0"
testImplementation "org.mockito:mockito-core:3.5.10"
}

publish {
def groupProjectID = 'com.revolut.recyclerkit'
def artifactProjectID = 'decorations'
def publishVersionID = '1.0.7'
def publishVersionID = '1.0.8'

bintrayUser = System.getenv("BINTRAY_USER")
bintrayKey = System.getenv("BINTRAY_KEY")
Expand Down
8 changes: 6 additions & 2 deletions delegates/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

kotlinOptions {
jvmTarget = '1.8'
}

buildTypes {
release {
minifyEnabled false
Expand All @@ -28,7 +32,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api "androidx.recyclerview:recyclerview:$recycler_version"

testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13'
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
Expand All @@ -38,7 +42,7 @@ repositories {
publish {
def groupProjectID = 'com.revolut.recyclerkit'
def artifactProjectID = 'delegates'
def publishVersionID = '1.0.9'
def publishVersionID = '1.0.10'

bintrayUser = System.getenv("BINTRAY_USER")
bintrayKey = System.getenv("BINTRAY_KEY")
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
8 changes: 6 additions & 2 deletions kextensions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
buildToolsVersion "29.0.3"

defaultConfig {
minSdkVersion 19
Expand All @@ -16,6 +16,10 @@ android {
consumerProguardFiles "consumer-rules.pro"
}

kotlinOptions {
jvmTarget = '1.8'
}

buildTypes {
release {
minifyEnabled false
Expand All @@ -35,7 +39,7 @@ dependencies {
publish {
def groupProjectID = 'com.revolut.recyclerkit'
def artifactProjectID = 'kextensions'
def publishVersionID = '1.0.6'
def publishVersionID = '1.0.7'

bintrayUser = System.getenv("BINTRAY_USER")
bintrayKey = System.getenv("BINTRAY_KEY")
Expand Down
10 changes: 7 additions & 3 deletions rxdiffadapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
buildToolsVersion "29.0.3"

defaultConfig {
minSdkVersion 19
Expand All @@ -16,6 +16,10 @@ android {
consumerProguardFiles 'consumer-rules.pro'
}

kotlinOptions {
jvmTarget = '1.8'
}

buildTypes {
release {
minifyEnabled false
Expand All @@ -28,14 +32,14 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':delegates')
implementation "io.reactivex.rxjava2:rxjava:2.2.10"
implementation "io.reactivex.rxjava2:rxjava:2.2.18"
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
}

publish {
def groupProjectID = 'com.revolut.recyclerkit'
def artifactProjectID = 'rxdiffadapter'
def publishVersionID = '1.0.6'
def publishVersionID = '1.0.7'

bintrayUser = System.getenv("BINTRAY_USER")
bintrayKey = System.getenv("BINTRAY_KEY")
Expand Down

0 comments on commit 03bd790

Please sign in to comment.