Skip to content

Instantly share code, notes, and snippets.

@wongk
Created February 18, 2020 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wongk/e6172d14323655b657405080491d0159 to your computer and use it in GitHub Desktop.
Save wongk/e6172d14323655b657405080491d0159 to your computer and use it in GitHub Desktop.
Blog - KMP publishing - artifactory config
artifactory {
setContextUrl("https://host.example.com/artifactory/")
publish(delegateClosureOf<PublisherConfig> {
repository(delegateClosureOf<DoubleDelegateWrapper> {
setProperty("repoKey", "example-repo")
setProperty("username", "aUsername")
setProperty("password", "aPassword")
setProperty("maven", true)
})
defaults(delegateClosureOf<groovy.lang.GroovyObject> {
invokeMethod("publications", arrayOf(
"androidDebug", "androidRelease", "ios", "iosArm64", "kotlinMultiplatform", "metadata"
))
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment