Fix distribution downloads (#17358)
This commit is contained in:
parent
7899c6c80a
commit
137b1fab9e
2 changed files with 8 additions and 1 deletions
|
@ -65,6 +65,9 @@ public class CopyDependencies {
|
||||||
|
|
||||||
private void copyMaven(String artifactName, String destinationName) throws IOException {
|
private void copyMaven(String artifactName, String destinationName) throws IOException {
|
||||||
File artifactDir = mavenRepository.resolve(artifactName).resolve(version).toFile();
|
File artifactDir = mavenRepository.resolve(artifactName).resolve(version).toFile();
|
||||||
|
if (!artifactDir.isDirectory()) {
|
||||||
|
throw new RuntimeException(artifactName + " (" + artifactDir + ") not found");
|
||||||
|
}
|
||||||
|
|
||||||
File[] files = artifactDir.listFiles((file, name) -> name.contains(".tar.gz") || name.contains(".tgz") || name.contains(".zip"));
|
File[] files = artifactDir.listFiles((file, name) -> name.contains(".tar.gz") || name.contains(".tgz") || name.contains(".zip"));
|
||||||
|
|
||||||
|
@ -74,6 +77,11 @@ public class CopyDependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void copyNpm(String artifactName, String destinationName) throws IOException {
|
private void copyNpm(String artifactName, String destinationName) throws IOException {
|
||||||
|
Path artifactPath = projectDir.resolve(artifactName);
|
||||||
|
if (!artifactPath.toFile().isFile()) {
|
||||||
|
throw new RuntimeException(artifactName + " (" + artifactPath + ") not found");
|
||||||
|
}
|
||||||
|
|
||||||
Files.copy(projectDir.resolve(artifactName), targetDir.resolve(destinationName));
|
Files.copy(projectDir.resolve(artifactName), targetDir.resolve(destinationName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ mvn:keycloak-api-docs-dist:keycloak-api-docs
|
||||||
|
|
||||||
mvn:keycloak-jetty94-adapter-dist:keycloak-oidc-jetty94-adapter
|
mvn:keycloak-jetty94-adapter-dist:keycloak-oidc-jetty94-adapter
|
||||||
mvn:keycloak-js-adapter-npm-dist:keycloak-oidc-js-adapter
|
mvn:keycloak-js-adapter-npm-dist:keycloak-oidc-js-adapter
|
||||||
mvn:keycloak-js-admin-client:keycloak-js-admin-client
|
|
||||||
mvn:keycloak-tomcat-adapter-dist:keycloak-oidc-tomcat-adapter
|
mvn:keycloak-tomcat-adapter-dist:keycloak-oidc-tomcat-adapter
|
||||||
mvn:keycloak-wildfly-adapter-dist:keycloak-oidc-wildfly-adapter
|
mvn:keycloak-wildfly-adapter-dist:keycloak-oidc-wildfly-adapter
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue