Skip to content

Commit

Permalink
add provided jclouds (apache#8841)
Browse files Browse the repository at this point in the history
Add provided `jclouds-blobstore` for module `tiered-storage`.

A provided dependency will not change the build result of a maven project, but it will provide information to make IDEs easier to parse and analyze the project dependencies rather than a highly customized shaded dependency.
  • Loading branch information
Renkai authored Dec 8, 2020
1 parent ceeabfc commit 911cbec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions tiered-storage/jcloud/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-blobstore</artifactId>
<version>${jclouds.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;

import java.io.IOException;
import java.util.List;
import java.util.Map;
Expand All @@ -30,9 +29,7 @@
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

import lombok.extern.slf4j.Slf4j;

import org.apache.bookkeeper.client.api.ReadHandle;
import org.apache.bookkeeper.common.util.OrderedScheduler;
import org.apache.bookkeeper.mledger.LedgerOffloader;
Expand Down Expand Up @@ -295,7 +292,7 @@ public CompletableFuture<Void> deleteOffloaded(long ledgerId, UUID uid,
return promise;
}


@Override
public OffloadPolicies getOffloadPolicies() {
Properties properties = new Properties();
Expand All @@ -311,4 +308,4 @@ public void close() {
}
}
}
}
}

0 comments on commit 911cbec

Please sign in to comment.