Skip to content

Commit

Permalink
Add classifier for shaded artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
abashev committed Jul 21, 2020
1 parent 67dce51 commit 2801329
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,27 @@ Amazon S3 driver for VFS (Apache Commons Virtual File System)

### How to add as dependency into your Maven build

For an artifact with embedded AWS SDK (an easiest way to bootstrap)

<dependency>
<groupId>com.github.abashev</groupId>
<artifactId>vfs-s3</artifactId>
<version>4.3.1</version>
<classifier>with-aws-sdk</classifier>
</dependency>

For an artifact without dependencies

<dependency>
<groupId>com.github.abashev</groupId>
<artifactId>vfs-s3</artifactId>
<version>4.3.0</version>
<version>4.3.1</version>
</dependency>


### How to add as dependency into your Gradle build

implementation 'com.github.abashev:vfs-s3:4.3.0'
implementation 'com.github.abashev:vfs-s3:4.3.1'

### URL format

Expand Down
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.github.abashev</groupId>
<artifactId>vfs-s3</artifactId>
<packaging>jar</packaging>
<version>4.4.0-SNAPSHOT</version>
<version>4.3.1</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>Amazon S3 driver for VFS (Apache Commons Virtual File System)</description>
Expand Down Expand Up @@ -239,6 +239,8 @@
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>with-aws-sdk</shadedClassifierName>
<minimizeJar>true</minimizeJar>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
Expand Down
2 changes: 1 addition & 1 deletion samples/s3-copy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env groovy

@Grab(group='com.github.abashev', module='vfs-s3', version='4.3.0')
@Grab(group='com.github.abashev', module='vfs-s3', version='4.3.1')
@Grab(group='commons-httpclient', module='commons-httpclient', version='3.1')

import org.apache.commons.vfs2.*
Expand Down
2 changes: 1 addition & 1 deletion samples/s3-list
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env groovy

@Grab(group='com.github.abashev', module='vfs-s3', version='4.3.0')
@Grab(group='com.github.abashev', module='vfs-s3', version='4.3.1')
@Grab(group='commons-httpclient', module='commons-httpclient', version='3.1')

import org.apache.commons.vfs2.*
Expand Down
2 changes: 1 addition & 1 deletion samples/s3-remove
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env groovy

@Grab(group='com.github.abashev', module='vfs-s3', version='4.3.0')
@Grab(group='com.github.abashev', module='vfs-s3', version='4.3.1')

import org.apache.commons.vfs2.*

Expand Down

0 comments on commit 2801329

Please sign in to comment.