aboutsummaryrefslogtreecommitdiff
path: root/build-logic/automation-plugins/src
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-02-04 19:29:36 +0530
committerGitHub <noreply@github.com>2022-02-04 13:59:36 +0000
commit2b293e58056ea897c305bd39e21b42f5cd4d1a62 (patch)
treeadde6c48d9f78d2aa70fe8867057cefe7bda27cd /build-logic/automation-plugins/src
parentce75d0e49b68e28aedd19293515d2a8fa56e2180 (diff)
Port build to Gradle 7.4-rc-2 (#1707)
Diffstat (limited to 'build-logic/automation-plugins/src')
-rw-r--r--build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.gradle.gradle.kts4
-rw-r--r--build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt7
2 files changed, 5 insertions, 6 deletions
diff --git a/build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.gradle.gradle.kts b/build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.gradle.gradle.kts
index abe0b65a..bbaa8505 100644
--- a/build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.gradle.gradle.kts
+++ b/build-logic/automation-plugins/src/main/kotlin/com.github.android-password-store.gradle.gradle.kts
@@ -7,6 +7,6 @@ import org.gradle.api.tasks.wrapper.Wrapper
import org.gradle.kotlin.dsl.withType
tasks.withType<Wrapper> {
- gradleVersion = "7.3.3"
- distributionSha256Sum = "b586e04868a22fd817c8971330fec37e298f3242eb85c374181b12d637f80302"
+ gradleVersion = "7.4-rc-2"
+ distributionSha256Sum = "21491c9f0656e1529ccb39cbd587d01c33ba00d25f994b10240748ed0d45894a"
}
diff --git a/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt b/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt
index dc67c51b..38ca6700 100644
--- a/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt
+++ b/build-logic/automation-plugins/src/main/kotlin/crowdin/CrowdinPlugin.kt
@@ -28,7 +28,7 @@ class CrowdinDownloadPlugin : Plugin<Project> {
override fun apply(project: Project) {
with(project) {
- val buildDirectory = layout.buildDirectory.asFile.forUseAtConfigurationTime().get()
+ val buildDirectory = layout.buildDirectory.asFile
val extension = extensions.create<CrowdinExtension>("crowdin")
afterEvaluate {
val projectName = extension.projectName
@@ -38,9 +38,8 @@ class CrowdinDownloadPlugin : Plugin<Project> {
val buildOnApi =
tasks.register("buildOnApi") {
doLast {
- val login = providers.environmentVariable("CROWDIN_LOGIN").forUseAtConfigurationTime()
- val key =
- providers.environmentVariable("CROWDIN_PROJECT_KEY").forUseAtConfigurationTime()
+ val login = providers.environmentVariable("CROWDIN_LOGIN")
+ val key = providers.environmentVariable("CROWDIN_PROJECT_KEY")
if (!login.isPresent) {
throw GradleException("CROWDIN_LOGIN environment variable must be set")
}