summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Startsev <sandwwraith@users.noreply.github.com>2023-12-06 14:09:26 +0100
committerLeonid Startsev <sandwwraith@gmail.com>2023-12-06 14:09:58 +0100
commitafebbcbb6a66085915a62b6e61981db8f5922876 (patch)
tree00a4c47fe685733434c5492cd7a3e49703db42ad
parentd8b98b5ed3ff5f8c6074a1b59e6f0e23f62f0dea (diff)
downloadkotlinx.serialization-afebbcbb6a66085915a62b6e61981db8f5922876.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. (cherry picked from commit 1116f5f13a957feecda47d5e08b0aa335fc010fa)
-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 f81c8f20..6c4e700f 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'
@@ -63,7 +71,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"
@@ -149,4 +157,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
+}