com.byclosure.maven.plugins:google-storage-upload

A maven plugin for uploading files to a google cloud storage bucket

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.byclosure.maven.plugins
ArtifactId

ArtifactId

google-storage-upload
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

com.byclosure.maven.plugins:google-storage-upload
A maven plugin for uploading files to a google cloud storage bucket
Project URL

Project URL

https://github.com/Byclosure/google-storage-upload
Source Code Management

Source Code Management

https://github.com/Byclosure/google-storage-upload

Download google-storage-upload

How to add to project

<plugin>
    <groupId>com.byclosure.maven.plugins</groupId>
    <artifactId>google-storage-upload</artifactId>
    <version>0.0.3</version>
</plugin>

Dependencies

compile (5)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0
org.codehaus.plexus : plexus-utils jar 3.0.8
com.google.api-client : google-api-client jar 1.19.1
com.google.http-client : google-http-client-jackson2 jar 1.19.0
org.apache.maven.plugins : maven-assembly-plugin jar 2.3

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

Project Modules

There are no modules declared in this project.

##GOOGLE STORAGE UPLOAD

A maven plugin for uploading files to a google cloud storage bucket

##How to use

Add the plugin dependency to your pom.xml

<plugin>
	<groupId>com.byclosure.maven.plugins</groupId>
	<artifactId>google-storage-upload</artifactId>
	<version>0.0.2</version>
</plugin>

Configure the credentials

<plugin>
	<groupId>com.byclosure.maven.plugins</groupId>
	<artifactId>google-storage-upload</artifactId>
	<version>0.0.2</version>
	<configuration>
		<serviceAccountEmail>SERVICE_ACCOUNT_EMAIL</serviceAccountEmail>
		<keyP12>P12_FILE</keyP12>
	</configuration>
</plugin>

Configure the files to upload

	<plugin>
	<groupId>com.byclosure.maven.plugins</groupId>
	<artifactId>google-storage-upload</artifactId>
	<version>0.0.2</version>
	<configuration>
		<serviceAccountEmail>SERVICE_ACCOUNT_EMAIL</serviceAccountEmail>
		<keyP12>P12_FILE</keyP12>
		<upload>
			<UploadConfiguration>
				<bucketName>html_bucket</bucketName>
				<source>${project.build.directory}/${tmpTargetDirectory}</source>
				<sourceIncludes>*.html</sourceIncludes>
			</UploadConfiguration>
			<UploadConfiguration>
				<bucketName>css_bucket</bucketName>
				<source>${project.build.directory}/${tmpTargetDirectory}</source>
				<sourceIncludes>*.css</sourceIncludes>
				<destination>folder/on/bucket/</destination>
			</UploadConfiguration>
		</upload>
	</configuration>
</plugin>

To invoke upload

mvn byclosure-plugins:google-storage-upload

Contributions

We welcome all the help we can get!

Versions

Version
0.0.3