diff --git a/release/pipelines.release.yml b/release/pipelines.release.yml index 7972c923..8335eb6b 100644 --- a/release/pipelines.release.yml +++ b/release/pipelines.release.yml @@ -54,7 +54,7 @@ pipelines: - jf gradlec --use-wrapper --repo-resolve ecosys-maven-remote --repo-deploy ecosys-oss-release-local --deploy-maven-desc # Run audit - - jf audit + - jf audit --gradle --use-wrapper # Update version - sed -i "s/\(version=\).*\$/\1${NEXT_VERSION}/" gradle.properties diff --git a/src/main/java/com/jfrog/ide/common/configuration/JfrogCliServerConfig.java b/src/main/java/com/jfrog/ide/common/configuration/JfrogCliServerConfig.java index c8068798..fbfbf509 100644 --- a/src/main/java/com/jfrog/ide/common/configuration/JfrogCliServerConfig.java +++ b/src/main/java/com/jfrog/ide/common/configuration/JfrogCliServerConfig.java @@ -87,7 +87,7 @@ public SSLContext getSslContext() { } @Override - public ProxyConfiguration getProxyConfForTargetUrl(String xrayUrl) { + public ProxyConfiguration getProxyConfForTargetUrl(String targetUrl) { return null; } @@ -101,6 +101,11 @@ public int getConnectionTimeout() { return 0; } + @Override + public String getExternalResourcesRepo() { + return null; + } + private String getValueFromJson(String fieldName) { return serverConfig.get(fieldName) != null ? serverConfig.get(fieldName).asText() : ""; } diff --git a/src/main/java/com/jfrog/ide/common/configuration/ServerConfig.java b/src/main/java/com/jfrog/ide/common/configuration/ServerConfig.java index 4b268982..c3b4aa9f 100644 --- a/src/main/java/com/jfrog/ide/common/configuration/ServerConfig.java +++ b/src/main/java/com/jfrog/ide/common/configuration/ServerConfig.java @@ -53,12 +53,12 @@ enum PolicyType {VULNERABILITIES, PROJECT, WATCHES} SSLContext getSslContext(); /** - * Reads the http proxy configuration set in IDE configuration and returns the proxy configuration for the Xray URL. + * Reads the HTTP proxy configuration set in IDE configuration and returns the proxy configuration for the target URL. * - * @param xrayUrl - Xray url. - * @return proxy config for the Xray URL. + * @param targetUrl The target URL. + * @return Proxy configuration for the target URL. */ - ProxyConfiguration getProxyConfForTargetUrl(String xrayUrl); + ProxyConfiguration getProxyConfForTargetUrl(String targetUrl); /** * @return connection retries. @@ -70,6 +70,13 @@ enum PolicyType {VULNERABILITIES, PROJECT, WATCHES} */ int getConnectionTimeout(); + /** + * Returns external resources repository name. If it's not configured, null is returned. + * + * @return External resources repository name, if configured. + */ + String getExternalResourcesRepo(); + @SuppressWarnings("unused") default boolean areCredentialsSet() { return isNoneBlank(getUsername(), getPassword()) && !isAllBlank(getUrl(), getXrayUrl(), getArtifactoryUrl()); diff --git a/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java b/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java index 2fbfa1ba..84dd6640 100644 --- a/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java +++ b/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java @@ -36,7 +36,7 @@ public PackageFileFinder(Set projectPaths, Path basePath, String excludedP this.exclusions = FileSystems.getDefault().getPathMatcher("glob:" + excludedPaths); this.basePath = basePath; - for (Path projectPath : Utils.consolidatePaths(projectPaths)) { + for (Path projectPath : projectPaths) { Files.walkFileTree(projectPath, this); } if (!excludedDirectories.isEmpty()) { @@ -50,7 +50,7 @@ public PackageFileFinder(Set projectPaths, Path basePath, String excludedP /** * Get package.json directories and their directories. * - * @return List of package.json's parent directories. + * @return Set of package.json's parent directories. */ public Set getNpmPackagesFilePairs() { Set packageJsonDirectoriesSet = Sets.newHashSet(packageJsonDirectories); @@ -62,7 +62,7 @@ public Set getNpmPackagesFilePairs() { /** * Get package.json directories and their directories. * - * @return List of yarn.lock's parent directories. + * @return Set of yarn.lock's parent directories. */ public Set getYarnPackagesFilePairs() { return Sets.newHashSet(yarnLockDirectories); @@ -71,7 +71,7 @@ public Set getYarnPackagesFilePairs() { /** * Get build.gradle and build.gradle.kts directories and their directories. * - * @return List of build.gradle and build.gradle.kts's parent directories. + * @return Set of build.gradle and build.gradle.kts's parent directories. */ public Set getBuildGradlePackagesFilePairs() { return Sets.newHashSet(buildGradleDirectories); @@ -80,7 +80,7 @@ public Set getBuildGradlePackagesFilePairs() { /** * Get go.mod directories and their directories. * - * @return List of go.mod's parent directories. + * @return Set of go.mod's parent directories. */ public Set getGoPackagesFilePairs() { return Sets.newHashSet(goModDirectories);