Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update testS3List to use udp-spec #49

Merged
merged 4 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# CHANGELOG.md

## [0.1.3] - 2024-08-21

- Fix failing tests
- Use latest versions of dependencies

## [0.1.2] - 2024-05-10

- Last Dima version

## [0.1.1] - 2024-05-09

- Production Version

## [0.1.0] - 2023-10-04

- Initial release
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ To enable debug logging, set the environment variable `LOG4J_DEBUG=true`:
LOG4J_DEBUG=true ./gradlew check
```

## Update

./gradlew useLatestVersions
./gradlew check

## Publishing

This project is published to [Maven Central](https://central.sonatype.com/artifact/com.quiltdata/quiltcore/versions) using `SonatypeHost.CENTRAL_PORTAL` from the [vanniktech.github.io/gradle-maven-publish-plugin](https://vanniktech.github.io/gradle-maven-publish-plugin/central/#configuring-what-to-publish).
Expand Down
32 changes: 20 additions & 12 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ import com.vanniktech.maven.publish.SonatypeHost
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id 'com.vanniktech.maven.publish' version '0.28.0'
id 'com.vanniktech.maven.publish' version '0.29.0'
id 'se.patrikerdes.use-latest-versions' version '0.2.18'
id 'com.github.ben-manes.versions' version '0.51.0'
}

useLatestVersions {
// A blacklist of dependencies to update, in the format of group:name
updateBlacklist = [
]
}

repositories {
Expand All @@ -13,27 +21,27 @@ repositories {

dependencies {
// AWS SDK
implementation 'software.amazon.awssdk:s3:2.25.49'
implementation 'software.amazon.awssdk:s3-transfer-manager:2.25.49'
implementation 'software.amazon.awssdk.crt:aws-crt:0.29.18'
implementation 'software.amazon.awssdk:s3:2.27.11'
implementation 'software.amazon.awssdk:s3-transfer-manager:2.27.11'
implementation 'software.amazon.awssdk.crt:aws-crt:0.30.8'

// JSON and YAML parsing.
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.1'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.17.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.17.2'

// JSON Schema validator.
implementation 'io.vertx:vertx-json-schema:4.5.7'
implementation 'io.vertx:vertx-json-schema:4.5.9'

// Workarounds for Java's checked exceptions.
implementation 'com.pivovarit:throwing-function:1.5.1'

// Use JUnit test framework.
testImplementation('org.junit.jupiter:junit-jupiter:5.10.2')
testImplementation('org.junit.jupiter:junit-jupiter:5.11.0')

// Add Log4j dependency
implementation 'org.apache.logging.log4j:log4j-core:2.23.1'
implementation 'org.apache.logging.log4j:log4j-api:2.23.1'
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.23.1'
implementation 'org.apache.logging.log4j:log4j-core:3.0.0-beta2'
implementation 'org.apache.logging.log4j:log4j-api:3.0.0-beta2'
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:3.0.0-beta2'
}

// Apply a specific Java toolchain to ease working on different environments.
Expand Down Expand Up @@ -66,7 +74,7 @@ mavenPublishing {

signAllPublications()

coordinates('com.quiltdata', 'quiltcore', '0.1.2')
coordinates('com.quiltdata', 'quiltcore', '0.1.3')

pom {
name.set('QuiltCore')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ public void testLocalList() throws Exception {

@Test
public void testS3List() throws Exception {
S3PhysicalKey pk = new S3PhysicalKey("quilt-example", "examples/hurdat/", null);
S3PhysicalKey pk = new S3PhysicalKey("udp-spec", "nf-quilt/source", null);
String[] files = pk.listRecursively().toArray(String[]::new);
Arrays.sort(files);
assertArrayEquals(new String[] {
"data/atlantic-storms.csv",
"notebooks/QuickStart.ipynb",
"quilt_summarize.json",
"scripts/build.py",
"COPY_THIS.md",
"a_folder/THING_ONE.md",
"a_folder/THING_TWO.md",
}, files);
}

Expand Down
Loading