From 1ef8390791991ede7307ceff8951d1ad4bdd873c Mon Sep 17 00:00:00 2001 From: John Blum Date: Fri, 22 Jun 2018 14:44:22 -0700 Subject: [PATCH] Move section on using Spring Boot for Apache Geode/Pivotal GemFire, Maven and Gradle build configuration to index.adoc. --- spring-geode-docs/spring-geode-docs.gradle | 5 +- .../asciidoc/clientcache-applications.adoc | 30 +----- .../src/docs/asciidoc/index.adoc | 93 ++++++++++++++++++- 3 files changed, 99 insertions(+), 29 deletions(-) diff --git a/spring-geode-docs/spring-geode-docs.gradle b/spring-geode-docs/spring-geode-docs.gradle index 7d738488..c7980b1e 100644 --- a/spring-geode-docs/spring-geode-docs.gradle +++ b/spring-geode-docs/spring-geode-docs.gradle @@ -25,11 +25,12 @@ asciidoctor { def githubTag = snapshotBuild ? 'master' : project.version def githubUrl = "$githubBaseUrl/tree/$githubTag" - attributes 'version-snapshot': snapshotBuild, + attributes 'version' : project.version, + 'version-snapshot': snapshotBuild, 'version-milestone': milestoneBuild, 'version-release': releaseBuild, - 'github-url': githubUrl, 'download-url' : "${githubBaseUrl}/archive/${githubTag}.zip", + 'github-url': githubUrl, 'spring-version' : versions['org.springframework:spring-core'], 'spring-boot-version' : "${springBootVersion}", 'spring-boot-data-geode-version' : project.version, diff --git a/spring-geode-docs/src/docs/asciidoc/clientcache-applications.adoc b/spring-geode-docs/src/docs/asciidoc/clientcache-applications.adoc index a2d7464e..224d42c4 100644 --- a/spring-geode-docs/src/docs/asciidoc/clientcache-applications.adoc +++ b/spring-geode-docs/src/docs/asciidoc/clientcache-applications.adoc @@ -7,33 +7,11 @@ simply by putting either Spring Boot for Apache Geode or Pivotal GemFire on your It is assumed that most developers using Spring Boot to build applications backed by either Apache Geode or Pivotal GemFire will be building Spring cache client applications in Apache Geode/Pivotal GemFire's -{apache-geode-docs}/topologies_and_comm/cs_configuration/chapter_overview.html[Client/Server Configuration] -and topology. This is the most common and traditional arrangement employed in most application system architectures. +{apache-geode-docs}/topologies_and_comm/cs_configuration/chapter_overview.html[Client/Server configuration] +and topology. This is the most common and traditional arrangement employed by most application system architectures. -For example, declare the `spring-geode-starter` on your application classpath: - -.Maven -[source,xml] ----- - - - org.springframework.geode - spring-geode-starter - {spring-boot-data-geode-version} - - + + org.springframework.geode + spring-geode-starter + {spring-boot-data-geode-version} + + + + spring-snapshot + https://repo.spring.io/libs-snapshot + + +---- + +If you are using _Gradle_, include the following `repository` declaration in your `build.gradle`: + +.Gradle +[source,gradle] +---- +repositories { + maven { url: 'https://repo.spring.io/libs-snapshot' } +} +---- +endif::[] + +ifeval::["{version-milestone}" == "true"] +Since we are using a Milestone version, we need to add the _Spring_ Milestone Maven Repository. +If you are using _Maven_, include the following `repository` declaration in your `pom.xml`: + +.Maven +[source,xml] +---- + + + spring-milestone + https://repo.spring.io/libs-milestone + + +---- + +If you are using _Gradle_, include the following `repository` declaration in your `build.gradle`: + +.Gradle +[source,gradle] +---- +repositories { + maven { url: 'https://repo.spring.io/libs-milestone' } +} +endif::[] + include::clientcache-applications.adoc[] include::caching.adoc[] include::repositories.adoc[] +include::functions.adoc[]