How to use maven replacer plugin using gradle

plugins

(amit sharma) #1

I am migrating Maven to Gradle . But using gradle Init I am able to generate build.gradle but in my Maven we have couple of plugin like as below I do not now how to write task or plug in similar to below in gradle.

com.google.code.maven-replacer-plugin replacer 1.5.1 prepare-package replace ${basedir} target/${salesportal-web.version}/views/*.jsp target/${salesportal-web.version}/resources/widget/*.js target/${salesportal-web.version}/resources/admin/widget/*.js target/${salesportal-web.version}/resources/admin/widget/helper/*.js target/${salesportal-web.version}/WEB-INF/weblogic.xml target/${salesportal-web.version}/WEB-INF/web.xml target/${salesportal-web.version}/WEB-INF/spring/spring-web.xml target/${salesportal-web.version}/WEB-INF/spring/scm-client-config.xml target/${salesportal-web.version}/WEB-INF/spring/application-config.xml
			<replacements>
                <replacement>
                  <token>RETAILUI_BUILD_VERSION</token>
                  <value>${timestamp}</value>
                </replacement>
                <replacement>
                    <token>SALESPORTAL_CONTEXT</token>
                    <value>${context-name}</value>
                </replacement>
				 <replacement>
                    <token>SALESPORTAL_PROPERTY</token>
                    <value>${property-location}</value>
                </replacement>
            </replacements>  
			
	    </configuration>
		</plugin>