blob: 1f98501355dce9e296d0a5e85e7a056e1d0b5478 (
plain)
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
|
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
subprojects {
project.ext.topSrcDir = "$rootProject.projectDir/.."
project.version = iceVersion
project.group = "com.zeroc"
apply plugin: 'java'
apply plugin: 'idea'
apply from: "$rootProject.projectDir/gradle/ice.gradle"
repositories {
if (slice.jarDir) {
flatDir {
name "local"
dirs slice.jarDir
}
}
if(this.devRepo) {
maven {
url this.devRepo
}
}
if(new File("/usr/share/maven-repo").exists()) {
maven {
url "/usr/share/maven-repo"
}
}
mavenCentral()
//
// The thirdparty repository is required on macOS for appblunder
//
maven {
url 'https://repo.zeroc.com/nexus/content/repositories/thirdparty'
}
}
jar {
manifest {
attributes("Built-By": "ZeroC, Inc.")
}
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:-options"
options.encoding = "UTF-8"
options.deprecation = true
}
idea.module {
excludeDirs -= file(buildDir)
buildDir.listFiles({d, f ->f != 'generated-src'} as FilenameFilter).each { excludeDirs += it }
}
}
task dist()
dist.dependsOn(project(":ice").assemble)
dist.dependsOn(project(":icessl").assemble)
dist.dependsOn(project(":glacier2").assemble)
dist.dependsOn(project(":icegrid").assemble)
dist.dependsOn(project(":icebox").assemble)
dist.dependsOn(project(":icebt").assemble)
dist.dependsOn(project(":icediscovery").assemble)
dist.dependsOn(project(":icelocatordiscovery").assemble)
dist.dependsOn(project(":icepatch2").assemble)
dist.dependsOn(project(":icestorm").assemble)
dist.dependsOn(project(":IceGridGUI").assemble)
//
// Used to build the gradle wrapper to automatically download and install
// the version of gradle needed to build Ice.
//
task wrapper(type: Wrapper) {
gradleVersion = "4.0.1"
}
|