Last active
March 9, 2019 19:26
-
-
Save josdem/9aeab1a2dd5ac29868b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Run a single integration test | |
gradle -Penvironment=test -Dtest.single=IntegraSTPConsumerServiceIntegrationSpec :service:test | |
//Run web module with jetty | |
gradle :web:jettyRun | |
//Run task setting environment | |
gradle -Penvironment=development :web:settingEnvironment | |
//Creating war and skip test | |
gradle -x test -Penvironment=production build war | |
//Dependencies tree | |
gradle dependencies :web:dependencies | |
//Exclude a dependency | |
compile ('org.apache.activemq:activemq-spring:5.12.0'){ | |
exclude group: 'org.slf4j' | |
} | |
//Run a single test with configuration | |
gradle -Dtest.single=NotificationServiceSpec test -Dspring.config.location=$HOME/.spring/application-DEVELOPMENT.yml | |
//Execte all tasks in a specific gradle file | |
gradle --build-file multi.gradle tasks | |
//Execute a specific task in a specific gradle file | |
gradle --build-file multi.gradle second | |
//Execute testAll without internet and do not execute tasks only diplay what taks will be execute | |
gradle --build-file multi.gradle --offline --dry-run testAll | |
//Execute a gradle tasks and keep an JVM up | |
gradle --build-file multi.gradle --daemon testAll | |
//To stop JVM | |
gradle --build-file multi.gradle --stop | |
//Execute gradle task and generate an html report (Stored in build/reports/profile) | |
gradle --build-file multi.gradle --profile testAll | |
//Get properties from gradle file | |
gradle --build-file multi.gradle properties | |
//Ignore a task in a specific gradle file | |
gradle -b multi.gradle testAll -x testInIE | |
//Update Gradle Wrapper in a project | |
gradle wrapper --gradle-version ${version} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment