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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: agorapulse/grails-aws-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.4.11
Choose a base ref
...
head repository: agorapulse/grails-aws-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 15 commits
  • 12 files changed
  • 1 contributor

Commits on May 5, 2021

  1. unified versions

    musketyr committed May 5, 2021
    Copy the full SHA
    3390f65 View commit details

Commits on May 17, 2021

  1. Copy the full SHA
    3fa87b2 View commit details
  2. fixed release workflow

    musketyr committed May 17, 2021
    Copy the full SHA
    600237e View commit details

Commits on Jun 7, 2021

  1. Copy the full SHA
    2af8365 View commit details
  2. enable gitpack

    musketyr committed Jun 7, 2021
    Copy the full SHA
    b4944a0 View commit details
  3. Revert "enable gitpack"

    This reverts commit b4944a0
    musketyr committed Jun 7, 2021
    Copy the full SHA
    3493f39 View commit details
  4. Copy the full SHA
    d05b8b8 View commit details
  5. added jitpack info

    musketyr committed Jun 7, 2021
    Copy the full SHA
    6b90931 View commit details
  6. Copy the full SHA
    169be60 View commit details

Commits on Aug 30, 2021

  1. Copy the full SHA
    c1fc0a1 View commit details

Commits on Dec 7, 2021

  1. Updated documentation

    musketyr authored Dec 7, 2021
    Copy the full SHA
    bffdcaf View commit details
  2. Update README.md

    musketyr authored Dec 7, 2021
    Copy the full SHA
    fdac7cc View commit details

Commits on Jul 20, 2022

  1. Copy the full SHA
    f111781 View commit details

Commits on Jan 18, 2023

  1. Update README.md

    musketyr authored Jan 18, 2023
    Copy the full SHA
    89e0ff8 View commit details

Commits on Jul 28, 2023

  1. Copy the full SHA
    5a87863 View commit details
28 changes: 26 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ on:
release:
types: [published]
jobs:
publish:
release:
runs-on: ubuntu-latest
permissions:
contents: read
@@ -14,11 +14,35 @@ jobs:
with:
java-version: 8
distribution: adopt
- name: Semantic Version
id: version
uses: ncipollo/semantic-version-action@v1
- name: Publish plugins
uses: eskatos/gradle-command-action@v1
with:
arguments: publish
arguments: publish -Pversion=${{ steps.version.outputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
DEPLOYER_PASSWORD: ${{ secrets.DEPLOYER_PASSWORD }}
ping:
name: Notify Upstream Repositories
runs-on: ubuntu-latest
needs: [release]
strategy:
matrix:
repository:
- agorapulse/agorapulse-bom
- agorapulse/agorapulse-oss
steps:
- uses: actions/checkout@v1
- name: Semantic Version
id: version
uses: ncipollo/semantic-version-action@v1
- name: Dispatch to ${{ matrix.repository }}
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.AGORAPULSE_BOT_PERSONAL_TOKEN }}
repository: ${{ matrix.repository }}
event-type: ap-new-version-released-event
client-payload: '{ "group": "com.agorapulse", "module": "grails-aws-sdk", "version": "${{ steps.version.outputs.tag }}", "property": "grails.aws.sdk.version", "github" : ${{ toJson(github) }} }'
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
AWS SDK Grails Plugin
=====================

[![Build Status](https://travis-ci.org/agorapulse/grails-aws-sdk.svg)](https://travis-ci.org/agorapulse/grails-aws-sdk) [ ![Download](https://api.bintray.com/packages/agorapulse/plugins/aws-sdk-dynamodb/images/download.svg?version=2.2.12) ](https://bintray.com/agorapulse/plugins/aws-sdk-dynamodb/2.2.12/link)
IMPORTANT: Project retirement
-------------------------------

**This project is retired. As Micronaut become core of the Grails starting at Grails 4, please, use [Micronaut AWS SDK](https://agorapulse.github.io/micronaut-aws-sdk) instead.**

# Introduction

@@ -22,6 +25,22 @@ The following services are currently supported:

Please check each README for usage info.

# Installation

The plugins have switched to Jitpack:

```groovy
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
// example dependency
compile 'com.github.agorapulse.grails-aws-sdk:aws-sdk-s3:2.4.14'
}
```

# Testing

[How to Unit Test AWS Services with LocalStack and Testcontainers](https://medium.com/agorapulse-stories/how-to-unit-test-aws-services-with-localstack-and-testcontainers-1d39fe5dc6c2)
@@ -32,7 +51,7 @@ To report any bug, please use the project [Issues](http://github.com/agorapulse/

# Compatibilty

NOTE: For Grails 4 you should consider migrating to [Micronaut AWS SDK](https://agorapulse.github.io/micronaut-aws-sdk/) as Miconaut is now the first class citizen in Grails. Use `-micronaut-1.2` releases for Grails `4.0.x`.
NOTE: For Grails 4 and later you should migrate to [Micronaut AWS SDK](https://agorapulse.github.io/micronaut-aws-sdk/) as Miconaut is now the first class citizen in Grails.

| Grails | Plugin |
| ------------- |---------------|
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ buildscript {
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/artifactory/core" }
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=2.4.10
version=2.5.0-SNAPSHOT
awsJavaSdkVersion=1.11.874
awsKinesisClientVersion=1.14.1
gradleWrapperVersion=5.6.4
5 changes: 4 additions & 1 deletion gradle/grails.commons.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
buildscript {
repositories {
mavenLocal()
maven { url "https://repo.grails.org/artifactory/core" }
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:${grailsVersion}"
}
}

group "org.grails.plugins"
group(System.getenv('GROUP') ?: 'org.grails.plugins')

apply plugin:"eclipse"
apply plugin:"idea"
@@ -22,6 +23,7 @@ ext {

repositories {
mavenCentral()
maven { url "https://repo.grails.org/artifactory/core" }
maven { url "https://repo.grails.org/grails/core" }
}

@@ -65,6 +67,7 @@ publishing {
}
if (System.getenv('DEPLOYER_PASSWORD')) {
maven {
name = "JFrog"
credentials {
username "deployer"
password System.getenv('DEPLOYER_PASSWORD')
3 changes: 2 additions & 1 deletion gradle/groovy.commons.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group "agorapulse.libs"
group(System.getenv('GROUP') ?: "agorapulse.libs")

apply plugin: "groovy"
apply plugin: "maven-publish"
@@ -55,6 +55,7 @@ publishing {
}
if (System.getenv('DEPLOYER_PASSWORD')) {
maven {
name = "JFrog"
credentials {
username "deployer"
password System.getenv('DEPLOYER_PASSWORD')
Original file line number Diff line number Diff line change
@@ -6,18 +6,21 @@ import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain
import com.amazonaws.regions.Region
import com.amazonaws.regions.ServiceAbbreviations
import com.amazonaws.services.dynamodbv2.model.BillingMode
import com.amazonaws.services.kinesis.AmazonKinesisClient
import com.amazonaws.services.kinesis.clientlibrary.interfaces.IRecordProcessorFactory
import com.amazonaws.services.kinesis.clientlibrary.lib.worker.InitialPositionInStream
import com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisClientLibConfiguration
import com.amazonaws.services.kinesis.clientlibrary.lib.worker.Worker
import grails.core.GrailsApplication
import grails.util.Environment
import groovy.util.logging.Slf4j

import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit

@Slf4j
abstract class AbstractClientService {

static SERVICE_NAME = ServiceAbbreviations.Kinesis
@@ -85,6 +88,7 @@ abstract class AbstractClientService {
.withRegionName(region.name)
.withInitialPositionInStream(InitialPositionInStream.LATEST)
.withIdleTimeBetweenReadsInMillis(idleTimeBetweenReadsInMillis)
.withBillingMode(BillingMode.PAY_PER_REQUEST)

// Create a new worker for each stream
Worker worker = new Worker(recordProcessorFactory, kclConfig)
8 changes: 4 additions & 4 deletions grails-aws-sdk-sqs/README.md
Original file line number Diff line number Diff line change
@@ -121,10 +121,10 @@ class MyQueueService extends AmazonSQSService {
static final QUEUE_NAME = 'my-queue'
@PostConstruct
def init() {
init(QUEUE_NAME)
}
void afterPropertiesSet() {
super.afterPropertiesSet()
init(QUEUE_NAME)
}
}
```
3 changes: 1 addition & 2 deletions groovy-aws-sdk-s3/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
project_description = Groovy library to interact with AWS S3
version=1.2.3
awsJavaSdkVersion=1.11.592
gradleWrapperVersion=5.5.1
groovyVersion=2.5.6
logbackVersion=1.2.3
slf4jVersion=1.7.26
slf4jVersion=1.7.26
3 changes: 1 addition & 2 deletions groovy-aws-sdk-ses/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
project_description = Groovy library to interact with AWS SES
version=1.2.3
awsJavaSdkVersion=1.11.592
gradleWrapperVersion=5.5.1
groovyVersion=2.5.6
logbackVersion=1.2.3
slf4jVersion=1.7.26
slf4jVersion=1.7.26
3 changes: 1 addition & 2 deletions groovy-aws-sdk-util/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
project_description = Groovy util library used by AWS SDK grails plugins
version=1.2.3
awsJavaSdkVersion=1.11.592
gradleWrapperVersion=5.5.1
groovyVersion=2.5.6
logbackVersion=1.2.3
slf4jVersion=1.7.26
slf4jVersion=1.7.26
4 changes: 4 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jdk:
- openjdk8
install:
- ./gradlew publishToMavenLocal -Pversion=$VERSION