forked from ako/ConnectorKitDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (65 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
/* 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
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'
// unit test module
testRuntime 'junit:junit:4.11'
testRuntime 'commons-io:commons-io:2.3'
testRuntime 'org.apache.commons:commons-lang3:3.6'
testRuntime 'org.apache.httpcomponents:httpclient:4.4.1'
testRuntime 'org.apache.httpcomponents:httpcore:4.4.1'
// 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 'com.ullink.slack:simpleslackapi:1.0.0'
}
repositories {
mavenCentral()
flatDir {
dirs '/c://Program Files/Mendix/7.5.0/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 + '.ConnectorKitDemo.RequiredLib'
ant.touch(file: keepFilename)
}
}
}
task getTestRuntimelibs(type: Copy) {
from configurations.testRuntime
into 'userlib/'
}