forked from Project-ARTist/dexterous
-
Notifications
You must be signed in to change notification settings - Fork 1
/
desktop.gradle
76 lines (62 loc) · 1.77 KB
/
desktop.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
// Apply the java plugin to add support for Java
apply plugin: 'java'
// Apply the application plugin to add support for building an application
apply plugin: 'application'
// Apply the shadow plugin to create fat-jars
// apply plugin: 'gradle-one-jar'
mainClassName = "saarland.cispa.dexterous.cli.Main"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
// classpath "com.github.jengelman.gradle.plugins:shadow:2.0.0"
// classpath 'com.github.rholder:gradle-one-jar:1.0.4'
}
}
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
sourceSets {
main {
java {
srcDir 'src'
excludes = [
'**/saarland/cispa/apksigner/*',
'**/saarland/cispa/utils/LogA.java'
]
}
}
}
dependencies {
compile 'co.trikita:log:1.1.5'
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
compile 'com.madgag.spongycastle:core:1.54.0.0'
compile 'com.madgag.spongycastle:prov:1.54.0.0'
compile 'com.madgag.spongycastle:pkix:1.54.0.0'
compile 'commons-cli:commons-cli:1.4'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
}
// FatJar: manual
task DexterousJar(dependsOn: 'classes', type: Jar) {
manifest {
attributes 'Main-Class': 'saarland.cispa.dexterous.cli.Main'
}
baseName 'dexterous'
from(sourceSets.main.output) {
include '**/*.class'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
artifacts {
archives DexterousJar
}