Skip to content

Commit

Permalink
add pom_template to kt_jvm
Browse files Browse the repository at this point in the history
  • Loading branch information
sugarmanz committed Jan 26, 2024
1 parent 5c9579c commit bd3cf58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions distribution/NexusStagingCli.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ class NexusStagingCli : CliktCommand() {
}

val username by option(help = "Nexus server username").defaultLazy {
System.getenv("DEPLOY_MAVEN_USERNAME")
System.getenv("MAVEN_USER")
}

val password by option(help = "Nexus server password").defaultLazy {
System.getenv("DEPLOY_MAVEN_PASSWORD")
System.getenv("MAVEN_PASSWORD")
}

val clientTimeout by option(help = "Client timeout in seconds").long()
Expand Down
2 changes: 1 addition & 1 deletion distribution/staged-maven-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ for pkg in $DEPLOY_LABELS ; do
if [ -n "${STAGING-}" ]; then
bazel run "$pkg" --define=maven_repo="$STAGING" -- "$1"
else
bazel run "$pkg" --define=maven_repo="file://$HOME/.m2/repository" -- "$1"
bazel run "$pkg" --define=maven_repo="https://oss.sonatype.org/content/repositories/snapshots/" -- "$1"
fi
done

Expand Down
2 changes: 2 additions & 0 deletions kotlin/kt_jvm.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def kt_jvm(
version = None,
deploy_env = None,
excluded_workspaces = None,
pom_template = None,

# Package level config
module_name = None,
Expand Down Expand Up @@ -163,4 +164,5 @@ def kt_jvm(
maven_coordinates = maven_coordinates,
deploy_env = deploy_env,
excluded_workspaces = excluded_workspaces,
pom_template = pom_template,
)

0 comments on commit bd3cf58

Please sign in to comment.