-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
72 lines (63 loc) · 1.91 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
/* use:
* Download all dependencies - \programs\gradle-3.5\bin\gradle getTestRuntimeLibs
* Download just the export dependencies - \programs\gradle-3.5\bin\gradle getExportLibs
*/
apply plugin: 'java'
configurations {
export {}
compile { extendsFrom export }
}
compileJava.destinationDir = file("$rootDir/deployment/run/bin")
dependencies {
// public mendix runtime jars
compile name: 'com.mendix.public-api'
compile name: 'com.mendix.json'
compile name: 'com.mendix.logging-api'
compile name: 'com.mendix.m2ee-api'
compile name: 'javax.servlet-api.servlet'
// unit test module
testRuntime 'junit:junit:4.12'
testRuntime 'org.slf4j:slf4j-simple:1.7.5'
testRuntime 'ca.szc.configparser:java-configparser:0.2'
// for appcloudservices
testRuntime 'org.openid4java:openid4java:1.0.0'
testRuntime 'commons-lang:commons-lang:2.5'
testRuntime 'org.apache.ws.commons.axiom:axiom-api:1.2.19'
// export slack client sdk jars for upload to AppStore
export group: 'com.ullink.slack', name: 'simpleslackapi', version: '1.2.0'
}
repositories {
mavenCentral()
maven { url 'http://packages.confluent.io/maven/' }
flatDir {
dirs '/c://Program Files/Mendix/7.23.3.48173/runtime/bundles'
}
}
sourceSets {
main {
java {
srcDirs = ['javasource']
}
resources {
srcDirs = ['resources']
}
}
}
task getExportlibs(type: Copy) {
doFirst {
delete fileTree(dir: "userlib")
}
from configurations.export
into 'userlib/'
doLast {
files { file('userlib').listFiles() }.each { File file ->
println "file found: $file.name"
def keepFilename = 'userlib/' + file.name + '.SlackConnector.RequiredLib'
ant.touch(file: keepFilename)
}
}
}
task getTestRuntimelibs(type: Copy) {
from configurations.testRuntime
into 'userlib/'
}