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

Commit

Permalink
internal library release fix, upgraded to aws client 1.11.375
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Jul 30, 2018
1 parent dfe4b70 commit 033e8d0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 20 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version=2.2.3
awsJavaSdkVersion=1.11.351
version=2.2.4
awsJavaSdkVersion=1.11.375
awsKinesisClientVersion=1.8.5
gradleWrapperVersion=3.4.1
grailsVersion=3.3.2
Expand Down
1 change: 1 addition & 0 deletions gradle/groovy.commons.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ apply plugin: "maven-publish"
project.apply plugin: "codenarc"

repositories {
mavenCentral()
jcenter()
}

Expand Down
2 changes: 1 addition & 1 deletion grails-aws-sdk-ses/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply from: "../gradle/grails.commons.gradle"
dependencies {

// Location : ../groovy-aws-sdk-ses
compile "agorapulse.libs:groovy-aws-sdk-ses:1.0"
compile "agorapulse.libs:groovy-aws-sdk-ses:1.1"

compile "org.grails:grails-dependencies"
compile "org.grails:grails-web-boot"
Expand Down
2 changes: 1 addition & 1 deletion groovy-aws-sdk-ses/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project_description = Groovy library to interact with AWS SES
version=1.1
awsJavaSdkVersion=1.11.69
awsJavaSdkVersion=1.11.375
gradleWrapperVersion=3.2.1
groovyVersion=2.4.7
logbackVersion=1.1.7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
package com.agorapulse.awssdk.ses

import static com.agorapulse.awssdk.ses.AwsSdkSesEmailDeliveryStatus.STATUS_DELIVERED
import static com.agorapulse.awssdk.ses.AwsSdkSesEmailDeliveryStatus.STATUS_BLACKLISTED
import static com.agorapulse.awssdk.ses.AwsSdkSesEmailDeliveryStatus.STATUS_NOT_DELIVERED

import com.agorapulse.awssdk.AwsSdkUtils
import com.amazonaws.AmazonClientException
import com.amazonaws.AmazonServiceException
import com.amazonaws.auth.BasicAWSCredentials
import com.amazonaws.regions.Region
import com.amazonaws.regions.RegionUtils
import com.amazonaws.services.simpleemail.AmazonSimpleEmailService

import com.amazonaws.AmazonClientException
import com.amazonaws.AmazonServiceException
import com.amazonaws.AmazonWebServiceClient
import com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient
import com.amazonaws.services.simpleemail.model.Body
import com.amazonaws.services.simpleemail.model.Content
import com.amazonaws.services.simpleemail.model.Destination
import com.amazonaws.services.simpleemail.model.Message
import com.amazonaws.services.simpleemail.model.RawMessage
import com.amazonaws.services.simpleemail.model.SendEmailRequest
import com.amazonaws.services.simpleemail.model.SendRawEmailRequest
import com.amazonaws.services.simpleemail.model.*
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j

Expand All @@ -34,6 +22,8 @@ import javax.mail.internet.MimeMultipart
import javax.mail.util.ByteArrayDataSource
import java.nio.ByteBuffer

import static com.agorapulse.awssdk.ses.AwsSdkSesEmailDeliveryStatus.*

@Slf4j
@CompileStatic
class AwsSesMailer {
Expand All @@ -47,7 +37,7 @@ class AwsSesMailer {
}
def credentials = new BasicAWSCredentials(accessKey, secretKey)
def clientConfiguration = AwsSdkUtils.clientConfigurationWithMap([:])
client = new AmazonSimpleEmailServiceClient(credentials, clientConfiguration).withRegion(region)
client = new AmazonSimpleEmailServiceClient(credentials, clientConfiguration).withRegion(region) as AmazonSimpleEmailServiceClient
}

/**
Expand Down

0 comments on commit 033e8d0

Please sign in to comment.