-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
executable file
·112 lines (84 loc) · 2.55 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
buildscript {
ext.kotlin_version = '1.3.71'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "edu.sc.seis.macAppBundle" version "2.2.1"
id 'edu.sc.seis.launch4j' version '2.4.4'
}
group = 'com.haleywang.putty'
version = '0.1'
sourceCompatibility = '1.8'
archivesBaseName = 'SpringRemote'
apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'kotlin'
repositories {
flatDir dirs: ['libs']
mavenCentral()
jcenter()
}
sourceSets {
main.java.srcDirs += 'src/main/java'
main.java.srcDirs += 'src/main/javaopen'
main.kotlin.srcDirs += 'src/main/kotlin'
}
dependencies {
compile ":eawtstub:"
compile ":cookswing:"
compile ":cookxml:"
testCompile 'junit:junit:4.12'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains:annotations:13.0"
compile 'net.java.dev.jna:jna:4.5.0'
compile 'net.java.dev.jna:jna-platform:4.5.0'
compile ":trove4j:"
compile 'org.jetbrains.pty4j:pty4j:0.8.5'
compile 'com.jcraft:jsch:0.1.54'
compile 'com.jcraft:jzlib:1.1.3'
compile 'com.google.guava:guava:25.1-jre'
compile 'com.google.code.gson:gson:2.8.5'
compile 'com.formdev:flatlaf:1.6.5'
compile 'org.swinglabs:swingx:1.6.1'
compile 'javax.annotation:javax.annotation-api:1.3.2'
}
mainClassName = "com.haleywang.putty.SpringRemoteApp"
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/version.properties").withWriter { w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p['archivesBaseName'] = project.archivesBaseName.toString()
p.store w, null
}
}
}
classes {
dependsOn createProperties
}
macAppBundle {
mainClassName = "com.haleywang.putty.SpringRemoteApp"
icon = "img/SpringRemote.icns"
bundleJRE = true
javaProperties.put("apple.laf.useScreenMenuBar", "true")
bundleExtras.put('NSHighResolutionCapable', true)
}
launch4j {
mainClassName = "com.haleywang.putty.SpringRemoteApp"
icon = "$projectDir/img/SpringRemote.ico"
}
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes 'Main-Class': 'com.haleywang.putty.SpringRemoteApp'
}
}