Skip to content

Commit 8092c60

Browse files
authored
Merge pull request #1930 from liutikas/gradle9.0.0
Upgradle to 9.0.0
2 parents 45d0e47 + 7ff1913 commit 8092c60

File tree

11 files changed

+14
-31
lines changed

11 files changed

+14
-31
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ android {
6262
excludes.add("/META-INF/{AL2.0,LGPL2.1}")
6363
}
6464
}
65-
testOptions {
66-
unitTests {
67-
isIncludeAndroidResources = true
68-
}
69-
}
65+
testOptions.unitTests.isIncludeAndroidResources = true
7066
namespace = "com.google.samples.apps.nowinandroid"
7167
}
7268

build-logic/convention/src/main/kotlin/com/google/samples/apps/nowinandroid/AndroidCompose.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ internal fun Project.configureAndroidCompose(
4242
"implementation"(libs.findLibrary("androidx-compose-ui-tooling-preview").get())
4343
"debugImplementation"(libs.findLibrary("androidx-compose-ui-tooling").get())
4444
}
45-
46-
testOptions {
47-
unitTests {
48-
// For Robolectric
49-
isIncludeAndroidResources = true
50-
}
51-
}
5245
}
5346

5447
extensions.configure<ComposeCompilerGradlePluginExtension> {

core/data/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ plugins {
2222

2323
android {
2424
namespace = "com.google.samples.apps.nowinandroid.core.data"
25-
testOptions {
26-
unitTests {
27-
isIncludeAndroidResources = true
28-
}
29-
}
25+
testOptions.unitTests.isIncludeAndroidResources = true
3026
}
3127

3228
dependencies {

core/designsystem/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ plugins {
2222

2323
android {
2424
namespace = "com.google.samples.apps.nowinandroid.core.designsystem"
25+
testOptions.unitTests.isIncludeAndroidResources = true
2526
}
2627

2728
dependencies {

core/network/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ android {
3030
buildConfig = true
3131
}
3232
namespace = "com.google.samples.apps.nowinandroid.core.network"
33-
testOptions {
34-
unitTests {
35-
isIncludeAndroidResources = true
36-
}
37-
}
33+
testOptions.unitTests.isIncludeAndroidResources = true
3834
}
3935

4036
dependencies {

feature/foryou/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ plugins {
2323

2424
android {
2525
namespace = "com.google.samples.apps.nowinandroid.feature.foryou"
26+
testOptions.unitTests.isIncludeAndroidResources = true
2627
}
2728

2829
dependencies {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ firebaseCrashlyticsPlugin = "3.0.6"
3737
firebasePerfPlugin = "2.0.1"
3838
gmsPlugin = "4.4.2"
3939
googleOss = "17.1.0"
40-
googleOssPlugin = "0.10.6"
40+
googleOssPlugin = "0.10.7"
4141
hilt = "2.56"
4242
hiltExt = "1.2.0"
4343
jacoco = "0.8.12"

gradle/wrapper/gradle-wrapper.jar

1.83 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4-
distributionSha256Sum=20f1b1176237254a6fc204d8434196fa11a4cfb387567519c61556e8710aed78
3+
distributionSha256Sum=8fad3d78296ca518113f3d29016617c7f9367dc005f932bd9d93bf45ba46072b
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
118118

119119

120120
# Determine the Java command to use to start the JVM.
@@ -205,15 +205,15 @@ fi
205205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206206

207207
# Collect all arguments for the java command:
208-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209209
# and any embedded shellness will be escaped.
210210
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211211
# treated as '${Hostname}' itself on the command line.
212212

213213
set -- \
214214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215215
-classpath "$CLASSPATH" \
216-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217217
"$@"
218218

219219
# Stop when "xargs" is not available.

0 commit comments

Comments
 (0)