Skip to content

Commit

Permalink
Fix deprecated compileSdkVersion and buildToolsVersion
Browse files Browse the repository at this point in the history
- other attempts to fix the mess that Gradle becomes for anything but the simplest Hello World program

Signed-off-by: ingonoka <ingonoka@icloud.com>
  • Loading branch information
ingonoka committed Dec 24, 2022
1 parent 8ffd4f2 commit 1af64e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cba9driverdemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repositories {
}

android {
compileSdkVersion android_compile_sdk_version.toInteger()
buildToolsVersion android_build_tools_version
compileSdk android_compile_sdk_version.toInteger()
// buildToolsVersion android_build_tools_version

defaultConfig {

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 @@ -10,6 +10,6 @@
#Fri Dec 09 10:58:21 PST 2022
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
19 changes: 11 additions & 8 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ repositories {


android {
compileSdkVersion android_compile_sdk_version.toInteger()
buildToolsVersion android_build_tools_version
compileSdk android_compile_sdk_version.toInteger()
// buildToolsVersion android_build_tools_version

defaultConfig {

Expand All @@ -36,15 +36,18 @@ android {
}

buildTypes {
release {
release {
debuggable = false
}
debug{
debug {
debuggable = true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}
Expand All @@ -62,7 +65,7 @@ dependencies {

}

task sourceJar(type: Jar) {
tasks.register("sourceJar", Jar) {
from android.sourceSets.main.kotlin.srcDirs
classifier 'sources'
}
Expand All @@ -86,7 +89,7 @@ afterEvaluate {
}

publishing {
publications.all {
publications.configureEach {
pom {
name = 'CBA9 Banknote Acceptor Driver Library'
description = 'A library implementing the SSP protocol for CBA9 Banknopte Acceptors'
Expand Down

0 comments on commit 1af64e1

Please sign in to comment.