-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
45 lines (36 loc) · 981 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
41
42
43
44
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
group = 'com.aerofs'
archivesBaseName = 'sqlite-jdbc'
version = '3.21.0'
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.11'
}
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 = 'sqlite-jdbc'
}
}
}