-
Notifications
You must be signed in to change notification settings - Fork 66
/
build.gradle
71 lines (56 loc) · 1.7 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
plugins {
id 'java'
id 'application'
}
group 'vip.youwe'
version '1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.json', name: 'json', version: '20160810'
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
compile group: 'javax.servlet.jsp', name: 'javax.servlet.jsp-api', version: '2.3.3'
compile(group: "mysql", name: "mysql-connector-java", version: "5.1.47")
compile(group: "org.xerial", name: "sqlite-jdbc", version: "3.21.0")
// https://mvnrepository.com/artifact/asm/asm-all
compile group: 'asm', name: 'asm-all', version: '3.3.1'
}
task hello {
print("${projectDir}")
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
mainClassName = 'vip.youwe.shell.core.ui.MainActivity'
task copyResources(type: Copy) {
from "${projectDir}/src/main/resources"
into "${buildDir}/classes/java/main"
}
//processResources.dependsOn(copyResources)
processResources {
exclude("**/*.db")
}
task copyTaskWithPatterns(type: Copy) {
from 'src/main/java'
into 'build/classes/java/main'
include '**/*.dll'
include '**/*.bin'
include '**/*.txt'
include '**/*.ashx'
include '**/*.asmx'
include '**/*.aspx'
include '**/*.classs'
include '**/*.jsp'
include '**/*.jspx'
include '**/*.php'
}
processResources.dependsOn(copyTaskWithPatterns)
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
attributes 'Main-Class': 'vip.youwe.shell.core.ui.MainActivity'
}
}