Skip to content

Commit

Permalink
Upgrade Gradle to 6
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzkocer committed Sep 13, 2020
1 parent 29903f8 commit e612da1
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 36 deletions.
1 change: 0 additions & 1 deletion WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ android {
}

compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolVersion

defaultConfig {
applicationId "org.wordpress.android"
Expand Down
6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.automattic.android:fetchstyle:1.1'
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
Expand All @@ -22,10 +22,6 @@ buildscript {
}
}

plugins {
id 'com.gradle.build-scan' version '2.0.2'
}

ext {
buildGutenbergMobileJSBundle = 1
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Sep 30 15:10:36 EDT 2019
#Tue Aug 25 22:29:19 EET 2020
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-6.1.1-all.zip
3 changes: 1 addition & 2 deletions libs/analytics/WordPressAnalytics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.novoda:bintray-release:0.8.1'
}
}
Expand All @@ -27,7 +27,6 @@ dependencies {

android {
compileSdkVersion 28
buildToolsVersion "28.0.3"

defaultConfig {
versionName "1.3.0"
Expand Down
2 changes: 1 addition & 1 deletion libs/editor/WordPressEditor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
Expand Down
2 changes: 1 addition & 1 deletion libs/editor/example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.android.tools.build:gradle:4.0.1'
}
}

Expand Down
3 changes: 1 addition & 2 deletions libs/image-editor/ImageEditor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.android.tools.build:gradle:4.0.1'
}
}

Expand All @@ -21,7 +21,6 @@ apply plugin: 'androidx.navigation.safeargs.kotlin'

android {
compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolVersion

defaultConfig {
minSdkVersion rootProject.minSdkVersion
Expand Down
3 changes: 1 addition & 2 deletions libs/login/WordPressLoginFlow/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -29,7 +29,6 @@ repositories {

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"

defaultConfig {
minSdkVersion 21
Expand Down
3 changes: 1 addition & 2 deletions libs/networking/WordPressNetworking/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.android.tools.build:gradle:4.0.1'
}
}

Expand All @@ -19,7 +19,6 @@ apply plugin: 'maven'

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {
minSdkVersion 14
Expand Down
2 changes: 1 addition & 1 deletion libs/stories-android
18 changes: 1 addition & 17 deletions libs/utils/WordPressUtils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ buildscript {
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.novoda:bintray-release:0.9.1'
classpath 'com.android.tools.build:gradle:4.0.1'
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.novoda.bintray-release'

repositories {
google()
Expand Down Expand Up @@ -50,7 +48,6 @@ android {
useLibrary 'org.apache.http.legacy'

compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {
versionName "1.27"
Expand Down Expand Up @@ -86,16 +83,3 @@ android.libraryVariants.all { variant ->
}
}
}

publish {
artifactId = 'utils'
userOrg = 'wordpress-mobile'
groupId = 'org.wordpress'
uploadName = 'utils'
desc = 'Utils library for Android'
publishVersion = android.defaultConfig.versionName
licences = ['MIT', 'GPL']
website = 'https://github.com/wordpress-mobile/WordPress-Utils-Android/'
dryRun = 'false'
autoPublish = 'true'
}
5 changes: 5 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id "com.gradle.enterprise" version "3.4.1"
}

include ':WordPress'
include ':libs:stories-android:stories'
project(':libs:stories-android:stories').projectDir = new File(rootProject.projectDir, 'libs/stories-android/stories')
Expand Down Expand Up @@ -50,3 +54,4 @@ if (properties.getOrDefault('wp.BUILD_GUTENBERG_FROM_SOURCE', false).toBoolean()
include ':react-native-reanimated'
project(':react-native-reanimated').projectDir = new File(rootProject.projectDir, 'libs/gutenberg-mobile/gutenberg/node_modules/react-native-reanimated/android')
}

0 comments on commit e612da1

Please sign in to comment.