From d7ef98901c683ac1823fa1a72ad7f81ccdebe3d2 Mon Sep 17 00:00:00 2001 From: Yahav Itzhak Date: Mon, 3 Jul 2023 15:44:13 +0300 Subject: [PATCH] Support setting the context URL (#32) --- .../artifactory/config/ArtifactoryPluginConvention.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/jfrog/gradle/plugin/artifactory/config/ArtifactoryPluginConvention.java b/src/main/java/org/jfrog/gradle/plugin/artifactory/config/ArtifactoryPluginConvention.java index fd5fd2a..9c96816 100644 --- a/src/main/java/org/jfrog/gradle/plugin/artifactory/config/ArtifactoryPluginConvention.java +++ b/src/main/java/org/jfrog/gradle/plugin/artifactory/config/ArtifactoryPluginConvention.java @@ -24,6 +24,11 @@ public ArtifactoryPluginConvention(Project project) { clientConfig = new ArtifactoryClientConfiguration(new GradleClientLogger(project.getLogger())); } + @SuppressWarnings("unused") + public void setContextUrl(String contextUrl) { + clientConfig.publisher.setContextUrl(contextUrl); + } + public void publish(Closure closure) { publish(ConfigureUtil.configureUsing(closure)); }