Skip to content

Commit

Permalink
Fix some gradle deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
TacoTheDank committed Jul 11, 2022
1 parent 2895b35 commit 31e7ce3
Show file tree
Hide file tree
Showing 26 changed files with 74 additions and 74 deletions.
6 changes: 3 additions & 3 deletions annotation/compiler/test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ afterEvaluate {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int
versionName VERSION_NAME as String
}

Expand Down
6 changes: 3 additions & 3 deletions benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

android {
compileSdkVersion 30
compileSdk 30
buildToolsVersion "30.0.3"

compileOptions {
Expand All @@ -13,8 +13,8 @@ android {
}

defaultConfig {
minSdkVersion 19
targetSdkVersion 30
minSdk 19
targetSdk 30
versionCode 1
versionName "1.0"

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ subprojects { project ->
if (project.hasProperty("android")
&& project.name != 'pmd' ) {
android {
lintOptions {
lint {
warningsAsErrors true
quiet true
// Caught by the violations plugin.
Expand Down
6 changes: 3 additions & 3 deletions glide/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def getAndroidSdkDirectory() {
project(':library').android.sdkDirectory
}

def getAndroidCompileSdkVersion() {
project(':library').android.compileSdkVersion
def getAndroidCompileSdk() {
project(':library').android.compileSdk
}

def getAndroidProjectsForJavadoc() {
Expand All @@ -58,7 +58,7 @@ def getSourceFilesForJavadoc() {
}

def getAndroidJar() {
"${getAndroidSdkDirectory()}/platforms/${getAndroidCompileSdkVersion()}/android.jar"
"${getAndroidSdkDirectory()}/platforms/${getAndroidCompileSdk()}/android.jar"
}

project.archivesBaseName = "${POM_ARTIFACT_ID}-${VERSION_NAME}"
Expand Down
6 changes: 3 additions & 3 deletions instrumentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
applicationId 'com.bumptech.glide.instrumentation'
minSdkVersion 16 as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk 16 as int
targetSdk TARGET_SDK_VERSION as int
versionCode 1
versionName '1.0'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
6 changes: 3 additions & 3 deletions integration/avif/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionName VERSION_NAME as String
}
Expand Down
6 changes: 3 additions & 3 deletions integration/concurrent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionName = VERSION_NAME as String
}
Expand Down
6 changes: 3 additions & 3 deletions integration/cronet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion 16 as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk 16 as int
targetSdk TARGET_SDK_VERSION as int

versionName VERSION_NAME as String
}
Expand Down
6 changes: 3 additions & 3 deletions integration/gifencoder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

sourceSets {
main {
Expand All @@ -23,8 +23,8 @@ android {
}

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionName = VERSION_NAME as String
}
Expand Down
6 changes: 3 additions & 3 deletions integration/okhttp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionName VERSION_NAME as String
}
Expand Down
6 changes: 3 additions & 3 deletions integration/okhttp3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionName VERSION_NAME as String
}
Expand Down
6 changes: 3 additions & 3 deletions integration/recyclerview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionName VERSION_NAME as String
}
Expand Down
6 changes: 3 additions & 3 deletions integration/volley/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionName VERSION_NAME as String
}
Expand Down
6 changes: 3 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ if (project.plugins.hasPlugin('net.ltgt.errorprone')) {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int
versionName VERSION_NAME as String
consumerProguardFiles 'proguard-rules.txt'
}
Expand Down
6 changes: 3 additions & 3 deletions library/test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ android.testOptions.unitTests.all { Test testTask ->
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int
versionName VERSION_NAME as String
}

Expand Down
6 changes: 3 additions & 3 deletions mocks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionName = VERSION_NAME as String
}
Expand Down
6 changes: 3 additions & 3 deletions samples/contacturi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
applicationId 'com.bumptech.glide.samples.contacturi'
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionCode 1
versionName '1.0'
Expand Down
6 changes: 3 additions & 3 deletions samples/flickr/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
applicationId 'com.bumptech.glide.samples.flickr'
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionCode 1
versionName '1.0'
Expand Down
6 changes: 3 additions & 3 deletions samples/gallery/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ kotlin {
}

android {
compileSdkVersion 32
compileSdk 32

defaultConfig {
applicationId 'com.bumptech.glide.samples.gallery'
minSdkVersion 29
targetSdkVersion 32
minSdk 29
targetSdk 32
versionCode 1
versionName '1.0'
}
Expand Down
6 changes: 3 additions & 3 deletions samples/giphy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
applicationId 'com.bumptech.glide.samples.giphy'
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int
versionCode 1
versionName '1.0'
}
Expand Down
6 changes: 3 additions & 3 deletions samples/imgur/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
applicationId "com.bumptech.glide.samples.imgur"
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int
versionCode 1
versionName "1.0"

Expand Down
6 changes: 3 additions & 3 deletions samples/svg/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
applicationId 'com.bumptech.glide.samples.svg'
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int

versionCode 1
versionName '1.0'
Expand Down
2 changes: 1 addition & 1 deletion scripts/upload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ afterEvaluate { project ->

def getAndroidSdkDirectory = project.android.sdkDirectory

def getAndroidJar = "${getAndroidSdkDirectory}/platforms/${project.android.compileSdkVersion}/android.jar"
def getAndroidJar = "${getAndroidSdkDirectory}/platforms/${project.android.compileSdk}/android.jar"

task androidJavadocs(type: Javadoc, dependsOn: assembleDebug) {
source = variants.collect { it.getJavaCompileProvider().get().source }
Expand Down
6 changes: 3 additions & 3 deletions testutil/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int
versionName VERSION_NAME as String
}

Expand Down
6 changes: 3 additions & 3 deletions third_party/disklrucache/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int
versionName VERSION_NAME as String
consumerProguardFiles 'proguard-rules.txt'
}
Expand Down
6 changes: 3 additions & 3 deletions third_party/gif_decoder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ dependencies {
}

android {
compileSdkVersion COMPILE_SDK_VERSION as int
compileSdk COMPILE_SDK_VERSION as int

defaultConfig {
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
minSdk MIN_SDK_VERSION as int
targetSdk TARGET_SDK_VERSION as int
}
}

Expand Down

0 comments on commit 31e7ce3

Please sign in to comment.