-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
82 lines (75 loc) · 2.19 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
/*
* Copyright (C) 2018 Clivern <http://clivern.com>
*/
plugins {
id 'java-library'
id 'maven'
id 'jacoco'
id 'com.diffplug.gradle.spotless' version '4.5.1'
}
archivesBaseName = "wit-java"
version = '1.0.0'
spotless {
java {
licenseHeaderFile '.license'
importOrder 'java'
googleJavaFormat('1.1').aosp()
target 'src/**/*.java'
}
}
// Update Pom file ./gradlew updatePom
task updatePom {
doLast {
pom {
project {
groupId 'com.clivern'
artifactId 'wit-java'
version '1.0.0'
name 'wit-java'
description 'A Java Library For Wit.ai'
url 'https://github.com/clivern/wit-java'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'Clivern'
name 'Ahmed'
email '[email protected]'
url 'http://clivern.com'
roles {
role 'Software Engineer'
}
}
}
scm {
url 'https://github.com/clivern/wit-java'
connection 'scm:git:git://github.com/clivern/wit-java.git'
developerConnection 'scm:git:[email protected]:clivern/wit-java.git'
}
}
}.writeTo("wit-java.pom").writeTo("wit-java.xml")
}
}
test {
//we want display the following test events
testLogging {
events "PASSED", "STARTED", "FAILED", "SKIPPED"
}
}
repositories {
jcenter()
mavenCentral()
google()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
compile 'org.tinylog:tinylog:1.3.6'
compile 'com.squareup.okhttp3:okhttp:4.10.0'
compile 'com.squareup.okhttp3:okhttp:4.10.0'
testImplementation 'junit:junit:4.13.2'
}