forked from xebialabs/nio-overthere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
122 lines (104 loc) · 3.08 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// build.gradle for Overfile (a java.nio.FileSystem wrapper for Overthere).
defaultTasks 'build'
version = '1.0.0-SNAPSHOT'
group = 'com.xebialabs.overthere'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'signing'
repositories {
mavenCentral()
maven {
url 'http://download.java.net/maven/2/'
}
maven {
url 'https://oss.sonatype.org/content/repositories/releases'
}
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
configurations {
compile {
transitive = false
}
}
dependencies {
compile 'com.xebialabs.overthere:overthere:2.1.0-beta-1'
compile 'com.google.guava:guava:12.0'
compile 'org.apache.httpcomponents:httpclient:4.2.1'
compile 'org.apache.httpcomponents:httpcore:4.2.1'
compile 'org.codehaus.jackson:jackson-core-asl:1.9.9'
testCompile 'org.testng:testng:5.14.10'
testCompile 'org.hamcrest:hamcrest-core:1.2.1'
testCompile('com.xebialabs.cloud:overcast:1.1.1') {
exclude group: 'org.codehaus.jackson', module: 'jackson-core-asl'
}
testCompile 'ch.qos.logback:logback-classic:1.0.6'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
signing {
required { gradle.taskGraph.hasTask('uploadArchives') }
sign configurations.archives
}
uploadArchives {
if(project.hasProperty('sonatypeUsername')) {
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
configuration = configurations.archives
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2') {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.project {
name 'NIO Overthere'
description 'java.nio.file SPI implementation for Overthere.'
packaging 'jar'
url 'https://github.com/xebialabs/nio-overthere'
inceptionYear '2012'
scm {
url 'https://github.com/xebialabs/nio-overthere'
}
licenses {
license {
name 'GPLv2 with XebiaLabs FLOSS License Exception'
url 'https://github.com/xebialabs/nio-overthere/blob/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'vpartington'
name 'Vincent Partington'
url 'http://www.xebialabs.com/'
email 'vpartington@xebialabs.com'
roles {
role 'Developer'
}
}
developer {
id 'hierynomus'
name 'Jeroen van Erp'
url 'http://www.xebialabs.com/'
email 'jvanerp@xebialabs.com'
roles {
role 'Developer'
}
}
}
}
}
}
}