-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (39 loc) · 1.04 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
apply plugin: 'java'
//run: "gradle install" to install to local repo
// https://docs.gradle.org/current/userguide/maven_plugin.html
apply plugin: 'maven'
//http://jedicoder.blogspot.co.uk/2011/11/automated-gradle-project-deployment-to.html
apply plugin: 'signing'
//pom.groupId
project.group = "com.kncept"
project.version = "1.0.0-SNAPSHOT"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.11'
}
// run: gradle upload
uploadArchives {
repositories {
mavenDeployer {
//mavenLocal()
//repository(url: "http://localhost:8081/nexus/content/repositories/snapshots") {
//authentication(userName: "admin", password: "admin123")
//}
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}