forked from linkedin/URL-Detector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (47 loc) · 1.02 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
56
57
58
plugins {
id "java-library"
id "maven-publish"
}
group = "cloud.cosmin.lib"
repositories {
mavenCentral()
}
dependencies {
implementation "org.apache.commons:commons-lang3:3.1"
testCompile "org.testng:testng:6.1.1"
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
test {
// enable TestNG support (default is JUnit)
useTestNG()
afterSuite { desc, result ->
if (!desc.parent) {
println ":${project.name} -- Executed ${result.testCount} tests: ${result.successfulTestCount} succeeded, ${result.failedTestCount} failed, ${result.skippedTestCount} skipped"
}
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
urlDetector(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven {
name = "onawh.im"
url = "file://${buildDir}/repo"
}
}
}