This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
75 lines (60 loc) · 1.55 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
buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'org.ysb33r.gradle:bintray:1.5'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:2.2.3'
}
}
subprojects {
apply plugin : 'org.ysb33r.bintray'
apply plugin : 'groovy'
apply plugin : 'maven'
apply plugin : 'idea'
apply plugin : 'artifactory'
sourceCompatibility = 1.6
targetCompatibility = 1.6
group = 'org.ysb33r.gradle'
repositories {
jcenter()
}
ext {
bintrayOwner = 'ysb33r'
bintrayRepo = 'grysb33r'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
description "An archive of the JavaDocs for Maven Central"
classifier "javadoc"
from javadoc
}
artifacts {
archives sourcesJar
archives javadocJar
}
dependencies {
compile gradleApi()
compile localGroovy()
testCompile ('org.spockframework:spock-core:0.7-groovy-2.0') {
exclude module : 'groovy-all'
}
}
artifactory {
publish {
contextUrl = 'http://oss.jfrog.org'
repository {
repoKey = 'oss-snapshot-local'
username = project.properties.bintrayUserName
password = project.properties.bintrayApiKey
}
}
}
artifactoryPublish {
onlyIf { version.endsWith("SNAPSHOT") }
}
}