Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
Configure authentication for publishing for dsl-common
Browse files Browse the repository at this point in the history
  • Loading branch information
sd-yip committed Apr 19, 2021
1 parent 7bf076c commit 6b741bf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- image: gradle:6.0.1-jdk8
steps:
- checkout
- run: "gradle -S :dsl-common:bintrayUpload"
- run: "gradle -S :dsl-common:publish"

workflows:
version: 2
Expand Down
12 changes: 12 additions & 0 deletions dsl-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,17 @@ publishing {
from(components["java"])
artifact(taskSourceJar)
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/justincase-jp/AWS-CDK-Kotlin-DSL")
credentials {
username =
System.getenv("GITHUB_USER") ?: "${findProperty("GITHUB_USER") ?: "unset"}"
password =
System.getenv("GITHUB_TOKEN") ?: "${findProperty("GITHUB_TOKEN") ?: "unset"}"
}
}
}
}
}
9 changes: 8 additions & 1 deletion example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ application.mainClass.set("jp.justincase.cdkdsl.example.Main")

repositories {
mavenCentral()
maven(url = "https://cdkt.jfrog.io/artifactory/z")
maven {
url = uri("https://maven.pkg.github.com/justincase-jp/AWS-CDK-Kotlin-DSL")
credentials {
username = ""
username =
System.getenv("GITHUB_TOKEN") ?: "${findProperty("GITHUB_TOKEN") ?: "unset"}"
}
}
}

dependencies {
Expand Down

0 comments on commit 6b741bf

Please sign in to comment.