-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (46 loc) · 1.15 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '1.2.3'
id 'maven-publish'
}
sourceCompatibility = 1.7
group 'sk.seky.google.cloud'
version '1.0-SNAPSHOT'
apply plugin: 'java'
repositories {
mavenCentral()
}
configurations {
provided
}
sourceSets {
main.compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
dependencies {
provided 'com.google.cloud:google-cloud:0.5.1'
provided(group: 'com.google.guava', name: 'guava', version: '19.0')
provided('com.fasterxml.jackson.core:jackson-databind:2.7.3')
// Unit testy
testCompile "org.mockito:mockito-all:1.10.19"
testCompile group: 'junit', name: 'junit', version: '4.12'
}
shadowJar {
baseName = 'datastore-mapper'
classifier = ''
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
shadow(MavenPublication) {
from components.shadow
artifactId = 'datastore-mapper'
artifact sourceJar {
classifier "sources"
}
}
}
}