summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Startsev <sandwwraith@users.noreply.github.com>2023-12-06 14:09:26 +0100
committerGitHub <noreply@github.com>2023-12-06 14:09:26 +0100
commit1116f5f13a957feecda47d5e08b0aa335fc010fa (patch)
tree5f1e4c9d64acf541823483625f38115af143b88f
parent704610d903a76f73bc3033fb0cef1542964ed6bb (diff)
downloadkotlinx.serialization-1116f5f13a957feecda47d5e08b0aa335fc010fa.tar.gz
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.
-rw-r--r--integration-test/build.gradle16
1 files changed, 12 insertions, 4 deletions
diff --git a/integration-test/build.gradle b/integration-test/build.gradle
index 5edec744..00237a7b 100644
--- a/integration-test/build.gradle
+++ b/integration-test/build.gradle
@@ -5,9 +5,13 @@ buildscript {
ext.serialization_version = mainLibVersion
repositories {
- mavenLocal()
mavenCentral()
maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" }
+ mavenLocal() {
+ mavenContent {
+ snapshotsOnly()
+ }
+ }
}
}
@@ -19,9 +23,13 @@ plugins {
}
repositories {
- mavenLocal()
mavenCentral()
maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" }
+ mavenLocal() {
+ mavenContent {
+ snapshotsOnly()
+ }
+ }
}
group 'com.example'
@@ -64,7 +72,7 @@ kotlin {
commonMain {
dependencies {
- implementation kotlin('stdlib-common')
+ implementation kotlin('stdlib')
implementation "org.jetbrains.kotlinx:kotlinx-serialization-core:$serialization_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$serialization_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-protobuf:$serialization_version"
@@ -150,4 +158,4 @@ rootProject.extensions.findByType(org.jetbrains.kotlin.gradle.targets.js.nodejs.
tasks.withType(org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask).configureEach {
args.add("--ignore-engines")
-} \ No newline at end of file
+}