-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
74 lines (61 loc) · 1.37 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
plugins {
id 'idea'
id 'java'
id 'groovy'
id 'jacoco'
id 'maven'
id 'maven-publish'
id 'com.github.kt3k.coveralls' version '2.6.3'
id 'com.jfrog.bintray' version '1.7'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group 'io.disc99'
version = '0.9.2'
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.4'
compile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'com.h2database:h2:1.4.187'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'javadoc'
from groovydoc.destinationDir
}
jar.dependsOn sourcesJar, javadocJar
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
publishing {
publications {
hogan(MavenPublication) {
artifactId 'hogan'
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = 'disc99'
key = 'b894c8295bc2e9fc6b2cbf0d772f57ebd5ec9d28'
publications = ['hogan']
publish = true
pkg {
repo = 'maven'
name = 'hogan'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.1'
distributionUrl = 'http://services.gradle.org/distributions/gradle-3.1-all.zip'
}