i have to covert the profiles and properties of maven to Gradle.
in below pom given values are dev environment and db as postgresql and it will run
mvn install -Pdev,postgresql. How do i convert the same in gradle. actually the POM consist two (dev,sit) environmnet and 3 Database.
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<abc.mode>dev</abc.mode>
<!-- Hibernate properties -->
<hibernate.show_sql>false</hibernate.show_sql>
<hibernate.format_sql>true</hibernate.format_sql>
</properties>
</profile>
<profile>
<id>postgresql</id>
<properties>
<jdbcDriver.groupId>postgresql</jdbcDriver.groupId>
<jdbcDriver.artifactId>postgresql</jdbcDriver.artifactId>
<jdbcDriver.version>8.3-603.jdbc4</jdbcDriver.version>
<jdbcDriver.className>org.postgresql.Driver</jdbcDriver.className>
<dataSource.url>jdbc:postgresql://localhost/test${abc.mode}</dataSource.url>
<testDataSource.url>${dataSource.url}test</testDataSource.url>
</properties>
</profile>