Gradle to Maven conversion

18 views
Skip to first unread message

priyanka shankar

unread,
Oct 28, 2015, 8:48:25 AM10/28/15
to Maven and Scala
My gradle project includes the following custom plugin :

class SystemPropertiesMappingPlugin implements Plugin<Project>{
    public void apply(Project project){
        project.tasks.withType(Test){ testTask ->
            testTask.ext.mappedSystemProperties = []
            doFirst{
                mappedSystemProperties.each{ mappedPropertyKey ->
                    def systemPropertyValue = System.getProperty(mappedPropertyKey)
                    if(systemPropertyValue){
                        testTask.systemProperty(mappedPropertyKey, systemPropertyValue)
                    }
                }
            }
        }
    }
}

since i want to convert my project to maven, i could not understand how to include this plugin in maven.

David Bernard

unread,
Oct 30, 2015, 4:35:49 AM10/30/15
to Maven and Scala
Hi,

This is the wrong place to ask. This mailing list is about using Scala AND Maven.

Else, you take a look at maven' Profile.

Cheers,

--

---
You received this message because you are subscribed to the Google Groups "Maven and Scala" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-and-sca...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages