Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit a4a0c22

Browse files
committed
Merge remote-tracking branch 'origin/grails3'
* origin/grails3: (50 commits) Version bumped to 2.1.5 Minor improvement in AmazonS3Service.buildMetadataFromType: cannedAcl param added Version bumped to 2.1.4 [Fix] SES config if located under awssdk > ses but we were looking for awssdk > email due to the use of AmazonSimpleEmailService.ENDPOINT_PREFIX as AWS service name Version bumped to 2.1.3 [Fix] Endpoint attributes should be strings Version bumped to 2.1.2 [Fix] Search for consumerFilterKey in kinesis specific config Version bumped to 2.1.1 Reverting AwsClientUtil in SES plugin Kinesis client lib upgraded to 1.7.2 Move AWS grails 3 plugins into a single multi-project build (Work in Progress : fixed bintrayUpload) [Chore] Travis config update Move AWS grails 3 plugins into a single multi-project build (Work in Progress : renamed grails directories) Move AWS grails 3 plugins into a single multi-project build (Work in Progress : fixed tests) Move AWS grails 3 plugins into a single multi-project build (Work in Progress) README update Version bumped to 1.10.74 AWS SDK java lib upgraded to 1.10.74 Grails upgraded to 3.1.6 ... # Conflicts: # .gitignore # AwsSdkGrailsPlugin.groovy # README.md # application.properties # grails-app/conf/BuildConfig.groovy # grails-app/services/grails/plugin/awssdk/AmazonWebService.groovy # grailsw # grailsw.bat # src/docs/guide/installation.gdoc # test/unit/grails/plugin/awssdk/AmazonWebServiceTests.groovy # wrapper/grails-wrapper-runtime-2.5.1.jar
2 parents 183aa0b + be930b1 commit a4a0c22

File tree

145 files changed

+12851
-3285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+12851
-3285
lines changed

.gitignore

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
# Grails files
2-
/grails-aws-sdk-*.zip
3-
/grails-aws-sdk-*.zip.sha1
4-
/plugin.xml
5-
/target
6-
/target-eclipse
7-
/web-app
8-
9-
# IDE files
10-
.classpath
11-
.idea/
1+
Thumbs.db
2+
.DS_Store
3+
.gradle
4+
build/
5+
.idea
6+
*.iml
7+
*.ipr
8+
*.iws
129
.project
1310
.settings
14-
15-
*.iml
16-
/out
17-
.DS_Store
11+
.classpath

.travis.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
language: groovy
2-
jdk:
3-
- oraclejdk7
2+
jdk: oraclejdk8
3+
sudo: false
4+
5+
env:
6+
global:
7+
- secure: "XhhrOr48eDHwXKt9P3OgIECqdQZ0mJk+GSYnFcUWKPGd8a3VLwHOcQXMI8DlW4Wd/4RJ52S2SakDwq5YhUktu7YQJZloa/WmT8wFMiuJoMexO5a+zlm3H0IetXIOSUbgrxOHH3T/8hluvB7jCY1BHWvdCgWZXBAxOtkcBbQ/lkY="
8+
- secure: "H3ap/6ZKbloKjwozHEfJuesPUYm/CQ1uLx7j2eA3TugavGivEfg3/xDG26+/O+kmyJbw7TOZi/dDRXJDT/fyq3lHy997lN2DXXc+8C8b+mmoD2bUUnH074XvR2cbOxy/Mab0vu9D8+tLQGNEpvWujRCSpe62ptUzMQZe9m2Tsis="
9+
410
script:
5-
- ./grailsw refresh-dependencies
6-
- ./grailsw test-app -coverage -xml
11+
- "./gradlew clean test assemble --stacktrace"
12+
713
after_success:
8-
- ./grailsw coveralls
14+
- "./travis-publish.sh"

AwsSdkGrailsPlugin.groovy

-20
This file was deleted.

README.md

+11-181
Original file line numberDiff line numberDiff line change
@@ -6,193 +6,23 @@ AWS SDK Grails Plugin
66

77
# Introduction
88

9-
The AWS SDK Plugin allows your [Grails](http://grails.org) application to use the [Amazon Web Services](http://aws.amazon.com/) infrastructure services.
9+
The [AWS SDK Plugins for Grails3](https://medium.com/@benorama/aws-sdk-plugins-for-grails-3-cc7f910fdc0d#.5gdwdxei3) are a suite of plugins that adds support for the [Amazon Web Services](http://aws.amazon.com/) infrastructure services.
1010

11-
The aim is to provide a lightweight **amazonWebService** Grails service wrapper around the official [AWS SDK for Java](http://aws.amazon.com/sdkforjava/).
11+
The aim is to to get you started quickly by providing friendly lightweight utility [Grails](http://grails.org) service wrappers, around the official [AWS SDK for Java](http://aws.amazon.com/sdkforjava/) (which is great but very “java-esque”).
12+
See [this article](https://medium.com/@benorama/aws-sdk-plugins-for-grails-3-cc7f910fdc0d#.5gdwdxei3) for more info.
1213

13-
The [AWS SDK for Java](http://aws.amazon.com/sdkforjava/) provides a Java API for AWS infrastructure services, making it even easier for developers to build applications that tap into the cost-effective, scalable, and reliable AWS cloud.
14+
The following services are currently supported:
1415

15-
The Grails plugin handles :
16+
* [AWS SDK DynamoDB Grails Plugin](https://github.com/agorapulse/grails-aws-sdk/tree/master/grails-aws-sdk-dynamodb)
17+
* [AWS SDK Kinesis Grails Plugin](https://github.com/agorapulse/grails-aws-sdk/tree/master/grails-aws-sdk-kinesis)
18+
* [AWS SDK S3 Grails Plugin](https://github.com/agorapulse/grails-aws-sdk/tree/master/grails-aws-sdk-s3)
19+
* [AWS SDK SES Grails Plugin](https://github.com/agorapulse/grails-aws-sdk/tree/master/grails-aws-sdk-ses)
20+
* [AWS SDK SNS Grails Plugin](https://github.com/agorapulse/grails-aws-sdk/tree/master/grails-aws-sdk-sns)
21+
* [AWS SDK SQS Grails Plugin](https://github.com/agorapulse/grails-aws-sdk/tree/master/grails-aws-sdk-sqs)
1622

17-
* convenient Grails configuration/management of all AWS API clients for each AWS region,
18-
* easy access to all AWS API java clients through the **amazonWebService** Grails service wrapper.
19-
20-
# Grails 3 AWS Plugins
21-
22-
For Grails 3 AWS Plugins, the plugin has been splitted by services.
23-
24-
Please check this article:
25-
https://medium.com/@benorama/aws-sdk-plugins-for-grails-3-cc7f910fdc0d#.82945fvd6
26-
27-
# Installation
28-
29-
Declare the plugin dependency in the BuildConfig.groovvy file, as shown here:
30-
31-
```groovy
32-
grails.project.dependency.resolution = {
33-
inherits "global"
34-
log "info"
35-
repositories {
36-
// your repositories
37-
}
38-
dependencies {
39-
// Workaround to resolve dependency issue with aws-java-sdk and http-builder (dependent on httpcore:4.0)
40-
build 'org.apache.httpcomponents:httpcore:4.2'
41-
build 'org.apache.httpcomponents:httpclient:4.2'
42-
runtime 'org.apache.httpcomponents:httpcore:4.2'
43-
runtime 'org.apache.httpcomponents:httpclient:4.2'
44-
}
45-
plugins {
46-
// here go your plugin dependencies
47-
runtime ':aws-sdk:1.11.11'
48-
}
49-
}
50-
```
51-
52-
53-
# Config
54-
55-
Create an AWS account [Amazon Web Services](http://aws.amazon.com/), in order to get your own credentials accessKey and secretKey.
56-
57-
Add your AWS credentials parameters to your _grails-app/conf/Config.groovy_:
58-
59-
```groovy
60-
grails.plugin.awssdk.accessKey = {ACCESS_KEY}
61-
grails.plugin.awssdk.secretKey = {SECRET_KEY}
62-
```
63-
64-
# Documentation
65-
66-
Project documentation is located here:
67-
68-
* [Reference Documentation (Page per chapter)](http://agorapulse.github.io/grails-aws-sdk/guide)
69-
* [Reference Documentation (Single page)](http://agorapulse.github.io/grails-aws-sdk/guide/single.html)
70-
* [Groovy API docs](http://agorapulse.github.io/grails-aws-sdk/gapi/)
71-
72-
AWS SDK for Java documentation is located here:
73-
74-
* [AWS SDK for Java](http://docs.amazonwebservices.com/AWSJavaSDK/latest/javadoc/index.html)
75-
76-
# Supported AWS Services
77-
78-
AWS clients supported by [AWS SDK for Java](http://aws.amazon.com/sdkforjava/):
79-
80-
* Amazon CloudFormation
81-
* Amazon CloudFront
82-
* Amazon CloudSearch
83-
* Amazon CloudWatch
84-
* Amazon CodeDeploy
85-
* Amazon Cognito Identity
86-
* Amazon Cognito Sync
87-
* Amazon Config
88-
* Amazon DynamoDB
89-
* Amazon Elastic Compute Cloud (EC2)
90-
* Amazon Elastic MapReduce
91-
* Amazon Elastic Transcoder
92-
* Amazon ElastiCache
93-
* Amazon Glacier
94-
* Amazon Kinesis
95-
* Amazon Key Management Service (KMS)
96-
* Amazon Relational Database Service (RDS)
97-
* Amazon Redshift
98-
* Amazon Route 53
99-
* Amazon Simple Storage Service (S3)
100-
* Amazon Simple Email Service (SES)
101-
* Amazon SimpleDB
102-
* Amazon Simple Notification Service (SNS)
103-
* Amazon Simple Queue Service (SQS)
104-
* Amazon Simple Workflow (SWF)
105-
* Auto Scaling
106-
* AWS Elastic Beanstalk
107-
* AWS Identity & Access Management (IAM)
108-
* AWS Import/Export
109-
* AWS OpsWorks
110-
* AWS Security Token Service
111-
* AWS Storage Gateway
112-
* Elastic Load Balancing
113-
114-
# Latest releases
115-
116-
* 2016-08-29 **V1.11.11** : AWS SDK for Java updated to V1.11.11
117-
* 2015-12-31 **V1.10.44** : AWS SDK for Java updated to V1.10.44
118-
* 2015-08-20 **V1.10.11** : AWS SDK for Java updated to V1.10.11
119-
* 2015-07-07 **V1.10.3** : AWS SDK for Java updated to V1.10.3
120-
* 2015-06-13 **V1.10.0** : AWS SDK for Java updated to V1.10.0
121-
* 2015-06-05 **V1.9.40** : AWS SDK for Java updated to V1.9.40
122-
* 2015-05-26 **V1.9.37.1** : cloudSearchDomain client added
123-
* 2015-05-22 **V1.9.37** : AWS SDK for Java updated to V1.9.37
124-
* 2015-05-01 **V1.9.33** : AWS SDK for Java updated to V1.9.33 + Cognito services abbreviation (fix #34)
125-
* 2015-04-08 **V1.9.29** : AWS SDK for Java updated to V1.9.29
126-
* 2015-02-25 **V1.9.22** : AWS SDK for Java updated to V1.9.22
127-
* 2015-02-11 **V1.9.18** : AWS SDK for Java updated to V1.9.18
128-
* 2015-01-27 **V1.9.17** : AWS SDK for Java updated to V1.9.17
129-
* 2015-01-09 **V1.9.14** : AWS SDK for Java updated to V1.9.14
130-
* 2015-01-08 **V1.9.13** : AWS SDK for Java updated to V1.9.13
131-
* 2014-12-05 **V1.9.10** : AWS SDK for Java updated to V1.9.10
132-
* 2014-12-05 **V1.9.9.1** : Fix an issue with groovy setter method selection when setting client region
133-
* 2014-12-05 **V1.9.9** : AWS SDK for Java updated to V1.9.9
134-
* 2014-11-15 **V1.9.6** : AWS SDK for Java updated to V1.9.6 + CodeDeploy, Config and KMS support added
135-
* 2014-11-12 **V1.9.4** : AWS SDK for Java updated to V1.9.4
136-
* 2014-10-24 **V1.9.2** : AWS SDK for Java updated to V1.9.2
137-
* 2014-10-09 **V1.9.0** : AWS SDK for Java updated to V1.9.0 + CloudSearch V2 support by default
138-
139-
**WARNING**: Breaking change, since V1.9.0, new **CloudSearch** API Version 2013-01-01 are used (package *com.amazonaws.services.cloudsearchv2* instead of *com.amazonaws.services.cloudsearch* ).
140-
If you are using CloudSearch, please update your calls to the API.
141-
142-
* 2014-10-01 **V1.8.11** : AWS SDK for Java updated to V1.8.11
143-
* 2014-09-18 **V1.8.10.2** : AWS SDK for Java updated to V1.8.10.2 (fix release)
144-
* 2014-09-12 **V1.8.10** : AWS SDK for Java updated to V1.8.10
145-
* 2014-08-18 **V1.8.9** : AWS SDK for Java updated to V1.8.9
146-
* 2014-07-14 **V1.8.4** : AWS SDK for Java updated to V1.8.4 + Amazon Cognito Identity and Sync support added
147-
* 2014-07-03 **V1.8.3** : AWS SDK for Java updated to V1.8.3
148-
* 2014-06-27 **V1.8.2** : AWS SDK for Java updated to V1.8.2
149-
* 2014-06-23 **V1.8.0** : AWS SDK for Java updated to V1.8.0
150-
* 2014-05-23 **V1.7.11** : AWS SDK for Java updated to V1.7.11
151-
* 2014-04-28 **V1.7.7** : AWS SDK for Java updated to V1.7.7
152-
* 2014-04-04 **V1.7.5** : AWS SDK for Java updated to V1.7.5
153-
* 2014-03-21 **V1.7.4** : AWS SDK for Java updated to V1.7.4
154-
* 2014-02-12 **V1.7.1** : AWS SDK for Java updated to V1.7.1
155-
* 2014-01-11 **V1.6.12** : AWS SDK for Java updated to V1.6.12 + DynamoDB mapper support added
156-
* 2014-01-07 **V1.6.11** : AWS SDK for Java updated to V1.6.11
157-
* 2013-12-17 **V1.6.9** : AWS SDK for Java updated to V1.6.9 + Amazon Kinesis support added
158-
* 2013-11-27 **V1.6.7** : AWS SDK for Java updated to V1.6.7
159-
* 2013-11-07 **V1.6.4** : AWS SDK for Java updated to V1.6.4 + proxy settings added in config (thanks to pull request by Jeff Purser)
160-
* 2013-10-25 **V1.6.3** : AWS SDK for Java updated to V1.6.3 + AmazonS3EncryptionClient added
161-
* 2013-10-03 **V1.6.0** : AWS SDK for Java updated to V1.6.0
162-
* 2013-09-11 **V1.5.6** : AWS SDK for Java updated to V1.5.6 + Grails 2.3.0 support
163-
* 2013-08-27 **V1.5.5** : AWS SDK for Java updated to V1.5.5
164-
* 2013-07-11 **V1.5.0** : AWS SDK for Java updated to V1.5.0
165-
* 2013-06-20 **V1.4.7** : AWS SDK for Java updated to V1.4.7
166-
* 2013-06-06 **V1.4.5** : AWS SDK for Java updated to V1.4.5 + DynamoDB V2 support by default
167-
168-
**WARNING**: Breaking change, since V1.4.5, new **DynamoDB** API Version 2012-08-10 are used (package *com.amazonaws.services.dynamodbv2* instead of *com.amazonaws.services.dynamodb* ).
169-
If you are using DynamoDB, please update your calls to the API.
170-
171-
* 2013-05-11 **V1.4.3** : AWS SDK for Java updated to V1.4.3 + Security Token Service support added and bug fixes (thanks to pull requests by craigforster and jako512)
172-
* 2013-04-22 **V1.4.2** : AWS SDK for Java updated to V1.4.2 (DynamoDB adds support for local secondary indexes)
173-
* 2013-03-19 **V1.4.1** : AWS SDK for Java updated to V1.4.1 + Better endpoints management with new region utils
174-
* 2013-03-05 **V1.3.33** : AWS SDK for Java updated to V1.3.33 + Unit tests added + refactor/bug fixes (thanks to Martin Gotink)
175-
* 2013-02-21 **V1.3.32** : AWS SDK for Java updated to V1.3.32 + Amazon OpsWorks and Redshift support added + bug fix
176-
* 2013-02-05 **V1.3.30** : AWS SDK for Java updated to V1.3.30 + Amazon Elastic Transcoder support added
177-
* 2012-12-20 **V1.3.26** : AWS SDK for Java updated to V1.3.26 + S3 Resources scripts (to use with CDN Resources plugin)
178-
* 2012-11-12 **V1.3.24** : AWS SDK for Java updated to V1.3.24 (adds support for long polling in SQS)
179-
* 2012-10-06 **V1.3.22** : AWS SDK for Java updated to V1.3.22 + S3 transfer manager support added (for async upload/download and multiple files upload/download)
180-
* 2012-09-27 **V1.3.21** : AWS SDK for Java updated to V1.3.21.1 + Amazon Glacier support added
181-
* 2012-07-04 **V1.3.12** : AWS SDK for Java updated to V1.3.12
182-
* 2012-07-02 **V1.3.11** : initial release
23+
Please check each README for usage info.
18324

18425
# Bugs
18526

18627
To report any bug, please use the project [Issues](http://github.com/agorapulse/grails-aws-sdk/issues) section on GitHub.
18728

188-
189-
# Other Grails AWS Plugin
190-
191-
FYI, there is another great [Grails AWS plugin](http://grails.org/plugin/aws) with a different approach: its aim is to provide an easy "groovy" access to SES (through a groovy DSL) and S3 (through methods injection), based on JetS3 java lib. If you just need basic SES or S3 features, you might give it a try.
192-
193-
We decided to write our own AWS plugin because it did not meet our requirements:
194-
195-
1. direct access to **ALL** [AWS SDK for Java](http://aws.amazon.com/sdkforjava/) features including **ALL** AWS services, with custom client configuration,
196-
2. only [AWS SDK for Java](http://aws.amazon.com/sdkforjava/) with a consistent way to access **ALL** AWS services,
197-
3. fast release update with 100% compatibility with [AWS SDK for Java](http://aws.amazon.com/sdkforjava/), as it is just a simple lightweight wrapper around the official java clients,
198-
4. no need for additional DSL/methods injection, since we found the [AWS SDK for Java](http://aws.amazon.com/sdkforjava/) clients pretty straightforward to use

application.properties

-2
This file was deleted.

build.gradle

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
buildscript {
2+
ext {
3+
grailsVersion = project.grailsVersion
4+
}
5+
repositories {
6+
mavenLocal()
7+
maven { url "https://repo.grails.org/grails/core" }
8+
}
9+
dependencies {
10+
classpath "org.grails:grails-gradle-plugin:${grailsVersion}"
11+
}
12+
}

gradle.properties

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version=2.1.5
2+
awsJavaSdkVersion=1.11.69
3+
awsKinesisClientVersion=1.7.2
4+
gradleWrapperVersion=3.2.1
5+
grailsVersion=3.2.3
6+
groovyVersion=2.4.7
7+
logbackVersion=1.1.7
8+
slf4jVersion=1.7.21

0 commit comments

Comments
 (0)