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

Commit 74f0874

Browse files
committed
testing GitHub publication
1 parent 6e6019d commit 74f0874

File tree

17 files changed

+45
-221
lines changed

17 files changed

+45
-221
lines changed

.github/workflows/publish.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish package to GitHub Packages
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-java@v2
14+
with:
15+
java-version: 8
16+
- name: Publish package
17+
run: gradle publish
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

-14
This file was deleted.

gradle/grails.commons.gradle

+20-4
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,16 @@ group "org.grails.plugins"
1313
apply plugin:"eclipse"
1414
apply plugin:"idea"
1515
apply plugin:"org.grails.grails-plugin"
16-
apply plugin:"org.grails.grails-plugin-publish"
16+
apply plugin:"maven-publish"
1717

1818
ext {
1919
grailsVersion = project.grailsVersion
2020
gradleWrapperVersion = project.gradleWrapperVersion
2121
}
2222

2323
repositories {
24-
mavenLocal()
25-
jcenter()
24+
mavenCentral()
2625
maven { url "https://repo.grails.org/grails/core" }
27-
maven { url "http://dl.bintray.com/agorapulse/libs" }
2826
}
2927

3028
dependencyManagement {
@@ -54,3 +52,21 @@ dependencies {
5452
testCompile 'net.bytebuddy:byte-buddy:1.9.14'
5553

5654
}
55+
56+
publishing {
57+
repositories {
58+
maven {
59+
name = "GitHubPackages"
60+
url = uri("https://maven.pkg.github.com/agorapulse/grails-aws-sdk")
61+
credentials {
62+
username = System.getenv("GITHUB_ACTOR")
63+
password = System.getenv("GITHUB_TOKEN")
64+
}
65+
}
66+
}
67+
publications {
68+
gpr(MavenPublication) {
69+
from(components.java)
70+
}
71+
}
72+
}

gradle/groovy.commons.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ project.apply plugin: "codenarc"
66

77
repositories {
88
mavenCentral()
9-
jcenter()
109
}
1110

1211
dependencies {
@@ -103,4 +102,4 @@ codenarc {
103102

104103
codenarcTest {
105104
configFile rootProject.file('gradle/codenarc/codenarcTest.groovy')
106-
}
105+
}

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Tue Jul 16 12:14:30 MSK 2019
1+
gw #Tue Jul 16 12:14:30 MSK 2019
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME

grails-aws-sdk-cognito/build.gradle

-15
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,3 @@ dependencies {
88

99
provided "org.springframework.boot:spring-boot-starter-tomcat"
1010
}
11-
12-
grailsPublish {
13-
user = System.getenv("BINTRAY_USER") ?: ''
14-
key = System.getenv("BINTRAY_KEY") ?: ''
15-
userOrg = 'agorapulse'
16-
githubSlug = "agorapulse/grails-$project.name"
17-
license {
18-
name = 'Apache-2.0'
19-
}
20-
title = "AWS SDK Cognito"
21-
desc = "Grails AWS SDK Cognito plugin"
22-
developers = [benorama:"Benoit Hediard", musketyr: "Vladimir Orany"]
23-
portalUser = System.getenv("GRAILS_PORTAL_USER") ?: ''
24-
portalPassword = System.getenv("GRAILS_PORTAL_PASSWORD") ?: ''
25-
}

grails-aws-sdk-dynamodb/build.gradle

-15
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,3 @@ dependencies {
99
compileOnly "com.amazonaws:amazon-dax-client:1.0.202017.0"
1010
testCompile "com.amazonaws:amazon-dax-client:1.0.202017.0"
1111
}
12-
13-
grailsPublish {
14-
user = System.getenv("BINTRAY_USER") ?: ''
15-
key = System.getenv("BINTRAY_KEY") ?: ''
16-
userOrg = 'agorapulse'
17-
githubSlug = "agorapulse/grails-$project.name"
18-
license {
19-
name = 'Apache-2.0'
20-
}
21-
title = "AWS SDK DynamoDB"
22-
desc = "Grails AWS SDK DynamoDB plugin"
23-
developers = [benorama:"Benoit Hediard", jvdrean:"Jean-Vincent Drean"]
24-
portalUser = System.getenv("GRAILS_PORTAL_USER") ?: ''
25-
portalPassword = System.getenv("GRAILS_PORTAL_PASSWORD") ?: ''
26-
}

grails-aws-sdk-kinesis/build.gradle

-15
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,3 @@ dependencies {
77
// Latest AWS SDK Kinesis lib
88
compile "com.amazonaws:aws-java-sdk-kinesis:$awsJavaSdkVersion"
99
}
10-
11-
grailsPublish {
12-
user = System.getenv("BINTRAY_USER") ?: ''
13-
key = System.getenv("BINTRAY_KEY") ?: ''
14-
userOrg = 'agorapulse'
15-
githubSlug = "agorapulse/grails-$project.name"
16-
license {
17-
name = 'Apache-2.0'
18-
}
19-
title = "AWS SDK Kinesis"
20-
desc = "Grails AWS SDK Kinesis plugin"
21-
developers = [benorama:"Benoit Hediard"]
22-
portalUser = System.getenv("GRAILS_PORTAL_USER") ?: ''
23-
portalPassword = System.getenv("GRAILS_PORTAL_PASSWORD") ?: ''
24-
}

grails-aws-sdk-s3/build.gradle

-15
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,3 @@ dependencies {
55
compile "com.amazonaws:aws-java-sdk-s3:$awsJavaSdkVersion"
66
compile "org.codehaus.groovy:groovy-dateutil:$groovyVersion"
77
}
8-
9-
grailsPublish {
10-
user = System.getenv("BINTRAY_USER") ?: ''
11-
key = System.getenv("BINTRAY_KEY") ?: ''
12-
userOrg = 'agorapulse'
13-
githubSlug = "agorapulse/grails-$project.name"
14-
license {
15-
name = 'Apache-2.0'
16-
}
17-
title = "AWS SDK S3"
18-
desc = "Grails AWS SDK S3 plugin"
19-
developers = [benorama:"Benoit Hediard"]
20-
portalUser = System.getenv("GRAILS_PORTAL_USER") ?: ''
21-
portalPassword = System.getenv("GRAILS_PORTAL_PASSWORD") ?: ''
22-
}

grails-aws-sdk-ses/build.gradle

+1-16
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,6 @@ dependencies {
1313
compile "com.amazonaws:aws-java-sdk-ses:$awsJavaSdkVersion"
1414
}
1515

16-
grailsPublish {
17-
user = System.getenv("BINTRAY_USER") ?: ''
18-
key = System.getenv("BINTRAY_KEY") ?: ''
19-
userOrg = 'agorapulse'
20-
githubSlug = "agorapulse/grails-$project.name"
21-
license {
22-
name = 'Apache-2.0'
23-
}
24-
title = "AWS SDK SES"
25-
desc = "Grails AWS SDK SES plugin"
26-
developers = [benorama:"Benoit Hediard", sdelamo:"Sergio del Amo"]
27-
portalUser = System.getenv("GRAILS_PORTAL_USER") ?: ''
28-
portalPassword = System.getenv("GRAILS_PORTAL_PASSWORD") ?: ''
29-
}
30-
3116
test {
3217
systemProperties System.properties
33-
}
18+
}

grails-aws-sdk-sns/build.gradle

-16
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,3 @@ dependencies {
66
// Latest AWS SDK for SQS
77
compile "com.amazonaws:aws-java-sdk-sns:$awsJavaSdkVersion"
88
}
9-
10-
grailsPublish {
11-
user = System.getenv("BINTRAY_USER") ?: ''
12-
key = System.getenv("BINTRAY_KEY") ?: ''
13-
userOrg = 'agorapulse'
14-
githubSlug = "agorapulse/grails-$project.name"
15-
license {
16-
name = 'Apache-2.0'
17-
}
18-
title = "AWS SDK SNS"
19-
desc = "Grails AWS SDK SNS plugin"
20-
developers = [benorama:"Benoit Hediard", floppy: "Florian Ernoult"]
21-
portalUser = System.getenv("GRAILS_PORTAL_USER") ?: ''
22-
portalPassword = System.getenv("GRAILS_PORTAL_PASSWORD") ?: ''
23-
}
24-

grails-aws-sdk-sqs/build.gradle

-15
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,3 @@ dependencies {
44
// Latest AWS SDK for SQS
55
compile "com.amazonaws:aws-java-sdk-sqs:$awsJavaSdkVersion"
66
}
7-
8-
grailsPublish {
9-
user = System.getenv("BINTRAY_USER") ?: ''
10-
key = System.getenv("BINTRAY_KEY") ?: ''
11-
userOrg = 'agorapulse'
12-
githubSlug = "agorapulse/grails-$project.name"
13-
license {
14-
name = 'Apache-2.0'
15-
}
16-
title = "AWS SDK SQS"
17-
desc = "Grails AWS SDK SQS plugin"
18-
developers = [benorama:"Benoit Hediard"]
19-
portalUser = System.getenv("GRAILS_PORTAL_USER") ?: ''
20-
portalPassword = System.getenv("GRAILS_PORTAL_PASSWORD") ?: ''
21-
}

grails-aws-sdk-sts/build.gradle

-15
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,3 @@ dependencies {
88

99
provided "org.springframework.boot:spring-boot-starter-tomcat"
1010
}
11-
12-
grailsPublish {
13-
user = System.getenv("BINTRAY_USER") ?: ''
14-
key = System.getenv("BINTRAY_KEY") ?: ''
15-
userOrg = 'agorapulse'
16-
githubSlug = "agorapulse/grails-$project.name"
17-
license {
18-
name = 'Apache-2.0'
19-
}
20-
title = "AWS SDK STS"
21-
desc = "Grails AWS SDK STS plugin"
22-
developers = [benorama:"Benoit Hediard", musketyr: "Vladimir Orany"]
23-
portalUser = System.getenv("GRAILS_PORTAL_USER") ?: ''
24-
portalPassword = System.getenv("GRAILS_PORTAL_PASSWORD") ?: ''
25-
}

groovy-aws-sdk-s3/build.gradle

+1-20
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
apply from: "../gradle/groovy.commons.gradle"
2-
apply plugin: "com.jfrog.bintray"
32

43
buildscript {
54
repositories {
6-
jcenter()
5+
mavenCentral()
76
maven { url "https://plugins.gradle.org/m2/" }
87
}
98
dependencies {
@@ -14,21 +13,3 @@ buildscript {
1413
dependencies {
1514
compile "com.amazonaws:aws-java-sdk-s3:$awsJavaSdkVersion"
1615
}
17-
18-
bintray {
19-
user = System.getenv("BINTRAY_USER")
20-
key = System.getenv("BINTRAY_KEY")
21-
publications = ['maven']
22-
publish = true
23-
pkg {
24-
repo = 'libs'
25-
name = 'groovy-aws-sdk-s3'
26-
userOrg = 'agorapulse'
27-
licenses = ['Apache-2.0']
28-
publish = true
29-
version {
30-
name = project.version
31-
released = new Date()
32-
}
33-
}
34-
}

groovy-aws-sdk-ses/build.gradle

+1-21
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
apply from: "../gradle/groovy.commons.gradle"
2-
apply plugin: "com.jfrog.bintray"
32

43
buildscript {
54
repositories {
6-
jcenter()
5+
mavenCentral()
76
maven { url "https://plugins.gradle.org/m2/" }
87
}
98
dependencies {
@@ -17,22 +16,3 @@ dependencies {
1716
// Necessary to support attachments
1817
compile 'javax.mail:mail:1.4.4'
1918
}
20-
21-
22-
bintray {
23-
user = System.getenv("BINTRAY_USER")
24-
key = System.getenv("BINTRAY_KEY")
25-
publications = ['maven']
26-
publish = true
27-
pkg {
28-
repo = 'libs'
29-
name = 'groovy-aws-sdk-ses'
30-
userOrg = 'agorapulse'
31-
licenses = ['Apache-2.0']
32-
publish = true
33-
version {
34-
name = project.version
35-
released = new Date()
36-
}
37-
}
38-
}

groovy-aws-sdk-util/build.gradle

+1-20
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
apply from: "../gradle/groovy.commons.gradle"
2-
apply plugin: "com.jfrog.bintray"
32

43
buildscript {
54
repositories {
6-
jcenter()
5+
mavenCentral()
76
maven { url "https://plugins.gradle.org/m2/" }
87
}
98
dependencies {
@@ -14,21 +13,3 @@ buildscript {
1413
dependencies {
1514
compile "com.amazonaws:aws-java-sdk-core:$awsJavaSdkVersion"
1615
}
17-
18-
bintray {
19-
user = System.getenv("BINTRAY_USER")
20-
key = System.getenv("BINTRAY_KEY")
21-
publications = ['maven']
22-
publish = true
23-
pkg {
24-
repo = 'libs'
25-
name = 'groovy-aws-sdk-util'
26-
userOrg = 'agorapulse'
27-
licenses = ['Apache-2.0']
28-
publish = true
29-
version {
30-
name = project.version
31-
released = new Date()
32-
}
33-
}
34-
}

travis-publish.sh

-17
This file was deleted.

0 commit comments

Comments
 (0)