From 95ec35c7681ee7f58cf35acd0698c0b674ea848f Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 23 Jun 2014 14:20:44 +0300 Subject: [PATCH] INTSAMPLES-131: Fix `README.md` for Gradle JIRA: https://jira.spring.io/browse/INTSAMPLES-131 INTSAMPLES-131: PR comments --- applications/cafe-scripted/README.md | 8 +++----- applications/loan-broker/README.md | 8 ++++---- basic/amqp/README.md | 7 +++---- basic/enricher/README.md | 4 ++-- basic/ftp/README.md | 2 +- basic/helloworld/README.md | 10 ++++++---- basic/http/README.md | 20 ++++++++++--------- basic/jdbc/README.md | 6 +++--- basic/jms/README.md | 7 ++++--- basic/jpa/README.md | 7 ++++--- basic/oddeven/README.md | 7 ++++--- basic/tcp-amqp/README.md | 7 ++++--- basic/tcp-client-server/README.md | 8 ++++---- basic/ws-outbound-gateway/README.md | 7 ++++--- basic/xml/README.md | 6 +++--- build.gradle | 2 +- intermediate/dynamic-poller/README.md | 5 +++-- intermediate/mail-attachments/README.md | 4 ++-- intermediate/multipart-http/README.md | 3 ++- intermediate/rest-http/readme.md | 10 ++++++---- .../splitter-aggregator-reaper/README.md | 6 +++--- .../stored-procedures-derby/README.md | 6 +++--- intermediate/stored-procedures-ms/README.md | 4 ++-- .../stored-procedures-oracle/README.md | 12 +++++++---- .../stored-procedures-postgresql/README.md | 8 ++------ intermediate/travel/README.md | 5 +++-- 26 files changed, 95 insertions(+), 84 deletions(-) diff --git a/applications/cafe-scripted/README.md b/applications/cafe-scripted/README.md index 74b4b549..12e51891 100644 --- a/applications/cafe-scripted/README.md +++ b/applications/cafe-scripted/README.md @@ -5,11 +5,9 @@ This is the scripted implementation of the classic **cafe** sample application. # Instructions for running the CafeDemo sample -The script language is passed as a command line argument. This may be run directly from maven: +The script language is passed as a command line argument. This may be run directly from Gradle: - $ mvn clean compile - - $ mvn exec:exec -Dlang=[language] + $ gradlew :cafe-scripted:runCafeDemoApp -Plang=[language] ## Groovy Control Bus @@ -17,7 +15,7 @@ This sample also demonstrates the use of Spring Integration's **groovy control b To demonstrate the control bus, while the CafeDemoApp is running, execute in a separate window: - $ mvn exec:exec -Pcontrol-bus + $ gradlew :cafe-scripted:runControlBus This will use groovy scripts to diff --git a/applications/loan-broker/README.md b/applications/loan-broker/README.md index bff50518..96f2ecfe 100644 --- a/applications/loan-broker/README.md +++ b/applications/loan-broker/README.md @@ -1,11 +1,11 @@ Loan Broker Application ======================= -The Loan Broker sample is distributed as a Maven project, so you can run it in two ways. +The Loan Broker sample is distributed as a Gradle project, so you can run it in two ways. -### Maven (command line): +### Gradle (command line): -Execute **mvn install**. You should see output that looks similar to this: +Execute **gradlew :loan-broker:run**. You should see output that looks similar to this: . . . . . INFO : org.springframework.integration.loanbroker.demo.LoanBrokerDemo - @@ -30,7 +30,7 @@ Execute **mvn install**. You should see output that looks similar to this: This extension to the loan broker sample shows how to exchange messages between Spring Integration applications (and other technologies) using UDP. Any loan quotes over 5.2% will be sent to the loanshark application. -* Deploy the **loanshark** sample to a web container (e.g. **mvn tomcat:run**); or +* Deploy the **loanshark** sample to a web container (e.g. **gradlew :loan-broker:jettyRun**); or * run the perl (**udps.pl**) or groovy (**udps.groovy**) scripts from the command line. Run the **LoanBrokerSharkDetectorDemo** test case. You can see the banks that were detected as loan sharks in the **loanshark web UI**. diff --git a/basic/amqp/README.md b/basic/amqp/README.md index 280774d3..103da0e0 100644 --- a/basic/amqp/README.md +++ b/basic/amqp/README.md @@ -15,14 +15,13 @@ If you imported the example into your IDE, you can just run class **org.springfr * Right-click on Main class --> Run As --> Java Application -Alternatively, you can start the sample from the command line ([Maven](http://maven.apache.org/) required): +Alternatively, you can start the sample from the command line ([Gradle](http://www.gradle.org) required): -* mvn package -* mvn exec:java +* gradlew :amqp:run # Used Spring Integration components -### Spring Integration Modules (Maven dependencies) +### Spring Integration Modules (Maven/Gradle dependencies) * spring-integration-core * spring-integration-amqp diff --git a/basic/enricher/README.md b/basic/enricher/README.md index 57e28e6e..c31afde6 100644 --- a/basic/enricher/README.md +++ b/basic/enricher/README.md @@ -11,8 +11,8 @@ You can run the sample application by either * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line execute: - - mvn package - - mvn exec:java + + $ gradlew :enricher:run This example illustrates the usage of the Content Enricher. diff --git a/basic/ftp/README.md b/basic/ftp/README.md index 9bfb3a53..fbb53c82 100644 --- a/basic/ftp/README.md +++ b/basic/ftp/README.md @@ -13,7 +13,7 @@ This example demonstrates the following aspects of the FTP support available wit The samples work out of the box using an embedded Apache FTP Server. Simply execute: - $ mvn clean package + $ gradlew :ftp:run and the samples are build as well as executed. The samples are part of a JUnit test suite: diff --git a/basic/helloworld/README.md b/basic/helloworld/README.md index a7be3b2c..8ffd4227 100644 --- a/basic/helloworld/README.md +++ b/basic/helloworld/README.md @@ -12,9 +12,10 @@ The Hello World application demonstrates a simple message flow represented by th Message -> Channel -> ServiceActivator -> QueueChannel -To run the sample simply execute **HelloWorldApp** in package **org.springframework.integration.samples.helloworld**. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/): +To run the sample simply execute **HelloWorldApp** in package **org.springframework.integration.samples.helloworld**. +You can also execute that class using the [Gralde](http://www.gradle.org): - $ mvn clean package exec:java -P hello + $ gradlew :helloworld:runHelloWorldApp You should see the following output: @@ -26,9 +27,10 @@ This simple application will print out the current system time twice every 20 se More specifically, an **Inbound Channel Adapter** polls for the current system time 2 times every 20 seconds (20000 milliseconds). The resulting message contains as payload the time in milliseconds and the message is sent to a **Logging Channel Adapter**, which will print the time to the command prompt. -To run the sample simply execute **PollerApp** in package **org.springframework.integration.samples.helloworld**. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/): +To run the sample simply execute **PollerApp** in package **org.springframework.integration.samples.helloworld**. +You can also execute that class using the [Gralde](http://www.gradle.org): - $ mvn clean package exec:java -P poller + $ gradlew :helloworld:runPollerApp You should see output like the following: diff --git a/basic/http/README.md b/basic/http/README.md index 15a48290..4a7b3f75 100644 --- a/basic/http/README.md +++ b/basic/http/README.md @@ -12,15 +12,17 @@ The sample consists of two parts: ### Server -#### Command Line Using Maven +#### Command Line Using Gradle -The easiest way to run the **server** is to use the [Maven Jetty Plugin](http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin). Simply execute: +The easiest way to run the **server** is to use the [Gralde Jetty Plugin](http://www.gradle.org/docs/current/userguide/jetty_plugin.html). + Simply execute: - $ mvn jetty:run + $ gradlew :http:jettyRun -This command starts a Jetty servlet container running on port 8080 serving the application. Alternatively you can also package the war-file and deploy it manually to a servlet container of your choosing. For that to happen execute: +This command starts a Jetty servlet container running on port 8080 serving the application. +Alternatively you can also package the war-file and deploy it manually to a servlet container of your choosing. For that to happen execute: - $ mvn clean package + $ gradlew :http:build The resulting war-file will be located in the **target** folder. @@ -30,13 +32,13 @@ If you are using [STS](http://www.springsource.com/developer/sts) and the projec ### Client -#### Command Line Using Maven +#### Command Line Using Gradle -In order to run the **client** using Maven, execute: +In order to run the **client** using Gradle, execute: - $ mvn clean package exec:java + $ gradlew :http:run -This will package the application and run it using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/) +This will package the application and run it using the [Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html) #### Using an IDE such as SpringSource Tool Suiteā„¢ (STS) diff --git a/basic/jdbc/README.md b/basic/jdbc/README.md index 4db2cbe1..2bd293ac 100644 --- a/basic/jdbc/README.md +++ b/basic/jdbc/README.md @@ -19,9 +19,9 @@ You can run the application by either * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line: - - mvn package - - mvn exec:java - + + $ gradlew :jdbc:run + Make an appropriate choice for searching a Person or creating a Person. For creating the person record, select the appropriate steps as prompted by the application. diff --git a/basic/jms/README.md b/basic/jms/README.md index 73f18571..6a382121 100644 --- a/basic/jms/README.md +++ b/basic/jms/README.md @@ -17,9 +17,10 @@ It also shows an example of using Spring profiles to modify the configuration fo The Stdout and Stdin Channel Adapters will allow you to interact with JMS via the console. It uses an embedded ActiveMQ broker. -To run the sample, simply execute the **Main** class located in the the *org.springframework.integration.samples.jms* package either from your favorite IDE or by using Maven. When using Maven you can start the sample by executing: +To run the sample, simply execute the **Main** class located in the the *org.springframework.integration.samples.jms* + package either from your favorite IDE or by using Gradle. When using Gradle you can start the sample by executing: - $ mvn clean package exec:java + $ gradlew :jms:run You will then be prompted to run one of two demos: @@ -51,4 +52,4 @@ When running either one of the demos you will see the following prompt: * **ChannelAdapterDemo** will simply echo the response -There are also test cases that exercise both demos; utilizing Spring 3.0 profiles to route the output to a QueueChannel instead of stdout. \ No newline at end of file +There are also test cases that exercise both demos; utilizing Spring 3.0 profiles to route the output to a QueueChannel instead of stdout. diff --git a/basic/jpa/README.md b/basic/jpa/README.md index aa44e6af..76d5a36e 100644 --- a/basic/jpa/README.md +++ b/basic/jpa/README.md @@ -22,10 +22,11 @@ Hibernate works out of the box and there are 2 options on how to execute the sam * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line: - - mvn clean package - - mvn exec:exec + $ gradlew :jpa:run -For **OpenJPA** and **EclipseLink** to work, you must provide a [Java Agent](http://docs.oracle.com/javase/6/docs/api/java/lang/instrument/package-summary.html). When using the Maven Exec Plugin, this is taken care of for you behind the scenes automatically. However, when running the sample from within STS start the Main class with the following JVM flags: +For **OpenJPA** and **EclipseLink** to work, you must provide a [Java Agent](http://docs.oracle.com/javase/6/docs/api/java/lang/instrument/package-summary.html). +When using the Gradle Application Plugin, this is taken care of for you behind the scenes automatically. However, +when running the sample from within STS start the Main class with the following JVM flags: -javaagent:/path/to/.m2/repository/org/springframework/spring-instrument/3.1.1.RELEASE/spring-instrument-3.1.1.RELEASE.jar -javaagent:/path/to/.m2/repository/org/apache/openjpa/openjpa/2.2.0/openjpa-2.2.0.jar diff --git a/basic/oddeven/README.md b/basic/oddeven/README.md index c6c85f28..48b80a52 100644 --- a/basic/oddeven/README.md +++ b/basic/oddeven/README.md @@ -36,13 +36,14 @@ The following Spring Integration components are being used: ## Running the Samples -To run the two samples, simply execute either **CronOddEvenDemo** or **IntervalOddEvenDemoTestApp** in package **org.springframework.integration.samples.oddeven**. You can also execute those two samples using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/): +To run the two samples, simply execute either **CronOddEvenDemo** or **IntervalOddEvenDemoTestApp** in package **org.springframework.integration.samples.oddeven**. +You can also execute those two samples using the [Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html): - $ mvn clean package exec:java -P cron + $ gradlew :oddeven:runCronOddEvenDemo which will execute **CronOddEvenDemo**. In order to run **IntervalOddEvenDemoTestApp**, execute: - $ mvn clean package exec:java -P interval + $ gradlew :oddeven:runIntervalOddEvenDemoTestApp For both samples you should see the output similar to this: diff --git a/basic/tcp-amqp/README.md b/basic/tcp-amqp/README.md index c2bbd29e..b673e086 100644 --- a/basic/tcp-amqp/README.md +++ b/basic/tcp-amqp/README.md @@ -28,9 +28,10 @@ If you imported the example into your IDE, you can just run class **org.springfr * Right-click on Main class --> Run As --> Java Application -Alternatively, you can start the sample from the command line ([Maven](http://maven.apache.org/) required): +Alternatively, you can start the sample from the command line +([Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html)): -* mvn exec:java + $ gradlew :tcp-amqp:run ## Run Telnet @@ -59,4 +60,4 @@ Some further resources: * RabbitMQ - [http://www.rabbitmq.com/](http://www.rabbitmq.com/) * Spring AMQP - [http://www.springsource.org/spring-amqp](http://www.springsource.org/spring-amqp) -[netcat]: http://en.wikipedia.org/wiki/Netcat \ No newline at end of file +[netcat]: http://en.wikipedia.org/wiki/Netcat diff --git a/basic/tcp-client-server/README.md b/basic/tcp-client-server/README.md index dca9e14a..c6cf6719 100644 --- a/basic/tcp-client-server/README.md +++ b/basic/tcp-client-server/README.md @@ -19,9 +19,9 @@ Several variations of the sample are provided: The Client-Server Demo illustrates the use of a *Gateway* as an entry point into the integration flow. The message generated by the *Gateway* is sent over *TCP* by the *Outbound Gateway* to the *Inbound Gateway*. In turn the *Inbound Gateway* sends the message to an echo service (Class *EchoService*) and the echoed response comes back over *TCP*. The demo uses explicit *Transformer*s to convert the *byte array* payloads to *Strings*. -You can execute this sample simply via Maven: +You can execute this sample simply via Gradle: - $ mvn clean package exec:java + $ gradlew :tcp-client-server:run Alternatively, you can also execute the **Main** method in class *org.springframework.integration.samples.tcpclientserver.Main*. In both cases you should see the following console output: @@ -54,7 +54,7 @@ Alternatively, you can also execute the **Main** method in class *org.springfram The respective open server socket it dynamically selected. Alternatively, you can also customize the port by providing an additional system property at startup e.g. - $ mvn clean package exec:java -DavailableServerSocket=7777 + $ gradlew :tcp-client-server:run -DavailableServerSocket=7777 #### Connect via Telnet @@ -143,4 +143,4 @@ You can run the example by executing JUnit test **TcpServerCustomSerializerTest* [Deserializer]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/core/serializer/Deserializer.html [Serializer]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/core/serializer/Serializer.html [Telnet]: http://en.wikipedia.org/wiki/Telnet -[Transmission Control Protocol]: http://en.wikipedia.org/wiki/Transmission_Control_Protocol \ No newline at end of file +[Transmission Control Protocol]: http://en.wikipedia.org/wiki/Transmission_Control_Protocol diff --git a/basic/ws-outbound-gateway/README.md b/basic/ws-outbound-gateway/README.md index eb9cd67b..954cf268 100644 --- a/basic/ws-outbound-gateway/README.md +++ b/basic/ws-outbound-gateway/README.md @@ -19,8 +19,9 @@ Fahrenheit (90F) to Celsius (32.2C) and the result is printed to the console: ## Running the Sample -To run the sample simply execute **WebServiceDemoTestApp** in package *org.springframework.integration.samples.ws*. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/): +To run the sample simply execute **WebServiceDemoTestApp** in package *org.springframework.integration.samples.ws*. +You can also execute that class using the [Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html): - $ mvn clean package exec:java + $ gradlew :ws-outbound-gateway:run -[Simple Object Access Protocol]: http://en.wikipedia.org/wiki/SOAP \ No newline at end of file +[Simple Object Access Protocol]: http://en.wikipedia.org/wiki/SOAP diff --git a/basic/xml/README.md b/basic/xml/README.md index 874d8ddd..0c1f59b1 100644 --- a/basic/xml/README.md +++ b/basic/xml/README.md @@ -10,9 +10,10 @@ This example demonstrates the following aspects of the [Extensible Markup Langua ## Running the Sample -To run the sample, execute the class **org.springframework.integration.samples.xml.BookOrderProcessingTestApp**. Alternatively, you can run the sample using [Maven][] by executing: +To run the sample, execute the class **org.springframework.integration.samples.xml.BookOrderProcessingTestApp**. +Alternatively, you can run the sample using [Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html) by executing: - $ mvn clean package exec:java + $ gradlew :xml:run You should see the following output: @@ -35,6 +36,5 @@ You should see the following output: [Extensible Markup Language]: http://en.wikipedia.org/wiki/XML -[Maven]: http://maven.apache.org/ [XPath]: http://en.wikipedia.org/wiki/XPath [XSLT]: http://en.wikipedia.org/wiki/XSLT diff --git a/build.gradle b/build.gradle index ebcd8f12..f45904fa 100644 --- a/build.gradle +++ b/build.gradle @@ -960,7 +960,7 @@ project('stored-procedures-oracle') { mainClassName = 'org.springframework.integration.samples.storedprocedure.Main' repositories { - maven { url 'https://code.lds.org/nexus/content/groups/main-repo' } //Oracle JDBC Driver + mavenLocal() //Oracle JDBC Driver } dependencies { diff --git a/intermediate/dynamic-poller/README.md b/intermediate/dynamic-poller/README.md index 99921203..0c52319a 100644 --- a/intermediate/dynamic-poller/README.md +++ b/intermediate/dynamic-poller/README.md @@ -12,8 +12,9 @@ When changing the polling period, the change to the trigger will occur after the You can run the application by either: * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) -* or from the command line using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/): - - mvn package exec:java +* or from the command line using the [Gralde](http://www.gradle.org): + + $ gradlew :dynamic-poller:runHelloWorldApp You should see output like the following: diff --git a/intermediate/mail-attachments/README.md b/intermediate/mail-attachments/README.md index 5e71a4a9..f13caa24 100644 --- a/intermediate/mail-attachments/README.md +++ b/intermediate/mail-attachments/README.md @@ -28,8 +28,8 @@ You can run this sample by either. * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line: - - mvn package - - mvn exec:java + + $ gradlew :mail-attachments:run Once started, the configured mail server will be polled for new email messages every 5 seconds. diff --git a/intermediate/multipart-http/README.md b/intermediate/multipart-http/README.md index f130c1bf..f5f3d1a1 100644 --- a/intermediate/multipart-http/README.md +++ b/intermediate/multipart-http/README.md @@ -19,7 +19,8 @@ To run this sample: 1. Deploy project * If you are using STS and project is imported as Eclipse project in your workspace you can just execute **Run on Server** - * You can also run **mvn clean install** and generate the WAR file that you can deploy the conventional way + * You can also run **gradlew :multipart-http:build** and generate the WAR file that you can deploy the conventional + way 2. run the simple test client program: **org.springframework.integration.samples.multipart.MultipartClient** You should see the following output from the server: diff --git a/intermediate/rest-http/readme.md b/intermediate/rest-http/readme.md index ed65de67..a60b5a21 100644 --- a/intermediate/rest-http/readme.md +++ b/intermediate/rest-http/readme.md @@ -11,15 +11,17 @@ The *Client* program is provided as a [JUnit][] test: * RestHttpClientTest -This test-case can be used to test the HTTP Path usage. It uses Spring's [RestTemplate][] to assemble and send HTTP requests. The *Server*, on the other hand, is using Spring Integration's HTTP Endpoint configuration. The provided project itself is a web project and you can build the project using [Maven][] and deploy the resulting war under `target/rest-http-*.war` to Servlet Containers such as [Jetty][] or [Apache Tomcat][]: +This test-case can be used to test the HTTP Path usage. It uses Spring's [RestTemplate][] to assemble and send HTTP requests. The *Server*, on the other hand, is using Spring Integration's HTTP Endpoint configuration. +The provided project itself is a web project and you can build the project using [Gradle][] and deploy the resulting +war under `target/rest-http-*.war` to Servlet Containers such as [Jetty][] or [Apache Tomcat][]: - $ mvn clean verify + $ gradlew :rest-http:build # To run this sample 1. Deploy the project - If you are using [Spring Tool Suite][] (STS) and project is imported as Eclipse project in your workspace you can just execute 'Run on Server' - - You can also run 'mvn clean verify' and generate the WAR file that you can deploy to Servlet Containers + - You can also run **gradlew :rest-http:build** and generate the WAR file that you can deploy to Servlet Containers 2. Run the simple JUnit Test: **org.springframework.integration.samples.rest.RestHttpClientTest** - You may change the URI Variable value in the test to see different results. @@ -79,7 +81,7 @@ They are stored in `src/main/resources/users.properties`. [cURL]: http://en.wikipedia.org/wiki/CURL [Jetty]: http://www.eclipse.org/jetty/ [JUnit]: http://junit.org/ -[Maven]: http://maven.apache.org/ +[Gradle]: http://www.gradle.org [RestTemplate]: http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html [Spring Security]: http://www.springsource.org/spring-security [Spring Tool Suite]: http://www.springsource.org/sts diff --git a/intermediate/splitter-aggregator-reaper/README.md b/intermediate/splitter-aggregator-reaper/README.md index 57de1aba..482d93fc 100644 --- a/intermediate/splitter-aggregator-reaper/README.md +++ b/intermediate/splitter-aggregator-reaper/README.md @@ -9,8 +9,8 @@ Demonstration of how to implement the Splitter/Aggregator [Enterprise Integratio * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line: - - mvn package - - mvn exec:java + + $ gradlew :splitter-aggregator-reaper:run You should see the following output: @@ -47,4 +47,4 @@ http://www.springsource.org/spring-integration [aggregating]: http://static.springsource.org/spring-integration/reference/html/messaging-routing-chapter.html#aggregator [Enterprise Integration Patterns]: http://www.eaipatterns.com/ [message store reaper]: http://static.springsource.org/spring-integration/reference/html/messaging-routing-chapter.html#aggregator-config -[splitting]: http://static.springsource.org/spring-integration/reference/html/messaging-routing-chapter.html#splitter \ No newline at end of file +[splitting]: http://static.springsource.org/spring-integration/reference/html/messaging-routing-chapter.html#splitter diff --git a/intermediate/stored-procedures-derby/README.md b/intermediate/stored-procedures-derby/README.md index b7e17953..f68ab98a 100644 --- a/intermediate/stored-procedures-derby/README.md +++ b/intermediate/stored-procedures-derby/README.md @@ -11,14 +11,14 @@ returns a **ResultSet**. # Setup -Just make sure you have Maven set up and that the project builds successfully. +Just make sure you have Gradle set up and that the project builds successfully. # Run the Sample * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line: - - mvn package - - mvn exec:java + + $ gradlew :stored-procedures-derby:run * Follow the screen (command line) instructions. diff --git a/intermediate/stored-procedures-ms/README.md b/intermediate/stored-procedures-ms/README.md index b10ba4f2..071c9026 100644 --- a/intermediate/stored-procedures-ms/README.md +++ b/intermediate/stored-procedures-ms/README.md @@ -110,8 +110,8 @@ You may have to update the *Microsoft SQL Server* properties in: * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line: - - mvn package - - mvn exec:java + + $ gradlew :stored-procedures-ms:run -------------------------------------------------------------------------------- diff --git a/intermediate/stored-procedures-oracle/README.md b/intermediate/stored-procedures-oracle/README.md index 9c5417ee..b5efa92a 100644 --- a/intermediate/stored-procedures-oracle/README.md +++ b/intermediate/stored-procedures-oracle/README.md @@ -38,6 +38,10 @@ Nevertheless, the example should work with other versions as well. ``` +After that you can run the sample application using [Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html): + + $ gradlew :stored-procedures-oracle:run + ### Common Oracle Setup #### Create Tablespace @@ -119,8 +123,8 @@ END; * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line: - - mvn package - - mvn exec:java + + $ gradlew :stored-procedures-oracle:run You should see the following output: @@ -214,8 +218,8 @@ end; * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line: - - mvn package - - mvn exec:java + + $ gradlew :stored-procedures-oracle:run You should see the following output: diff --git a/intermediate/stored-procedures-postgresql/README.md b/intermediate/stored-procedures-postgresql/README.md index 4be737c8..9d9e0f5a 100644 --- a/intermediate/stored-procedures-postgresql/README.md +++ b/intermediate/stored-procedures-postgresql/README.md @@ -10,10 +10,6 @@ The second procedure returns a **ResultSet**. # Setup -## Maven - -Please make sure you have *Maven* set up and that the project builds successfully using `mvn clean package`. - ## PostgreSQL Please ensure that you can connect to a running instance of a *PostgreSQL server*. The sample was tested using **PostgreSQL v9.2.1**. @@ -80,8 +76,8 @@ Please configure the necessary credentials in order to connect to your database * running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application) * or from the command line: - - mvn package - - mvn exec:java + + $ gradlew :stored-procedures-postgresql:run * Follow the screen (command line) instructions. diff --git a/intermediate/travel/README.md b/intermediate/travel/README.md index 6d648a6a..cc22b6d3 100644 --- a/intermediate/travel/README.md +++ b/intermediate/travel/README.md @@ -46,9 +46,10 @@ This sample uses the [MapQuest API][], specifically the [MapQuest Traffic Web Se ## Running the Sample -To run the sample execute **Main** in package **org.springframework.integration.samples.travel**. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/): +To run the sample execute **Main** in package **org.springframework.integration.samples.travel**. +You can also execute that class using the [Gradle Application Plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html): - $ mvn clean package exec:java -Dmapquest.apikey="your_mapquest_api_key_url_decoded" + $ gradlew :travel:run -Dmapquest.apikey="your_mapquest_api_key_url_decoded" You should see the following output: