Skip to content

Commit

Permalink
TECH: deleted target 17 (#637)
Browse files Browse the repository at this point in the history
* TECH: deleted target 17
  • Loading branch information
AzamatCherchesov committed Feb 22, 2024
1 parent 9d3632f commit 1fcb27f
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tutorial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 17
- run: pip install mkdocs-material
- run: pip install mkdocs-static-i18n==0.56
- run: mkdocs gh-deploy --force
Binary file modified artifacts/adbserver-desktop.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ plugins {

android {
compileOptions {
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}

testBuildType = "debug"
Expand All @@ -35,14 +35,10 @@ android {
buildFeatures {
viewBinding = true // for the samples
}

kotlin {
jvmToolchain(JavaVersion.VERSION_17.majorVersion.toInt())
}
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ configure<BaseExtension> {
compileSdkVersion(34)

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ android {
}

compileOptions {
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ val kotlinLanguageVersion = "1.8"
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {

jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_1_8.toString()

// TODO: fix all warnings before
// allWarningsAsErrors = true
Expand All @@ -21,6 +21,6 @@ tasks.withType<KotlinCompile>().configureEach {
}

tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ signing {
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
}

//tasks.withType<Sign>().configureEach {
// tasks.withType<Sign>().configureEach {
// onlyIf {
// val isReleaseQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeReleasesRepoName}Repository")
// val isSnapshotQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeSnapshotsRepoName}Repository")
// isReleaseQueued || isSnapshotQueued
// }
//}
// }
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ pluginManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
}

dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
Expand Down
6 changes: 6 additions & 0 deletions tutorial/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ android {
testOptions {
execution = "ANDROIDX_TEST_ORCHESTRATOR"
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
}

dependencies {
Expand Down

0 comments on commit 1fcb27f

Please sign in to comment.