Skip to content

Commit 530e29f

Browse files
Assert Java 11 and move to Kotlin 1.8.2
Signed-off-by: Stacy Devino <[email protected]>
1 parent 04908f7 commit 530e29f

File tree

9 files changed

+201
-122
lines changed

9 files changed

+201
-122
lines changed
1.99 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
5-
zipStorePath=wrapper/dists
6+
zipStorePath=wrapper/dists

NewProjectCI/gradlew

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac
@@ -205,6 +209,12 @@ set -- \
205209
org.gradle.wrapper.GradleWrapperMain \
206210
"$@"
207211

212+
# Stop when "xargs" is not available.
213+
if ! command -v xargs >/dev/null 2>&1
214+
then
215+
die "xargs is not available"
216+
fi
217+
208218
# Use "xargs" to parse quoted args.
209219
#
210220
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

template/androidApp/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ android {
4545
freeCompilerArgs = freeCompilerArgs + listOf(
4646
"-opt-in=androidx.compose.material3.ExperimentalMaterial3Api",
4747
)
48+
jvmTarget = JavaVersion.VERSION_11.toString()
49+
}
50+
51+
kotlin {
52+
jvmToolchain(11)
4853
}
4954

5055
composeOptions {

template/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ allprojects {
5353
dependencies {
5454
add("detektPlugins", "io.gitlab.arturbosch.detekt:detekt-formatting:$detektVersion")
5555
}
56+
57+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
58+
kotlinOptions.jvmTarget = "11"
59+
}
5660
}
5761

5862
fun String.isNonStable(): Boolean {

template/gradle/libs.versions.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ sdk-min = "23"
66
gradle-android = "7.4.2"
77
gradle-versions = "0.43.0"
88

9-
compose = "1.4.0"
9+
compose = "1.4.2"
1010
compose-material = "1.0.1"
11-
compose-compiler = "1.4.4"
11+
compose-compiler = "1.4.6"
1212
compose-navigation = "2.5.3"
1313
compose-navigation-hilt = "1.0.0"
14-
accompanist = "0.30.0"
14+
accompanist = "0.30.1"
1515
datastore = "1.0.0"
1616

1717
lint = "25.3.0"
1818
detekt = "1.22.0"
1919

2020
javax = "1"
2121
hilt = "2.45"
22-
mockk = "1.13.4"
22+
mockk = "1.13.5"
2323
hilt-testing = "2.45"
2424
dagger = "2.43.2"
25-
kotlin = "1.8.10"
26-
ktor = "2.2.4"
25+
kotlin = "1.8.20"
26+
ktor = "2.3.0"
2727
jvm = "5.4.1"
2828
coroutines = "1.6.4"
2929

3030
[libraries]
3131
## Android
3232
androidx-core = { group = "androidx.core", name = "core-ktx", version = "1.9.0" }
3333
androidx-lifecycle = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version = "2.6.1" }
34-
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version = "1.7.0" }
34+
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version = "1.7.1" }
3535

3636
hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "hilt" }
3737
hilt-navigation-compose = { group = "androidx.hilt", name = "hilt-navigation-compose", version.ref = "compose-navigation-hilt" }
@@ -86,7 +86,7 @@ junit = { group = "junit", name = "junit", version = "4.13.2" }
8686
mockk = { group = "io.mockk", name = "mockk", version.ref = "mockk" }
8787
mockk-android = { group = "io.mockk", name = "mockk-android", version.ref = "mockk" }
8888
mockk-agent = { group = "io.mockk", name = "mockk-agent-jvm", version.ref = "mockk" }
89-
turbine = { group = "app.cash.turbine", name = "turbine", version = "0.12.1" }
89+
turbine = { group = "app.cash.turbine", name = "turbine", version = "0.12.3" }
9090

9191
hilt-test = { group = "com.google.dagger", name = "hilt-android-testing", version.ref = "hilt-testing"}
9292
hilt-test-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "hilt-testing"}
2.32 KB
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Oct 19 18:38:53 WEST 2022
21
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
42
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
4+
networkTimeout=10000
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)