Skip to content

Commit

Permalink
Reorder and filter mavenLocal() for more reproducible builds (#2527)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sandwwraith committed Dec 6, 2023
1 parent 704610d commit 1116f5f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions integration-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}
}

Expand All @@ -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'
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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")
}
}

0 comments on commit 1116f5f

Please sign in to comment.