diff --git a/multi/multi__spring_cloud_release_tools.html b/multi/multi__spring_cloud_release_tools.html index 7b6b761c..283b595a 100644 --- a/multi/multi__spring_cloud_release_tools.html +++ b/multi/multi__spring_cloud_release_tools.html @@ -100,7 +100,11 @@ a project name. E.g. in gradle.properties you have be set there. Just provide a mapping for the gradle-props-substition looking like this foo=spring-cloud-contract and the result (e.g for sc-contract version 2.0.0.RELEASE) will be an updated gradle.properties with entry foo=2.0.0.RELEASE
  • releaser.pom.branch - Which branch of Spring Cloud Release should be checked out. Defaults to "master",
  • releaser.pom.ignored-pom-regex - List of regular expressions of ignored poms. Defaults to test projects and samples.,
  • releaser.working-dir - By default Releaser assumes running the program from the current working directory.
  • [Tip]Tip

    You can pass the options either via system properties or via application arguments. Example for system properties: java -Dreleaser.pom.branch=Camden.SR6 -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar -Example for application argumemts: java -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar --releaser.pom.branch=Camden.SR6

    1.6 Examples

    1.6.1 Keeping configuration in the project

    If your project has some custom configuration (e.g. Spring Cloud Contract needs a script to be executed +Example for application argumemts: java -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar --releaser.pom.branch=Camden.SR6

    [Important]Important

    For the GA release to be successful, it’s important that if the build / deploy command + run a script (e.g. scripts/foo.sh) then inside foo.sh if you call a Maven build ./mvnw clean install + then remember to pass all arguments of the script there too. E.g. ./mvnw clean install ${@}. That’s because + the releaser will pass any system properties to the build / deploy command, such as system properties + with keys and we need them to be passed inside the command executed by the releaser.

    1.6 Examples

    1.6.1 Keeping configuration in the project

    If your project has some custom configuration (e.g. Spring Cloud Contract needs a script to be executed to build the project and properly merge the docs) then you can put a file named e.g. releaser.yml under config folder and run your application like this:

    $ wget http://repo.spring.io/libs-milestone/org/springframework/cloud/internal/spring-cloud-release-tools-spring/1.0.0.M1/spring-cloud-release-tools-spring-1.0.0.M1.jar -O ../spring-cloud-release-tools-spring-1.0.0.M1.jar
     $ java -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar --spring.config.name=releaser
    [Tip]Tip

    Notice that we’re downloading the jar to a parent folder, not to target. That’s because target get cleaned diff --git a/single/spring-cloud-release-tools.html b/single/spring-cloud-release-tools.html index 7c9b678c..fe43248e 100644 --- a/single/spring-cloud-release-tools.html +++ b/single/spring-cloud-release-tools.html @@ -100,7 +100,11 @@ a project name. E.g. in gradle.properties you have be set there. Just provide a mapping for the gradle-props-substition looking like this foo=spring-cloud-contract and the result (e.g for sc-contract version 2.0.0.RELEASE) will be an updated gradle.properties with entry foo=2.0.0.RELEASE

  • releaser.pom.branch - Which branch of Spring Cloud Release should be checked out. Defaults to "master",
  • releaser.pom.ignored-pom-regex - List of regular expressions of ignored poms. Defaults to test projects and samples.,
  • releaser.working-dir - By default Releaser assumes running the program from the current working directory.
  • [Tip]Tip

    You can pass the options either via system properties or via application arguments. Example for system properties: java -Dreleaser.pom.branch=Camden.SR6 -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar -Example for application argumemts: java -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar --releaser.pom.branch=Camden.SR6

    1.6 Examples

    1.6.1 Keeping configuration in the project

    If your project has some custom configuration (e.g. Spring Cloud Contract needs a script to be executed +Example for application argumemts: java -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar --releaser.pom.branch=Camden.SR6

    [Important]Important

    For the GA release to be successful, it’s important that if the build / deploy command + run a script (e.g. scripts/foo.sh) then inside foo.sh if you call a Maven build ./mvnw clean install + then remember to pass all arguments of the script there too. E.g. ./mvnw clean install ${@}. That’s because + the releaser will pass any system properties to the build / deploy command, such as system properties + with keys and we need them to be passed inside the command executed by the releaser.

    1.6 Examples

    1.6.1 Keeping configuration in the project

    If your project has some custom configuration (e.g. Spring Cloud Contract needs a script to be executed to build the project and properly merge the docs) then you can put a file named e.g. releaser.yml under config folder and run your application like this:

    $ wget http://repo.spring.io/libs-milestone/org/springframework/cloud/internal/spring-cloud-release-tools-spring/1.0.0.M1/spring-cloud-release-tools-spring-1.0.0.M1.jar -O ../spring-cloud-release-tools-spring-1.0.0.M1.jar
     $ java -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar --spring.config.name=releaser
    [Tip]Tip

    Notice that we’re downloading the jar to a parent folder, not to target. That’s because target get cleaned diff --git a/spring-cloud-release-tools.xml b/spring-cloud-release-tools.xml index 4981879c..56d246a9 100644 --- a/spring-cloud-release-tools.xml +++ b/spring-cloud-release-tools.xml @@ -4,7 +4,7 @@ Spring Cloud Release Tools -2017-11-21 +2017-11-22 Spring Cloud Release Tools @@ -277,6 +277,13 @@ be set there. Just provide a mapping for the gradle-props-substitionjava -Dreleaser.pom.branch=Camden.SR6 -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar Example for application argumemts: java -jar target/spring-cloud-release-tools-spring-1.0.0.M1.jar --releaser.pom.branch=Camden.SR6 + +For the GA release to be successful, it’s important that if the build / deploy command + run a script (e.g. scripts/foo.sh) then inside foo.sh if you call a Maven build ./mvnw clean install + then remember to pass all arguments of the script there too. E.g. ./mvnw clean install ${@}. That’s because + the releaser will pass any system properties to the build / deploy command, such as system properties + with keys and we need them to be passed inside the command executed by the releaser. +

    Examples