@@ -17,28 +17,40 @@ sourceSets {
1717dependencies {
1818 api(project(" :native-cli" ))
1919
20- testImplementation group : ' org.mule.weave' , name : ' parser' , version : weaveVersion
21- testImplementation group : ' org.mule.weave' , name : ' test-helpers' , version : weaveVersion
22-
2320 weaveSuite " org.mule.weave:runtime:${ weaveTestSuiteVersion} :test@zip"
2421 weaveSuite " org.mule.weave:yaml-module:${ weaveTestSuiteVersion} :test@zip"
25- testRuntimeOnly ' com.vladsch.flexmark:flexmark-all:0.62.2'
22+ testRuntimeOnly ' com.vladsch.flexmark:flexmark-all:0.64.8'
23+ // https://mvnrepository.com/artifact/org.scalatest/scalatest
24+ testImplementation group : ' org.scalatest' , name : ' scalatest_2.12' , version : ' 3.2.19'
25+
26+ testImplementation " org.mule.weave:parser:${ weaveVersion} "
27+ testImplementation " org.mule.weave:test-helpers:${ weaveVersion} "
2628 testImplementation ' commons-io:commons-io:2.11.0'
27- testImplementation group : ' com.sun.mail' , name : ' jakarta.mail' , version : ' 1.6.4'
28- testImplementation group : ' xerces' , name : ' xercesImpl' , version : ' 2.12.1'
29- testImplementation group : ' xalan' , name : ' xalan' , version : ' 2.7.2'
30- testImplementation group : ' commons-beanutils' , name : ' commons-beanutils' , version : ' 1.9.4'
29+ testImplementation ' com.sun.mail:jakarta.mail:1.6.4'
30+ testImplementation ' xerces:xercesImpl:2.12.1'
31+ testImplementation ' xalan:xalan:2.7.2'
32+ testImplementation ' commons-beanutils:commons-beanutils:1.9.4'
33+ implementation group : ' com.sun.mail' , name : ' jakarta.mail' , version : ' 2.0.1'
3134}
3235
33- task cleanTestSuites ( type : Delete ) {
36+ tasks . register( ' cleanTestSuites ' , Delete ) {
3437 delete " $projectDir /build/resources/weave-suites"
3538}
3639
37- task downloadTestSuites ( type : Copy ) {
40+ tasks . register( ' downloadTestSuites ' , Copy ) {
3841 from configurations. weaveSuite
3942 into " $projectDir /build/resources/weave-suites"
4043}
4144
45+ tasks. named(' processTestResources' ) {
46+ dependsOn(downloadTestSuites)
47+ }
48+
49+ tasks. named(' processResources' ) {
50+ dependsOn(' processTestResources' )
51+ }
52+
53+
4254downloadTestSuites. dependsOn(cleanTestSuites)
4355test. dependsOn(downloadTestSuites)
4456test. dependsOn(" :native-cli:nativeCompile" )
0 commit comments