-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
66 lines (58 loc) · 1.59 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
/* 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'
compile name: 'biz.aQute.bnd.bndlib'
// 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'
}
repositories {
mavenCentral()
flatDir {
dirs '/c://Program Files/Mendix/7.17.0-rc5/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 + '.QueryApiBlogPost.RequiredLib'
ant.touch(file: keepFilename)
}
}
}
task getTestRuntimelibs(type: Copy) {
from configurations.testRuntime
into 'userlib/'
}