-
Notifications
You must be signed in to change notification settings - Fork 215
/
build.gradle
54 lines (46 loc) · 1.38 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.guardsquare:proguard-gradle:7.4.0-beta02"
}
}
slice {
java {
include = ["${projectDir}/src/main/slice"]
}
}
dependencies {
implementation 'com.jgoodies:jgoodies-common:1.8.0'
implementation 'com.jgoodies:jgoodies-looks:2.6.0'
implementation 'com.jgoodies:jgoodies-forms:1.8.0'
implementation localDependency("ice")
implementation localDependency("glacier2")
}
jar {
archiveFileName = "ChatTEMP.jar"
manifest {
attributes 'Main-Class': "com.zeroc.demos.Chat.MainView"
}
}
def javaHome = System.properties['java.home']
task proguard(type: proguard.gradle.ProGuardTask, dependsOn: jar) {
injars configurations.runtimeClasspath.resolve(), filter: '!META-INF/**,!module-info.class'
injars "${buildDir}/libs/ChatTEMP.jar"
if(JavaVersion.current() <= JavaVersion.VERSION_1_8) {
libraryjars "${javaHome}/lib/rt.jar"
libraryjars "${javaHome}/lib/jsse.jar"
} else {
libraryjars "${javaHome}/jmods/java.base.jmod"
libraryjars "${javaHome}/jmods/java.logging.jmod"
libraryjars "${javaHome}/jmods/java.desktop.jmod"
libraryjars "${javaHome}/jmods/java.prefs.jmod"
}
outjars "Chat.jar"
configuration "chatdemo.pro"
}
assemble.dependsOn(proguard)
clean {
delete("Chat.jar")
}