forked from ericmore/SmartPutty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-x86.gradle
93 lines (76 loc) · 2.55 KB
/
build-x86.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// build.gradle
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'java-library-distribution'
apply plugin: 'idea'
apply plugin: 'application'
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url "http://maven.springframework.org/release" }
maven { url "http://maven.restlet.org" }
mavenCentral()
}
dependencies {
compile fileTree(dir: 'lib', include: '*.jar')
compile fileTree(dir: 'libArch', include: 'swt.x86_3.105.3.v20170228-0512.jar')
compile group: 'org.springframework', name: 'spring-core', version: '4.3.29.RELEASE'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
compile group: 'commons-net', name: 'commons-net', version: '3.5'
compile group: 'com.h2database', name: 'h2', version: '1.4.200'
// compile group: 'log4j', name: 'log4j', version: '1.2.17'
compile group: 'ch.qos.logback', name: 'logback-core', version: '1.2.3'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
compile group: 'commons-codec', name: 'commons-codec', version: '1.9'
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.4.22.Final'
compile group: 'org.projectlombok', name: 'lombok', version: '1.16.10'
}
distTar.enabled = false
//distZip.shouldRunAfter('copyImage')
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
task compile(type: JavaCompile) {
source = fileTree(dir: 'src', includes: ['**/*.java', '*.properties'])
destinationDir = file('build/classes/main')
}
distributions {
main {
contents {
into('icon') {
from 'icon'
}
from 'VERSION'
into('config') { from 'config' }
into('database') { from 'database' }
into('app') { from 'src/main/resources/app' }
into('doc') { from 'doc' }
}
}
}
distZip {
archiveName "SmartPutty-x86.zip"
}
jar {
manifest {
attributes(
'Main-Class': 'com.sp.ui.MainFrame',
)
}
from(configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
baseName 'SmartPutty'
}
mainClassName = 'com.sp.UI.MainFrame'