Skip to content

Commit

Permalink
Merge pull request #72 from androidx/upgradle
Browse files Browse the repository at this point in the history
Upgrade to Gradle 7.4 and AGP 8.1.0
  • Loading branch information
liutikas authored Oct 19, 2023
2 parents c0b0888 + 6d39331 commit 336fedc
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
- name: "Setup Gradle"
uses: gradle/gradle-build-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: "checkout"
uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
- name: "Setup Gradle"
uses: gradle/gradle-build-action@v2
Expand Down
2 changes: 1 addition & 1 deletion AndroidXCI/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ val publishRepo = project.layout.buildDirectory.dir("repo")
subprojects {
tasks.withType(KotlinCompile::class.java).configureEach {
kotlinOptions {
jvmTarget = "11"
jvmTarget = "17"
}
}
pluginManager.withPlugin("maven-publish") {
Expand Down
5 changes: 5 additions & 0 deletions AndroidXCI/cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ dependencies {
application {
mainClass.set("dev.androidx.ci.cli.MainKt")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
5 changes: 5 additions & 0 deletions AndroidXCI/ftlModelBuilder/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ gradlePlugin {
implementationClass = "dev.androidx.ci.codegen.plugin.GenerateModelsPlugin"
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
2 changes: 1 addition & 1 deletion AndroidXCI/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX
org.gradle.configureondemand=true
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.unsafe.configuration-cache=true
org.gradle.configuration-cache=true
1 change: 1 addition & 0 deletions AndroidXCI/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ retrofit = ["retrofit-core", "retrofit-converter-moshi", "okhttp-core", "okhttp-

log4j = ["log4j-kotlin", "log4j-core"]
[plugins]
androidApplication = { id = "com.android.application", version = "8.1.2" }
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }
ktlintIdea = { id = "org.jlleitschuh.gradle.ktlint-idea", version.ref = "ktlint" }
Expand Down
3 changes: 2 additions & 1 deletion AndroidXCI/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionSha256Sum=3e1af3ae886920c3ac87f7a91f816c0c7c436f276a6eefdb3da152100fef72ae
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 3 additions & 0 deletions AndroidXCI/lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,7 @@ java {
)
}
}
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
2 changes: 1 addition & 1 deletion AndroidXCI/placeholderapp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

plugins {
id("com.android.application") version("7.3.0")
alias(libs.plugins.androidApplication)
}

android {
Expand Down

0 comments on commit 336fedc

Please sign in to comment.