-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
41 lines (33 loc) · 947 Bytes
/
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
apply plugin: 'java'
apply plugin: 'maven'
group = 'com.aerofs'
archivesBaseName = 'jnotify'
version = '0.96'
compileJava {
options.compilerArgs << '-Werror'
options.compilerArgs << '-Xlint:all'
}
javadoc {
options.links 'http://docs.oracle.com/javase/6/docs/api/'
}
task sourceJar(type: Jar, description: "Assembles a jar archive containing the source files") {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar, description: "Assembles a jar archive containing the javadoc files", dependsOn: javadoc) {
from "$docsDir"
classifier = 'javadoc'
}
artifacts {
archives sourceJar, javadocJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "${nexusRepo}/nexus/content/repositories/releases") {
authentication(userName: nexusUser, password: nexusPass)
}
pom.artifactId = 'jnotify'
}
}
}