Misc cleanups and fixes (#1611)

This commit is contained in:
Harsh Shandilya 2021-12-23 17:52:17 +05:30 committed by GitHub
parent cd61f58d44
commit 736f84acb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 19 deletions

View file

@ -27,7 +27,7 @@ jobs:
run: if [[ $(git diff --binary --stat) != '' ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi run: if [[ $(git diff --binary --stat) != '' ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi
- name: Verify update publicsuffixes file - name: Verify update publicsuffixes file
uses: burrunan/gradle-cache-action@03c71a8ba93d670980695505f48f49daf43704a6 uses: gradle/gradle-build-action@v2.0.1
if: env.UPDATED == 'true' if: env.UPDATED == 'true'
with: with:
arguments: :autofill-parser:test -PslimTests arguments: :autofill-parser:test -PslimTests

View file

@ -13,6 +13,7 @@ plugins {
`kotlin-dsl-precompiled-script-plugins` `kotlin-dsl-precompiled-script-plugins`
} }
afterEvaluate {
tasks.withType<JavaCompile>().configureEach { tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_11.toString() sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString() targetCompatibility = JavaVersion.VERSION_11.toString()
@ -21,6 +22,7 @@ tasks.withType<JavaCompile>().configureEach {
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() }
} }
}
gradlePlugin { gradlePlugin {
plugins { plugins {

View file

@ -13,6 +13,7 @@ plugins {
`kotlin-dsl-precompiled-script-plugins` `kotlin-dsl-precompiled-script-plugins`
} }
afterEvaluate {
tasks.withType<JavaCompile>().configureEach { tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_11.toString() sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString() targetCompatibility = JavaVersion.VERSION_11.toString()
@ -21,6 +22,7 @@ tasks.withType<JavaCompile>().configureEach {
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() }
} }
}
gradlePlugin { gradlePlugin {
plugins { plugins {

View file

@ -13,6 +13,7 @@ plugins {
`kotlin-dsl-precompiled-script-plugins` `kotlin-dsl-precompiled-script-plugins`
} }
afterEvaluate {
tasks.withType<JavaCompile>().configureEach { tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_11.toString() sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString() targetCompatibility = JavaVersion.VERSION_11.toString()
@ -21,6 +22,7 @@ tasks.withType<JavaCompile>().configureEach {
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() }
} }
}
dependencies { dependencies {
implementation(libs.build.agp) implementation(libs.build.agp)