This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 872
/
build.gradle
66 lines (58 loc) · 1.68 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
group 'classyshark'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'java-library-distribution' // task: gradle distZip
sourceCompatibility = 1.8
repositories {
flatDir {
dirs '../third_party'
}
mavenCentral()
}
// ClassyShark doesn't follow the standard src/main/java convention
// https://docs.gradle.org/current/userguide/java_plugin.html#sec:changing_java_project_layout
sourceSets {
main {
java {
srcDirs = ['src/']
}
resources {
srcDirs = ['src/']
}
}
}
dependencies {
// local jars
compile name: 'asmdex-1.0', ext: 'jar'
compile name: 'util-2.0.6', ext: 'jar'
compile name: 'java-binutils', ext: 'jar'
// maven
compile 'org.ow2.asm:asm-all:5.2'
compile group: 'org.smali', name: 'dexlib2', version: '2.2.7'
compile 'org.apache.bcel:bcel:6.5.0'
compile 'com.squareup.retrofit2:converter-gson:2.9.0'
compile 'com.google.code.gson:gson-parent:2.9.0'
compile 'com.google.guava:guava:31.1-jre'
compile 'com.squareup.okhttp3:okhttp:4.10.0'
compile 'com.squareup.okio:okio:3.2.0'
compile 'com.squareup.retrofit2:retrofit:2.9.0'
}
jar {
manifest {
attributes(
'Main-Class': 'com.google.classyshark.Main',
"Class-Path": configurations.compile.collect { "lib/$it.name" }.join(' ')
)
}
}
// Create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes (
'Main-Class': 'com.google.classyshark.Main',
)
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}