forked from shazam/fork
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
78 lines (73 loc) · 2.53 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
/*
* Copyright 2015 Shazam Entertainment Limited
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply from: '../build-scripts/gradle-mvn-push.gradle'
//noinspection GroovyUnusedAssignment
sourceCompatibility = rootProject.sourceCompatibility
//noinspection GroovyUnusedAssignment
targetCompatibility = rootProject.sourceCompatibility
dependencies {
api project(':fork-client')
api project(':fork-stat-common')
api "com.google.code.findbugs:jsr305:3.0.1"
api "com.android.tools.ddms:ddmlib:26.0.1"
api "commons-io:commons-io:2.5"
api "org.apache.commons:commons-lang3:3.4"
api "com.github.spullara.mustache.java:compiler:0.8.0"
api "com.google.code.gson:gson:$GSON_VERSION"
implementation(
"com.google.guava:guava:19.0",
"org.slf4j:slf4j-log4j12:$SLF4J_VERSION",
"org.smali:dexlib:1.4.2",
"com.shazam:axmlparser:1.0"
)
testImplementation(
"org.hamcrest:hamcrest-all:$HAMCREST_VERSION",
"org.jmock:jmock:$JMOCK_VERSION",
"org.jmock:jmock-junit4:$JMOCK_VERSION",
"com.shazam:shazamcrest:0.11")
testImplementation("junit:junit:$JUNIT_VERSION") {
exclude module:'hamcrest-core'
}
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
jar {
manifest {
attributes 'Implementation-Title': POM_NAME,
'Implementation-Version': VERSION_NAME,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Built-Gradle': gradle.gradleVersion
}
}
buildscript {
ext.kotlin_version = '1.2.10'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}