forked from snowplow/snowplow-java-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (38 loc) · 1.17 KB
/
Copy pathbuild.gradle
File metadata and controls
46 lines (38 loc) · 1.17 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
apply plugin: 'java'
group = 'com.snowplowanalytics'
version = '0.0.1'
repositories {
mavenLocal()
maven {
url "https://snowplow.bintray.com/snowplow-maven"
}
mavenCentral()
}
test {
useJUnitPlatform {
includeEngines 'junit-vintage'
}
}
dependencies {
implementation 'com.snowplowanalytics:snowplow-java-tracker:0.10.1'
implementation ('com.snowplowanalytics:snowplow-java-tracker:0.10.1') {
capabilities {
requireCapability 'com.snowplowanalytics:snowplow-java-tracker-okhttp-support:0.10.1'
}
}
implementation 'org.slf4j:slf4j-simple:1.7.30'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testCompileOnly 'junit:junit:4.13'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'simple-console',
'Implementation-Version': version,
'Main-Class': 'com.snowplowanalytics.Main'
}
baseName = project.name + '-all'
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
tasks.jar.dependsOn(fatJar)