This repository was archived by the owner on Oct 14, 2022. It is now read-only.
forked from pedjak/gradle-dockerized-test-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
114 lines (88 loc) · 2.45 KB
/
build.gradle
File metadata and controls
114 lines (88 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import com.amazonaws.auth.*
import com.amazonaws.auth.profile.*
buildscript {
repositories {
mavenCentral()
}
dependencies{
classpath 'com.amazonaws:aws-java-sdk-core:1.11.5'
}
}
plugins {
id "com.gradle.plugin-publish" version "0.10.0"
id 'java-gradle-plugin'
}
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'idea'
group = 'com.pedjak.gradle.plugins'
version = '0.5.6.34-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'org.apache.maven:maven-artifact:3.3.3'
compile 'io.netty:netty-handler-proxy:4.1.22.Final'
compile 'io.netty:netty-codec-http:4.1.22.Final'
compile 'io.netty:netty-handler:4.1.22.Final'
compile 'io.netty:netty-transport-native-epoll:4.1.22.Final'
compile 'io.netty:netty-transport-native-kqueue:4.1.22.Final'
compile 'com.github.docker-java:docker-java:3.0.14'
testCompile ("org.spockframework:spock-core:1.0-groovy-2.4") {
exclude module: "groovy-all"
}
}
gradlePlugin {
plugins {
simplePlugin {
id = "com.github.pedjak.dockerized-test"
implementationClass = "com.pedjak.gradle.plugins.dockerizedtest.DockerizedTestPlugin"
}
}
}
pluginBundle {
website = 'https://github.com/pedjak/gradle-dockerized-test-plugin'
vcsUrl = 'https://github.com/pedjak/gradle-dockerized-test-plugin'
description = 'Running tests inside a docker image'
tags = ["docker", 'test', 'integration-test']
plugins {
greetingsPlugin {
displayName = 'dockerized-test'
}
}
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}
sourceSets {
main {
java {
srcDirs = []
}
groovy {
srcDirs += ['src/main/java']
}
}
}
def fetchAwsCredentials = {
try {
return new ProfileCredentialsProvider().credentials
} catch (Exception e) {
logger.debug('Unable to retrieve AWS credentials from profile, publishing to S3 will not be available.', e)
return null
}
}
AWSCredentials awsCredentials = fetchAwsCredentials()
publishing {
repositories {
maven {
url "s3://geode-maven/"
credentials(AwsCredentials) {
accessKey = awsCredentials.AWSAccessKeyId
secretKey = awsCredentials.AWSSecretKey
}
}
}
}