Skip to content

Commit e8a89d7

Browse files
committed
Use managed dependencies
1 parent a313104 commit e8a89d7

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

build.gradle

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
plugins {
77
id 'java'
8-
id 'com.mendix.gradle.publish-module-plugin' version '1.20'
8+
id 'com.mendix.gradle.publish-module-plugin' version '1.21'
99
id 'net.researchgate.release' version '2.8.1'
1010
}
1111

@@ -25,11 +25,12 @@ mxMarketplace {
2525
moduleLicense = 'Apache V2'
2626
appDirectory = "src/CommunityCommons"
2727
versionPathPrefix = "_Version " // the path prefix within the module to the version folder
28-
createMigrationFile = true
29-
includeFiles = ["$mprDir/License.txt", "$mprDir/SiemensMendixCommunityCommons__10.1.3__READMEOSS.html"]
28+
includeFiles = ["$mprDir/License.txt", "$mprDir/SiemensMendixCommunityCommons__11.0.0__READMEOSS.html"]
29+
syncJavaDependenciesBeforeBuild = true
3030
}
3131

3232
def userLibDir = "$mprDir/userlib"
33+
def vendorLibDir = "$mprDir/vendorlib"
3334

3435
repositories {
3536
maven {
@@ -55,20 +56,13 @@ dependencies {
5556
[group: 'org.hamcrest', name: 'hamcrest', version: '2.2']
5657
)
5758

58-
compileOnly([group: 'com.mendix', name: 'public-api', version: "$mendixPublicApiVersion"])
59+
testImplementation fileTree(vendorLibDir) { include '*.jar' }
5960

60-
implementation(
61-
[group: 'com.google.guava', name: 'guava', version: '32.0.1-jre'],
62-
[group: 'com.googlecode.owasp-java-html-sanitizer', name: 'owasp-java-html-sanitizer', version: '20211018.2'],
63-
[group: 'commons-io', name: 'commons-io', version: '2.17.0'],
64-
[group: 'org.apache.pdfbox', name: 'pdfbox', version: '2.0.30'],
65-
[group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'],
66-
[group: 'org.apache.commons', name: 'commons-text', version: '1.10.0']
67-
)
61+
compileOnly([group: 'com.mendix', name: 'public-api', version: "$mendixPublicApiVersion"])
6862
}
6963

7064
tasks.withType(JavaCompile) {
71-
options.compilerArgs << "-Xlint:deprecation"
65+
options.deprecation = true
7266
}
7367

7468
sourceSets {
@@ -106,6 +100,7 @@ tasks.named('compileJava') {
106100

107101
clean {
108102
delete "$userLibDir"
103+
delete "$vendorLibDir"
109104
}
110105

111106
release {
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)