From 9d1eed6a8277c8d549ef0abb1be6ca9c08fc5443 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 16 Oct 2017 16:54:19 +0100 Subject: [PATCH] Add script to build contract utils --- README.adoc | 10 ---------- circle.yml | 1 + config/releaser.yml | 3 +++ scripts/build.sh | 4 ++++ 4 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 config/releaser.yml create mode 100755 scripts/build.sh diff --git a/README.adoc b/README.adoc index 01bd8126..1a3039a8 100644 --- a/README.adoc +++ b/README.adoc @@ -114,17 +114,7 @@ following command: The generated eclipse projects can be imported by selecting `import existing projects` from the `file` menu. -==== Importing into Intellij -Spring Cloud projects need a specific version of Maven and a profile enabled. -Intellij 14.1+ requires some configuration to ensure these are setup properly. - 1. Click New, Project from Existing Sources, choose your spring-cloud project directory - 2. Choose Maven, and select Environment Settings. *Ensure you are using Maven 3.3.3* - 3. In the next screen, *Select the profile `spring`* click Next until Finish. - 4. Click Build, Rebuild Project, and you are ready to go! - -==== Importing into other IDEs -Maven is well supported by most Java IDEs. Refer to you vendor documentation. == Contributing diff --git a/circle.yml b/circle.yml index d0f842d6..02016fd5 100644 --- a/circle.yml +++ b/circle.yml @@ -9,6 +9,7 @@ machine: _JAVA_OPTIONS: "-Xms1024m -Xmx2048m" dependencies: override: + - cd spring-cloud-netflix-hystrix-contract && ../mvnw clean install - ./mvnw -s .settings.xml -U --fail-never dependency:go-offline || true test: override: diff --git a/config/releaser.yml b/config/releaser.yml new file mode 100644 index 00000000..20b9f16a --- /dev/null +++ b/config/releaser.yml @@ -0,0 +1,3 @@ +releaser: + maven: + buildCommand: ./scripts/build.sh diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 00000000..9a06ffea --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +(cd spring-cloud-netflix-hystrix-contract && ./mvnw clean install) +./mvnw clean install