-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (73 loc) · 2.02 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
83
84
85
86
87
88
89
group 'one.rewind'
version '1.0.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'application'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
mainClassName = "one.rewind.android.automator.SubmitTask"
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.7.5"
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
repositories {
mavenCentral()
jcenter()
maven {
url "http://uml.ink:2333/artifactory/snapshots"
credentials {
username = artifactory_username
password = artifactory_password
}
}
maven {
url "http://api.genymotion.com/repositories/releases/"
}
maven {
url "https://jitpack.io"
}
maven {
url "http://repo.maven.apache.org/maven2"
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'com.github.vidstige:jadb:v1.0.1'
compile 'one.rewind:raw-data:1.2.9.0-SNAPSHOT'
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.12.0'
compile group: 'com.dw', name: 'ocr-service', version: '0.1.9-SNAPSHOT'
}
test {
useJUnitPlatform()
failFast = true
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
afterSuite { desc, result ->
if (!desc.parent) {
println "\nTest result: ${result.resultType}"
println "Test summary: ${result.testCount} tests, " +
"${result.successfulTestCount} succeeded, " +
"${result.failedTestCount} failed, " +
"${result.skippedTestCount} skipped"
}
}
}
task "create-dirs" << {
sourceSets*.java.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
} as String