Skip to content

Commit 384b11e

Browse files
committed
Use managed dependencies
1 parent c4a7946 commit 384b11e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

build.gradle

+7-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import com.github.jk1.license.render.*
88

99
plugins {
1010
id 'java'
11-
id 'com.mendix.gradle.publish-module-plugin' version '1.20'
11+
id 'com.mendix.gradle.publish-module-plugin' version '1.21'
1212
id 'net.researchgate.release' version '2.8.1'
1313
id 'com.github.jk1.dependency-license-report' version '2.0'
1414
}
@@ -29,11 +29,12 @@ mxMarketplace {
2929
moduleLicense = 'Apache V2'
3030
appDirectory = "src/ObjectHandling"
3131
versionPathPrefix = "_Docs/version " // the path prefix within the module to the version folder
32-
createMigrationFile = true
3332
includeFiles = ["$mprDir/License.txt", "$mprDir/SiemensMendixObjectHandling__5.0.0__READMEOSS.html"]
33+
syncJavaDependenciesBeforeBuild = true
3434
}
3535

3636
def userLibDir = "$mprDir/userlib"
37+
def vendorLibDir = "$mprDir/vendorlib"
3738

3839
repositories {
3940
maven {
@@ -59,16 +60,13 @@ dependencies {
5960
[group: 'org.apache.httpcomponents.client5', name: 'httpclient5', version: '5.0.3']
6061
)
6162

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

64-
implementation(
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-
)
65+
compileOnly([group: 'com.mendix', name: 'public-api', version: "$mendixPublicApiVersion"])
6866
}
6967

7068
tasks.withType(JavaCompile) {
71-
options.compilerArgs << "-Xlint:deprecation"
69+
options.deprecation = true
7270
}
7371

7472
sourceSets {
@@ -101,6 +99,7 @@ task copyAllToUserlib(type: Copy) {
10199

102100
clean {
103101
delete "$userLibDir"
102+
delete "$vendorLibDir"
104103
}
105104

106105
tasks.named('mxBuild') {

0 commit comments

Comments
 (0)