Skip to content

Commit

Permalink
1704 task clean dependencies (#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvince2 authored Aug 15, 2023
1 parent bab4a61 commit e1f021d
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 363 deletions.
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ quarkusPluginId=io.quarkus
quarkusPlatformGroupId=io.quarkus.platform
quarkusPlatformArtifactId=quarkus-bom
quarkusVersion=2.16.6.Final
lombokVersion=1.18.26
elasticsearchVersion=8.7.0
lombokVersion=1.18.28
17 changes: 1 addition & 16 deletions packages/client/hmi-client/src/services/artifact.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Artifact, PresignedURL } from '@/types/Types';
import { Artifact } from '@/types/Types';
import API from '@/api/api';
import { ProjectAssetTypes } from '@/types/Project';
import { addAsset } from '@/services/project';
Expand Down Expand Up @@ -144,20 +144,6 @@ async function getArtifactFileAsText(artifactId: string, fileName: string): Prom
return response.data;
}

async function getPresignedDownloadURL(
artifactId: string,
fileName: string
): Promise<PresignedURL | null> {
const response = await API.get(`/artifacts/${artifactId}/download-url?filename=${fileName}`, {});

if (!response || response.status >= 400) {
logger.error('Error getting presigned download url');
return null;
}

return response.data;
}

async function getArtifactArrayBuffer(
artifactId: string,
fileName: string
Expand All @@ -178,6 +164,5 @@ export {
uploadArtifactToProject,
createNewArtifactFromGithubFile,
getArtifactFileAsText,
getPresignedDownloadURL,
getArtifactArrayBuffer
};
13 changes: 1 addition & 12 deletions packages/services/hmi-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ dependencies {
implementation "io.quarkus:quarkus-smallrye-openapi"
implementation "io.quarkus:quarkus-arc"
implementation "io.quarkus:quarkus-logging-json"
// Multipart file upload/download
implementation 'org.glassfish.jersey.media:jersey-media-multipart:3.1.2'
implementation 'org.glassfish.jersey.core:jersey-server:3.1.2'

// Persistence
implementation "io.quarkus:quarkus-hibernate-orm"
implementation "io.quarkus:quarkus-jdbc-postgresql"
Expand Down Expand Up @@ -72,15 +70,6 @@ dependencies {
// Annotations
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"

//elasticsearch
implementation "org.elasticsearch:elasticsearch:${elasticsearchVersion}"
implementation "org.elasticsearch.client:elasticsearch-rest-client:${elasticsearchVersion}"
implementation "org.elasticsearch.client:elasticsearch-rest-high-level-client:${elasticsearchVersion}"

//aws
implementation platform('software.amazon.awssdk:bom:2.20.102')
implementation 'software.amazon.awssdk:s3'


}

Expand Down
1 change: 0 additions & 1 deletion packages/services/hmi-server/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ quarkusPlatformGroupId=io.quarkus.platform
quarkusPlatformArtifactId=quarkus-bom
quarkusVersion=2.16.8.Final
lombokVersion=1.18.28
elasticsearchVersion=8.7.0

This file was deleted.

Loading

0 comments on commit e1f021d

Please sign in to comment.