Kork is a common library used across multiple Spinnaker components. A component uses a specific version of Kork depending on the last time that component’s spinnaker-dependencies version was updated. This guide is meant for developers who need to make changes to Kork, test those changes locally in the component that relies on those changes, and deploy those changes once they’ve been submitted.
kork
module locally.$ ./gradlew -PenablePublishing=true -Pversion=0.1.0-SNAPSHOT publishToMavenLocal
.$ ./gradlew -PenablePublishing=true publishToMavenLocal
Inferred project: kork, version: 0.1.0-SNAPSHOT
With Kork now in your local maven repository (~/.m2/
by default), we must make the component pickup this new version.
build.gradle
file, add the following inside the allprojects
block:repositories {
mavenLocal()
}
Inside the allprojects.configurations.all.resolutionStrategy
block, add this, replacing the version with the version printed from the publishToMavenLocal
task:
eachDependency {
if (it.requested.group == 'io.spinnaker.kork') it.useVersion '0.1.0-SNAPSHOT'
}
Voila! The component now uses your locally source, hand-crafted, artisan Kork library!
Edit your component’s build.gradle
file to update the allprojects.spinnaker.depenciesVersion
to the newly released spinnaker-dependencies
version.
spinnaker {
dependenciesVersion = "0.34.0"
}
Build and test locally to ensure all of the new library versions pulled in haven’t broken anything
$ ./gradlew test
Create a submit a PR to the component that includes bumping this version number and any build/test fixes.
Create and submit a PR for the feature that relied on the Kork changes.