-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
81 lines (69 loc) · 1.96 KB
/
build.gradle
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
plugins {
id "com.jfrog.bintray" version "1.8.4"
id "nu.studer.plugindev" version "1.0.6"
}
group = 'com.pedjak.gradle.plugins'
version = '0.5.10'
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply plugin: 'idea'
dependencies {
compile gradleApi()
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'org.apache.maven:maven-artifact:3.3.3'
compile 'com.github.docker-java:docker-java:3.0.13'
testCompile ("org.spockframework:spock-core:1.0-groovy-2.4") {
exclude module: "groovy-all"
}
}
plugindev {
pluginId "com.github.pedjak.dockerized-test"
pluginImplementationClass "com.pedjak.gradle.plugins.dockerizedtest.DockerizedTestPlugin"
pluginDescription "Running tests inside a docker image"
pluginLicenses "Apache-2.0"
pluginTags "docker", 'test', 'integration-test'
authorId "pedjak"
authorName "Predrag Knezevic"
authorEmail "[email protected]"
projectUrl "https://github.com/pedjak/gradle-dockerized-test-plugin"
projectInceptionYear "2015"
done() // do not omit
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}
bintray {
if (!project.hasProperty("BINTRAY_USER")) {
project.ext.BINTRAY_USER = ""
}
if (!project.hasProperty("BINTRAY_API_KEY")) {
project.ext.BINTRAY_API_KEY = ""
}
user = BINTRAY_USER
key = BINTRAY_API_KEY
pkg.repo = "gradle-plugins"
pkg.userOrg = "pedjak"
pkg.attributes = ["gradle-plugin": "${project.plugindev.pluginId}:${project.group}:${project.name}"]
}
afterEvaluate {
jar {
dependsOn generatePomFileForPluginPublication
metaInf {
from generatePomFileForPluginPublication.destination
into "maven/$project.group/$project.name"
rename {
'pom.xml'
}
}
}
}
sourceSets {
main {
java {
srcDirs = []
}
groovy {
srcDirs += ['src/main/java']
}
}
}