Skip to content

Commit

Permalink
Merge branch 'master' into scala-steward-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhz authored Nov 26, 2024
2 parents 05afc90 + 7fca3be commit 6c5ac2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import io.circe.syntax._
import io.circe.{Json, JsonObject, Printer}
import software.amazon.awssdk.core.sync.RequestBody
import software.amazon.awssdk.services.s3.S3Client
import software.amazon.awssdk.services.s3.model.{CopyObjectRequest, ListObjectsV2Request, PutObjectRequest, S3Object}
import software.amazon.awssdk.services.s3.model.{CopyObjectRequest, ListObjectsV2Request, PutObjectRequest, S3Object, Tagging, TaggingDirective}
import uk.gov.nationalarchives.`export`.Main.Config
import uk.gov.nationalarchives.`export`.MetadataUtils.{ConsignmentType, Judgment, Metadata, Standard}
import uk.gov.nationalarchives.`export`.S3Utils.FileOutput
Expand Down Expand Up @@ -52,6 +52,8 @@ class S3Utils(config: Config, s3Client: S3Client) {
.sourceBucket(config.s3.cleanBucket)
.destinationKey(destinationKey)
.destinationBucket(destinationBucket)
.taggingDirective(TaggingDirective.REPLACE)
.tagging(Tagging.builder().build())
.build()
s3Client.copyObject(copyRequest)
val series = consignmentMetadata.find(_.propertyName == "Series").map(_.value)
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "0.0.450-SNAPSHOT"
ThisBuild / version := "0.0.452-SNAPSHOT"

0 comments on commit 6c5ac2e

Please sign in to comment.