forked from mendix/CommunityCommons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
85 lines (71 loc) · 2.66 KB
/
Copy pathbuild.gradle
File metadata and controls
85 lines (71 loc) · 2.66 KB
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
// This gradle build depends on Mendix internal resources, the lastest commit
// which did not is 6e1527a5e31347c6914bc34deab31ef4ab46953b. You may restore
// the gradle scripts to that commit if you which to use them at your own risk.
// We don't guarantee that those will keep working in the future.
plugins {
id 'java'
id 'com.mendix.gradle.publish-module-plugin' version '1.0'
}
sourceCompatibility = '11'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
project.ext {
mendixVersion = '8.12.7'
}
mxMarketplace {
mxProjectDirectory = "src/CommunityCommons"
}
def userLibDir = "$projectDir/src/CommunityCommons/userlib"
repositories {
maven {
url 'https://nexus.rnd.mendix.com/repository/repo1-proxy/'
}
maven {
url 'https://nexus.rnd.mendix.com/repository/maven-hosted/'
}
}
dependencies {
testImplementation(
[group: 'com.mendix', name: 'public-api', version: "$mendixVersion"],
[group: 'junit', name: 'junit', version: '4.13.2'],
[group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.14'],
[group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13']
)
compileOnly([group: 'com.mendix', name: 'public-api', version: "$mendixVersion"])
implementation(
[group: 'com.google.guava', name: 'guava', version: '30.1.1-jre'],
[group: 'com.googlecode.owasp-java-html-sanitizer', name: 'owasp-java-html-sanitizer', version: '20200713.1'],
[group: 'commons-io', name: 'commons-io', version: '2.8.0'],
[group: 'org.apache.pdfbox', name: 'pdfbox', version: '2.0.24'],
[group: 'org.apache.commons', name: 'commons-lang3', version: '3.11']
)
}
sourceSets {
main {
java {
srcDir 'src/CommunityCommons/javasource'
exclude 'unittesting/**'
exclude 'system/UserActionsRegistrar.java'
}
}
test {
java {
srcDirs = ["src/test", "src/CommunityCommons/javasource"]
}
}
}
test {
exclude 'unittesting/*'
}
task copyAllToUserlib(type: Copy) {
from configurations.testCompileClasspath
into userLibDir
eachFile { fileCopyDetails -> new File(destinationDir, "${fileCopyDetails.name}.${project.name}.RequiredLib").write '' }
}
task copyRuntimeToUserlib(type: Copy) {
from configurations.runtimeClasspath
into userLibDir
eachFile { fileCopyDetails -> new File(destinationDir, "${fileCopyDetails.name}.${project.name}.RequiredLib").write '' }
}
clean {
delete "$projectDir/src/CommunityCommons/userlib"
}