Skip to content

Commit

Permalink
TECH: deleted target 17
Browse files Browse the repository at this point in the history
  • Loading branch information
AzamatCherchesov committed Feb 21, 2024
1 parent ff40a1c commit 254054d
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publication_maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 17
java-version: 11
- name: Tests
run: make unit_tests
- name: Assemble build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 17
java-version: 11
- name: Run static analysis
run: make static_analysis
- name: Run unit tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 17
java-version: 11
- name: Assemble projects
run: ./gradlew -Pkaspresso.snapshotVersion=${{ inputs.kaspressoVersion }} assembleDebugAndroidTest
- name: Check legal documents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ plugins {
}

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

testBuildType = "debug"

defaultConfig {
Expand All @@ -32,6 +37,12 @@ android {
}

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

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

compileSdkVersion(34)

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

defaultConfig {
minSdk = 18
targetSdk = 30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,15 @@ android {
ignore = true
}
}

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

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 254054d

Please sign in to comment.