55
66plugins {
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 = [ " $m prDir /License.txt " , " $m prDir /SiemensMendixCommunityCommons__10.1.3__READMEOSS.html " ]
28+ includeFiles = [ " $m prDir /License.txt " , " $m prDir /SiemensMendixCommunityCommons__11.0.0__READMEOSS.html " ]
29+ syncJavaDependenciesBeforeBuild = true
3030}
3131
3232def userLibDir = " $mprDir /userlib"
33+ def vendorLibDir = " $mprDir /vendorlib"
3334
3435repositories {
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 : " $m endixPublicApiVersion " ])
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
7064tasks. withType(JavaCompile ) {
71- options. compilerArgs << " -Xlint:deprecation "
65+ options. deprecation = true
7266}
7367
7468sourceSets {
@@ -106,6 +100,7 @@ tasks.named('compileJava') {
106100
107101clean {
108102 delete " $userLibDir "
103+ delete " $vendorLibDir "
109104}
110105
111106release {
0 commit comments