-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
79 lines (66 loc) · 1.77 KB
/
build.gradle
File metadata and controls
79 lines (66 loc) · 1.77 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
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
plugins {
id "com.jfrog.bintray" version "1.7.3"
}
def mavenVersion='1.4.0'
group 'com.ibm'
version "${mavenVersion}"
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'maven-publish'
mainClassName = "Main"
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
compileJava {
options.compilerArgs << "-Xlint:all" << "-Werror"
}
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.22'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.22'
compile group: 'com.squareup.okhttp3', name: 'okhttp-ws', version: '3.4.2'
compile group: 'com.google.guava', name: 'guava', version: '20.0'
compile group: 'com.h2database', name: 'h2', version: '1.4.193'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
publishing {
repositories {
maven{
url "github.com/csync/csync-java"
}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
groupId 'com.ibm.csync'
artifactId 'csync-java'
version "${mavenVersion}"
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['mavenJava']
pkg {
version {
name = "${mavenVersion}"
}
repo = 'maven'
name = 'csync-java'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/csync/csync-java.git'
}
}
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}