Skip to content

Commit 28abf1d

Browse files
authored
Merge branch 'main' into infra/ci-code-suggest
2 parents c79f14e + 063bf3d commit 28abf1d

File tree

11 files changed

+24
-20
lines changed

11 files changed

+24
-20
lines changed

.github/workflows/build_and_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
CI: true
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Set up JDK 11
1919
uses: actions/setup-java@v3
2020
with:
@@ -25,6 +25,7 @@ jobs:
2525
with:
2626
arguments: check build -x detekt -Pdetekt.multiplatform.disabled=true --scan
2727
gradle-version: wrapper
28+
dependency-graph: generate-and-submit
2829
- name: Upload test reports
2930
if: ${{ failure() }} # runs only if previous step has failed, the entire workflow will still be marked as failed
3031
uses: actions/upload-artifact@v3

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-22.04
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: Set up JDK 11
2121
uses: actions/setup-java@v3
2222
with:
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: macos-latest
4242
steps:
4343
- name: Checkout
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545
- name: Set up JDK 11
4646
uses: actions/setup-java@v3
4747
with:
@@ -56,7 +56,7 @@ jobs:
5656
runs-on: windows-latest
5757
steps:
5858
- name: Checkout
59-
uses: actions/checkout@v3
59+
uses: actions/checkout@v4
6060
- name: Set up JDK 11
6161
uses: actions/setup-java@v3
6262
with:

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ tasks.withType<KotlinJvmTest> {
5454

5555
detekt {
5656
buildUponDefaultConfig = true
57-
config = files("detekt.yml")
57+
config.setFrom(files("detekt.yml"))
5858
autoCorrect = (findProperty("detektAutoCorrect") as String?)?.toBoolean() ?: true
5959
}
6060
dependencies {

buildSrc/src/main/kotlin/io/github/petertrr/jacoco-convention.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ val jvmTestTask by tasks.named<Test>("jvmTest") {
2929
val jacocoTestReportTask by tasks.register<JacocoReport>("jacocoTestReport") {
3030
executionData(jvmTestTask.extensions.getByType(JacocoTaskExtension::class.java).destinationFile)
3131
additionalSourceDirs(kotlin.sourceSets["commonMain"].kotlin.sourceDirectories)
32-
classDirectories.setFrom(file("$buildDir/classes/kotlin/jvm/main"))
32+
classDirectories.setFrom(layout.buildDirectory.file("classes/kotlin/jvm/main"))
3333
reports {
3434
xml.required.set(true)
3535
html.required.set(true)

detekt.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ style:
66
formatting:
77
active: true
88
MaximumLineLength:
9+
active: false
10+
ParameterListWrapping:
911
active: false

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
kotlin = "1.8.21"
3-
junit = "5.9.3"
4-
detekt = "1.23.0"
3+
junit = "5.10.0"
4+
detekt = "1.23.1"
55

66
[plugins]
77
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }

gradle/wrapper/gradle-wrapper.jar

346 Bytes
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-
distributionSha256Sum=38f66cd6eef217b4c35855bb11ea4e9fbc53594ccccb5fb82dfd317ef8c2c5a3
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
3+
distributionSha256Sum=3e1af3ae886920c3ac87f7a91f816c0c7c436f276a6eefdb3da152100fef72ae
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum
@@ -144,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144145
case $MAX_FD in #(
145146
max*)
146147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
148149
MAX_FD=$( ulimit -H -n ) ||
149150
warn "Could not query maximum file descriptor limit"
150151
esac
151152
case $MAX_FD in #(
152153
'' | soft) :;; #(
153154
*)
154155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
156157
ulimit -n "$MAX_FD" ||
157158
warn "Could not set maximum file descriptor limit to $MAX_FD"
158159
esac
@@ -201,11 +202,11 @@ fi
201202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203204

204-
# Collect all arguments for the java command;
205-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206-
# shell script including quotes and variable substitutions, so put them in
207-
# double quotes to make sure that they get re-expanded; and
208-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
209210

210211
set -- \
211212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pluginManagement {
66
}
77

88
plugins {
9-
id("com.gradle.enterprise") version("3.13.4")
9+
id("com.gradle.enterprise") version("3.15.1")
1010
id("org.ajoberstar.reckon.settings") version("0.18.0")
1111
}
1212

0 commit comments

Comments
 (0)