-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (44 loc) · 1.42 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
buildscript {
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
allprojects {
apply plugin: 'maven'
apply plugin: 'java'
group = 'jd.core'
version = '0.9.2-SNAPSHOT'
}
subprojects {
// apply plugin: 'org.anarres.stdmodule'
sourceCompatibility = 1.5
targetCompatibility = 1.5
repositories {
mavenLocal()
maven { url "https://raw.github.com/java-decompiler/mvn-repo/master" }
maven { url "http://repo.maven.apache.org/maven2" }
}
}
project(':jd-cli') {
dependencies {
compile project(':jd-lib')
compile group: 'com.beust', name: 'jcommander', version: '1.32'
compile group: 'ch.qos.logback', name: 'logback-core', version: '1.0.13'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.0.13'
}
apply plugin: 'application'
mainClassName = "jd.cli.Main"
jar {
from(configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
manifest {
attributes 'Implementation-Title': 'jd-cmd',
'Implementation-Version': version,
// 'Built-By': System.getProperty('user.name'),
// 'Built-Date': new Date(),
// 'Built-JDK': System.getProperty('java.version'),
'Main-Class': mainClassName
}
}
}