-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (73 loc) · 2.11 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
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/4.3/userguide/java_library_plugin.html
*/
//define where is the iris installed
def iris_home = "/Users/akovacev/apps/iris"
//apply plugin: 'checkstyle'
// checkstyle {
// config project.resources.text.fromFile('config/checkstyle/checkstyle.xml')
// }
// Apply the java-library plugin to add support for Java Library
apply plugin: 'java-library'
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
// iris gateway for Java Business Hosts
compile files(iris_home+'/dev/java/lib/JDK18/intersystems-xep-3.0.0.jar')
compile files(iris_home+'/dev/java/lib/JDK18/intersystems-jdbc-3.0.0.jar')
//intersystems-gateway-3.0.0.jar
//intersystems-spark-1.0.0.jar
//intersystems-utils-3.0.0.jar
//intersystems-jdbc-3.0.0.jar
//intersystems-uima-1.0.0.jar
//intersystems-xep-3.0.0.jar
}
test {
useJUnit()
maxHeapSize = '1G'
}
ext.serverExcludes = []
jar {
}
sourceSets {
main {
java {
srcDir 'src'
}
}
}
/*task utilJar(type: Jar) {
from(sourceSets.main.output) {
include "opcua/certs/**"
include "opcua/exceptions/**"
include "opcua/msg/**"
include "opcua/utils/**"
exclude "test/**"
project.ext.serverExcludes.addAll(includes)
}
}
*/
sourceSets.main.resources.includes = [ "**/*.p12" ]
// deps.jar
task depsCopy(type: Copy) {
into "repo"
from { configurations.compile}
}
// main.jar
task mainJar(type: Jar) {
from(sourceSets.main.output) {
//include "opcua/**"
//include "**/*.p12"
//exclude "test/**"
exclude project.ext.serverExcludes
}
}