-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (76 loc) · 2.03 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
plugins {
id "com.jfrog.bintray" version "1.7"
id "com.gradle.plugin-publish" version "0.9.4"
}
apply plugin: 'groovy'
apply plugin: "com.gradle.plugin-publish"
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
dependencies {
compile gradleApi()
compile localGroovy()
}
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.12'
}
group = 'io.splitest'
version = '0.1.5'
pluginBundle {
website = 'https://github.com/rafoli/splitest'
vcsUrl = 'http://github.com/rafoli/splitest'
description = 'Splitest!'
tags = ['splitest', 'unittest', 'integrationtest', 'funtionaltest']
plugins {
splitestPlugin {
id = 'io.splitest'
displayName = 'Splitest plugin'
}
}
}
// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'io.splitest'
desc = 'Splitest'
licenses = ['Apache-2.0']
vcsUrl = 'http://github.com/rafoli/splitest.git'
labels = ['splitest', 'unittest', 'integrationtest', 'funtionaltest']
publicDownloadNumbers = true
version {
name = project.version
desc = 'Splitest'
released = new Date()
vcsTag = project.version
attributes = ['gradle-plugin': 'gradle.plugin.io.splitest:splitest']
}
}
}