-
Notifications
You must be signed in to change notification settings - Fork 587
/
build.gradle
52 lines (42 loc) · 1.33 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
def getRepositoryUsername() {
return hasProperty('mavenUsername') ? mavenUsername : ""
}
def getRepositoryPassword() {
return hasProperty('mavenPassword') ? mavenPassword : ""
}
allprojects() {
group = 'edu.cmu.sphinx'
version = '5prealpha-SNAPSHOT'
}
subprojects() {
apply plugin: 'java'
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}
}
}
}
repositories() {
mavenCentral()
}
compileJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'
sourceCompatibility = 1.7
targetCompatibility = 1.7
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task packageSources(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts.archives packageSources, javadocJar
}