forked from paulscherrerinstitute/ch.psi.zmq.streamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (57 loc) · 1.58 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
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = '1.2.0'
repositories {
mavenCentral()
maven { url "http://artifacts.psi.ch/artifactory/libs-releases" }
maven { url "http://artifacts.psi.ch/artifactory/libs-snapshots" }
}
dependencies {
compile 'org.zeromq:jeromq:0.3.5'
compile 'org.glassfish.jersey.containers:jersey-container-grizzly2-http:2.4.1'
compile 'org.glassfish.jersey.media:jersey-media-sse:2.4.1'
compile 'org.glassfish.jersey.media:jersey-media-json-jackson:2.4.1'
compile 'commons-cli:commons-cli:1.2'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
jar {
manifest {
attributes("Implementation-Version": version)
}
}
artifacts {
archives sourcesJar
archives javadocJar
}
task distribution(type: Zip){
def baseDir = { archiveName - ".zip" }
into(baseDir){
from(project.file("src/dist"))
into("lib") {
from(jar)
from(project.configurations.runtime)
}
}
}
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://artifacts.psi.ch/artifactory/libs-snapshots-local"){
authentication(userName: "upload", password: "{DESede}eWKHxAtQ2Dc=")
}
pom.groupId = 'ch.psi'
pom.artifactId = 'bsread_1_7'
}
}
}