@@ -8,7 +8,7 @@ import com.github.jk1.license.render.*
8
8
9
9
plugins {
10
10
id ' java'
11
- id ' com.mendix.gradle.publish-module-plugin' version ' 1.20 '
11
+ id ' com.mendix.gradle.publish-module-plugin' version ' 1.21 '
12
12
id ' net.researchgate.release' version ' 2.8.1'
13
13
id ' com.github.jk1.dependency-license-report' version ' 2.0'
14
14
}
@@ -29,11 +29,12 @@ mxMarketplace {
29
29
moduleLicense = ' Apache V2'
30
30
appDirectory = " src/ObjectHandling"
31
31
versionPathPrefix = " _Docs/version " // the path prefix within the module to the version folder
32
- createMigrationFile = true
33
32
includeFiles = [" $mprDir /License.txt" , " $mprDir /SiemensMendixObjectHandling__5.0.0__READMEOSS.html" ]
33
+ syncJavaDependenciesBeforeBuild = true
34
34
}
35
35
36
36
def userLibDir = " $mprDir /userlib"
37
+ def vendorLibDir = " $mprDir /vendorlib"
37
38
38
39
repositories {
39
40
maven {
@@ -59,16 +60,13 @@ dependencies {
59
60
[group : ' org.apache.httpcomponents.client5' , name : ' httpclient5' , version : ' 5.0.3' ]
60
61
)
61
62
62
- compileOnly([ group : ' com.mendix ' , name : ' public-api ' , version : " $m endixPublicApiVersion " ])
63
+ testImplementation fileTree(vendorLibDir) { include ' *.jar ' }
63
64
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 " ])
68
66
}
69
67
70
68
tasks. withType(JavaCompile ) {
71
- options. compilerArgs << " -Xlint:deprecation "
69
+ options. deprecation = true
72
70
}
73
71
74
72
sourceSets {
@@ -101,6 +99,7 @@ task copyAllToUserlib(type: Copy) {
101
99
102
100
clean {
103
101
delete " $userLibDir "
102
+ delete " $vendorLibDir "
104
103
}
105
104
106
105
tasks. named(' mxBuild' ) {
0 commit comments