-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
115 lines (101 loc) · 2.63 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
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
115
plugins {
id "com.jfrog.bintray" version "1.8.1"
id "maven-publish"
id 'groovy'
}
group 'org.meadowhawk'
version '1.1.0'
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
implementation 'org.codehaus.groovy:groovy-all:2.5.7'
testCompile platform("org.spockframework:spock-bom:2.0-M1-groovy-2.5")
testCompile "org.spockframework:spock-core"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
task collectJars(type: Copy) {
into "$buildDir/output/lib"
from configurations.testRuntime
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
def pomConfig = {
licenses {
license {
name "MIT License"
url "https://raw.githubusercontent.com/leeclarke/IdenticonGenerator/master/LICENSE"
distribution "repo"
}
}
developers {
developer {
id "leeclarke"
name "Lee Clarke"
email "[email protected]"
}
}
scm {
url "https://github.com/leeclarke/IdentaconGenerator"
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
groupId 'org.meadowhawk'
artifactId 'IdenticonGenerator'
version '${version}'
pom.withXml {
def root = asNode()
root.appendNode('description', 'A lite weight tool for generating Identicons in Java and Groovy.')
root.appendNode('name', 'IdenticonGenerator')
root.appendNode('url', 'https://github.com/leeclarke/IdenticonGenerator')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = System.getProperty('bintray.user')
key = System.getProperty('bintray.key')
publications = ['mavenPublication']
pkg {
repo = 'utils'
name = 'IdenticonGenerator'
userOrg = 'meadowhawk'
licenses = ['MIT']
vcsUrl = 'https://github.com/leeclarke/IdenticonGenerator.git'
version {
name = '1.1.0'
desc = '1.1.0'
released = new Date()
}
}
publish = true
}