Skip to content

Commit 1116f5f

Browse files
authored
Reorder and filter mavenLocal() for more reproducible builds (#2527)
The mavenLocal() repository has been moved down below and filtered to ensure that it is checked last and only for kotlinx-serialization:1.x.y-SNAPSHOT. Also replace the outdated `stdlib-common` artifact name.
1 parent 704610d commit 1116f5f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

integration-test/build.gradle

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ buildscript {
55
ext.serialization_version = mainLibVersion
66

77
repositories {
8-
mavenLocal()
98
mavenCentral()
109
maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" }
10+
mavenLocal() {
11+
mavenContent {
12+
snapshotsOnly()
13+
}
14+
}
1115
}
1216
}
1317

@@ -19,9 +23,13 @@ plugins {
1923
}
2024

2125
repositories {
22-
mavenLocal()
2326
mavenCentral()
2427
maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" }
28+
mavenLocal() {
29+
mavenContent {
30+
snapshotsOnly()
31+
}
32+
}
2533
}
2634

2735
group 'com.example'
@@ -64,7 +72,7 @@ kotlin {
6472

6573
commonMain {
6674
dependencies {
67-
implementation kotlin('stdlib-common')
75+
implementation kotlin('stdlib')
6876
implementation "org.jetbrains.kotlinx:kotlinx-serialization-core:$serialization_version"
6977
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$serialization_version"
7078
implementation "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:$serialization_version"
@@ -150,4 +158,4 @@ rootProject.extensions.findByType(org.jetbrains.kotlin.gradle.targets.js.nodejs.
150158

151159
tasks.withType(org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask).configureEach {
152160
args.add("--ignore-engines")
153-
}
161+
}

0 commit comments

Comments
 (0)