-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (46 loc) · 1.13 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
//
// Install the gradle Ice Builder plug-in from the plug-in portal
//
plugins {
id 'com.zeroc.gradle.ice-builder.slice' version '1.4.5' apply false
}
group 'helloworld'
version '1.0-SNAPSHOT'
subprojects {
//
// Apply Java and Ice Builder plug-ins to all sub-projects
//
apply plugin: 'java'
apply plugin: 'com.zeroc.gradle.ice-builder.slice'
//
// Both Client and Server projects share the Printer.ice Slice definitions
//
slice {
java {
files = [file("../resources/Printer.ice")]
}
}
//
// Use Ice JAR files from maven central repository
//
repositories {
mavenCentral()
}
//
// Both Client and Server depend only on Ice JAR
//
dependencies {
compile 'com.zeroc:ice:3.7.1'
}
//
// Create a JAR file with the appropriate Main-Class and Class-Path attributes
//
jar {
manifest {
attributes(
"Main-Class" : project.name.capitalize(),
"Class-Path": configurations.runtime.resolve().collect { it.toURI() }.join(' ')
)
}
}
}