-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
82 lines (72 loc) · 2.17 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = 'de.helmbold'
version = "1.0.0"
description = """Convenient file watcher with an RxJava interface, based on JDK WatchService watcher"""
sourceCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'io.reactivex.rxjava2:rxjava:2.2.2'
testImplementation group: 'org.testng', name: 'testng', version: '6.14.3'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.11.1'
testImplementation group: 'commons-io', name: 'commons-io', version: '2.6'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = "RxFileWatcher"
description = "Observe directories with RxJava based on JDK WatchService."
url = "https://github.com/helmbold/rxfilewatcher"
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'christian.helmbold'
name = 'Christian Helmbold'
}
}
scm {
url = 'https://github.com/helmbold/rxfilewatcher.git'
connection = 'https://github.com/helmbold/rxfilewatcher.git'
}
}
}
}
repositories {
maven {
credentials {
username = sonatypeUser
password = sonatypePassword
}
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
}
}
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}