-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
87 lines (73 loc) · 2.77 KB
/
Copy pathbuild.gradle
File metadata and controls
87 lines (73 loc) · 2.77 KB
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.3'
}
}
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'bintray'
apply plugin: 'signing'
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile group: 'com.google.guava', name: 'guava', version: '15.0'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.hamcrest', name: 'hamcrest-integration', version: '1.3'
}
group = 'de.fanero.gradle.plugin.hadoop'
version = '0.2'
def compatibility = 1.5
sourceCompatibility = compatibility
targetCompatibility = compatibility
task sourcesJar(type: Jar) {
description = 'Creates sources JAR'
classifier = 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
pom.withXml {
Node root = asNode()
root.appendNode('name', 'Gradle Hadoop plugin')
root.appendNode('description', 'Gradle plugin supporting development of MapReduce applications with Hadoop.')
root.appendNode('url', 'https://github.com/sponiro/gradle-hadoop-plugin')
root.appendNode('inceptionYear', '2013')
def scm = root.appendNode('scm')
scm.appendNode('url', 'https://github.com/sponiro/gradle-hadoop-plugin')
scm.appendNode('connection', 'scm:https://github.com/sponiro/gradle-hadoop-plugin.git')
scm.appendNode('developerConnection', 'scm:git:https://github.com/sponiro/gradle-hadoop-plugin.git')
def license = root.appendNode('licenses').appendNode('license')
license.appendNode('name', 'The Apache Software License, Version 2.0')
license.appendNode('url', 'http://www.apache.org/licenses/LICENSE-2.0.txt')
license.appendNode('distribution', 'repo')
def developers = root.appendNode('developers')
def rkuehne = developers.appendNode('developer')
rkuehne.appendNode('id', 'rkuehne')
rkuehne.appendNode('name', 'Robert Kühne')
rkuehne.appendNode('email', 'sponiro@gmail.com')
}
}
}
}
bintrayUpload {
dependsOn "publishMavenJavaPublicationToMavenLocal"
}
bintray {
user = project.hasProperty('bintrayUser') ? project.getProperty('bintrayUser') : null
key = project.hasProperty('bintrayKey') ? project.getProperty('bintrayKey') : null
publications = ['mavenJava']
pkg {
repo = 'gradle-plugins'
name = 'gradle-hadoop-plugin'
licenses = ['Apache-2.0']
}
}