forked from DatabaseGroup/apted
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (42 loc) · 1.08 KB
/
build.gradle
File metadata and controls
52 lines (42 loc) · 1.08 KB
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
group 'at.unisalzburg'
version '1.0'
apply plugin: 'java'
apply plugin: "maven-publish"
// Dependency repository.
repositories {
mavenCentral()
}
// Project dependencies. Currently only for unit tests.
dependencies {
testCompile 'junit:junit:4.12',
'com.google.code.gson:gson:2.8.0'
}
// Include test classes and private members into javadoc.
javadoc {
classpath += sourceSets.test.compileClasspath
source += sourceSets.test.allJava
options.memberLevel = JavadocMemberLevel.PRIVATE
}
// Enable printing to standard output while testing.
test {
testLogging.showStandardStreams = true
}
// For publishing in MavenLocal
task sourcesJar(type: Jar, dependsOn: "classes") {
classifier = 'sources'
from sourceSets.main.allSource
from sourceSets.test.allSource
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'at.unisalzburg'
artifactId 'apted'
version '1.0'
from components.java
artifact sourcesJar {
classifier "sources"
}
}
}
}