-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbootstrap.gradle
60 lines (49 loc) · 1.23 KB
/
bootstrap.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
import org.gradle.api.publish.maven.MavenPublication
buildscript {
repositories { jcenter() }
dependencies { classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.3' }
}
repositories { jcenter() }
apply plugin: 'groovy'
apply plugin: 'idea'
group = 'com.netflix.nebula'
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
apply plugin: 'bintray'
def packageName = name
bintray {
user = bintrayUser
key = bintrayKey
publications = ['mavenJava']
pkg {
repo = 'gradle-plugins'
userOrg = 'nebula'
name = packageName
licenses = ['Apache-2.0']
}
// Will have to manually publish on bintray.com
}
bintrayUpload.dependsOn(build)
task install(dependsOn: 'publishMavenJavaPublicationToMavenLocal') << {
logger.info "Installed $project.name"
}
plugins.withType(JavaPlugin) {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}
dependencies {
compile gradleApi()
compile localGroovy()
testCompile('com.netflix.nebula:nebula-test:2.0.0-SNAPSHOT') {
exclude group: 'org.codehaus.groovy'
}
}
task createWrapper(type: Wrapper) {
gradleVersion = '2.0'
}