-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
81 lines (65 loc) · 1.72 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 'groovy'
id 'java'
id 'osgi'
id 'com.jfrog.bintray' version '1.7.1'
id 'maven-publish'
}
repositories {
jcenter()
}
defaultTasks 'build'
dependencies {
compile gradleApi()
compile localGroovy()
compile 'org.eclipse.jgit:org.eclipse.jgit:4.4.1.201607150455-r'
compile "com.jcraft:jsch:0.1.53"
compile 'com.jcraft:jsch.agentproxy.connector-factory:0.0.9'
compile 'com.jcraft:jsch.agentproxy.jsch:0.0.9'
testCompile 'junit:junit:4.12'
}
group = 'com.palominolabs.gradle.task'
version = '0.0.4-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
sourceCompatibility = JavaVersion.VERSION_1_7
compileJava.options.encoding = 'UTF-8'
task sourceJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
publishing {
publications {
bintray(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
version project.version
artifact sourceJar {
classifier 'sources'
}
artifact javadocJar {
classifier 'javadoc'
}
}
}
}
bintray {
user = rootProject.hasProperty('bintrayUser') ? rootProject.property('bintrayUser') : 'FIXME'
key = rootProject.hasProperty('bintrayApiKey') ? rootProject.property('bintrayApiKey') : 'FIXME'
publications = ['bintray']
pkg {
repo = 'maven'
licenses = ['Copyfree']
vcsUrl = 'https://github.com/palominolabs/gradle-git-clone-task'
name = 'com.palominolabs.gradle.task:gradle-git-clone-task'
version {
name = project.version
released = new Date()
if (project.isReleaseVersion) {
vcsTag = 'v' + project.version
}
}
}
}