forked from nebula-plugins/gradle-info-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.gradle
63 lines (51 loc) · 1.45 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
61
62
63
/** Absolute minimum build to be able to publish when the plugin-plugin is not available */
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()
compile 'com.perforce:p4java:2012.3.551082' // Perforce SCM Provider, this might not last
compile 'org.eclipse.jgit:org.eclipse.jgit:3.2.0.201312181205-r'
testCompile 'com.netflix.nebula:nebula-test:1.12.0-SNAPSHOT'
}
test.exclude '**/*Local*'
task createWrapper(type: Wrapper) {
gradleVersion = '1.12'
}