-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
79 lines (63 loc) · 1.51 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
plugins {
id 'java'
id 'com.jfrog.bintray' version '1.1'
id 'maven-publish'
}
group = 'org.jnegre.google'
version = '1.3-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
sourceSets {
main {
java {
srcDir 'src'
}
}
test {
java {
srcDir 'tests'
}
}
}
dependencies {
compile 'com.google.guava:guava:r09'
compile 'com.google.code.findbugs:jsr305:3.0.0'
testCompile 'junit:junit:4.11'
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar (type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier 'sources'
}
artifact javadocJar {
classifier = 'javadoc'
}
}
}
}
bintray {
//from gradle.properties
user = project.hasProperty('bintrayUser')?project.property('bintrayUser'):'NO-USER'
key = project.hasProperty('bintrayKey')?project.property('bintrayKey'):'NO-KEY'
//dryRun = true
publications = ['mavenJava']
pkg {
repo = 'maven'
name = "${project.group}:${project.name}"
issueTrackerUrl = 'https://github.com/jnegre/s2-geometry-library-java/issues'
vcsUrl = 'https://github.com/jnegre/s2-geometry-library-java.git'
licenses = ['Apache-2.0']
}
}