Commit Graph

999 Commits

Author SHA1 Message Date
John Blum
0a69a3c4e0 Upgrade to Testcontainers 1.13.0. 2020-03-11 00:00:42 -07:00
John Blum
d9f0858a9a Add description of Gradle build file. 2020-03-06 19:03:57 -08:00
John Blum
7318f3c2af Fix broken Guide links referring back to anchors in the index HTML. 2020-03-06 18:59:25 -08:00
John Blum
a631cbdff2 Add commented out configuration to (eventually) generate PDFs for Guides. 2020-03-06 18:25:23 -08:00
John Blum
b72139ac88 Refer to images by location using the 'images-dir' Asciidoc attribute. 2020-03-06 18:25:23 -08:00
John Blum
d6c6582086 Move all Guide images into 'guides/images/'. 2020-03-06 18:10:30 -08:00
John Blum
98b802dd97 Fix broken 'Back to index' link in left nav, table of contents.
Rename 'Back' link to 'Back to Samples'.
2020-03-06 17:41:43 -08:00
John Blum
405114835e Re-arrange the asciidoctor* Gradle build task configurations. 2020-03-06 17:05:11 -08:00
Rob Winch
67a306e0eb Workaround docinfo-footer.html for nested directories.
The default docinfo-footer.html points to a js/ directory. This breaks the reference to JavaScript in nested folders.
To workaround this issue we include a custom docinfo-footer.html that points to '../js'.

See https://github.com/spring-gradle-plugins/spring-build-conventions/issues/80
2020-03-06 17:02:11 -08:00
Rob Winch
a0280fba46 Workaround duplicate adoc files.
guides/*.adoc are copied to guides/*.adoc and ./ when being processed. This breaks links to JavaScript.
To workaround this, we explicitly state which sources we want to process and avoid the copy found in './'.

See https://github.com/spring-gradle-plugins/spring-build-conventions/issues/80
2020-03-06 16:52:56 -08:00
Rob Winch
fb1e56bb92 Ensure Asciidoctor attributes are configured for PDFs too.
In previous versions of the Asciidoctor Gradle Plugin, Asciidoctor was an extension that was read by all Asciidoctor
tasks. This meant that configuring the following impacted all Asciidoctor tasks (including PDF):

asciidoctor {
   attributes ...
}

The latest version of Asciidoctor moved conventions to AsciidoctorJ. The reason for this is there was a task named
'asciidoctor' and a convention named 'asciidoctor' which caused confusion for users on which was being configured.

This commit switches to the new 'asciidoctorj' convention/extension so that attributes are configured for all
Asciidoctor tasks (i.e. both the 'asciidoctor' and 'asciidoctorPdf' tasks).
2020-03-06 16:33:26 -08:00
Rob Winch
3915c3dcc0 Configure asciidoctorPdf for index.adoc.
We only want index.adoc to be processed by asciidoctorPdf so explicitly configure only index.adoc.
2020-03-06 16:33:26 -08:00
Rob Winch
9a7a9b7dad Remove absolute path to stylesheet.
Using an absolute path breaks the css resolution for a few reasons:

a) Locally it is missing because everything is copied into a temporary directory for processing. The temp directory
exists when the HTML is written out, but is removed once processing is done. The output is still referring to
the styles in the temp dir after processing is done.

b) When the HTML is deployed it will refer to the styles on the local directory that the docs were built. When other
users view it on the web server, the dir will not exist.

This commit removes the 'stylesheet' attribute definition to fix this.
2020-03-06 16:33:26 -08:00
Rob Winch
2ad8af578f Fix missing attribute '{apache-geode-docs}'.
The attribute syntax was incorrect and did not have a space after its definition thereby causing the attribute
to not be found.
2020-03-06 16:33:26 -08:00
Rob Winch
08fbdad6c0 Fix possible invalid references.
Guides are processed separately from index.adoc and the includes, so the guides must provide a path to the adoc file
that has the reference.
2020-03-06 16:33:26 -08:00
John Blum
6d2c788021 Move all included adoc files into _includes. 2020-03-06 16:33:26 -08:00
John Blum
6e3a511c38 Define location to stylesheet and JS files as Asciidoc attributes.
Tag guides dir with 'docinfodir'.
2020-03-06 16:33:26 -08:00
John Blum
a9d45b24b4 Define location to the spring.css stylesheet using an absolute path.
Also applied the same approach used in
d8f160c178.

However, this had no effect.
2020-03-06 16:33:26 -08:00
John Blum
52145da1c9 Align Table of Contents (TOC) to the left.
Set TOC level to 2 in Sample Guides.
2020-03-06 16:31:18 -08:00
Rob Winch
e6dbce7925 Customize Gradle Asciidoctor build task to properly identify doc source.
Other Spring Build Conventions based projects assume includes are in _includes but SBDG has includes outside of
_includes. This means we must change the sources to only be 'index.adoc'.

Update docs build to configure every task of type AbstractAsciidoctorTask so that asciidoctorPdf picks up
the custom attributes set and the updated sources.
2020-03-06 16:31:29 -08:00
Rob Winch
9d600cd7c4 Migrate deprecated footnoteref to footnote. 2020-03-06 16:31:18 -08:00
Rob Winch
10d39a4fb4 Upgrade to Spring Build Conventions Gradle Plugin 0.0.31.RELEASE.
0.0.31.RELEASE fixes block switch related issues.

See https://github.com/spring-gradle-plugins/spring-build-conventions/issues/79.
2020-03-06 16:31:18 -08:00
John Blum
9776382472 Update README to refer to 1.2.5.RELEASE and 1.2.6.BUILD-SNAPSHOT versions in reference documentation. 2020-03-04 02:44:57 +01:00
John Blum
003a37a2a4 Update README to refer to 1.1.6.RELEASE and 1.1.7.BUILD-SNAPSHOT versions in reference documentation. 2020-03-04 02:44:04 +01:00
John Blum
9054f641c5 Add 1.2.5.RELEASE notes to the changelog. 2020-03-04 02:42:12 +01:00
John Blum
8de9e0c625 Add 1.1.6.RELEASE notes to the changelog. 2020-03-04 02:41:31 +01:00
John Blum
89075a060a Upgrade to Mockito 3.3.0. 2020-03-03 22:31:23 +01:00
John Blum
5e4f520fb9 Fix typo in changelog. 2020-03-03 22:21:09 +01:00
John Blum
a6b1cb0c8f Upgrade to Spring Framework 5.2.5.BUILD-SNAPSHOT. 2020-03-03 22:19:27 +01:00
John Blum
2f4c8055b4 Fix SDG version in SBDG 1.3.0.M2 release notes.
SDG version in SBDG 1.3.0.M2 should be 2.3.0.M3 and not 2.3.0.M2.
2020-02-24 14:25:33 -08:00
John Blum
340ce779c2 Disable Spring Boot's managed dependency version property overrides. 2020-02-23 18:08:41 -08:00
John Blum
4ae8a27392 Re-organize (reorder) the overridden dependency declarations. 2020-02-23 18:07:45 -08:00
John Blum
59dd9c16d8 Upgrade to Byte Buddy 1.10.8. 2020-02-23 18:06:20 -08:00
John Blum
cc9d6d9673 Update SBDG 1.3.x version to 1.3.0.M2 in Reference Documentation.
Fix reference to Javadoc API in the 1.3.x non-BUILD-SNAPSHOT version (e.g. 1.3.0.M2).
2020-02-23 16:51:05 -08:00
John Blum
0b899a848d Prepare next development iteration.
Set Spring Framework version to 5.2.4.BUILD-SNAPSHOT.

Set Spring Boot version to 2.3.0.BUILD-SNAPSHOT.

Set Spring Data for Apache Geode & Pivotal GemFire version to 2.3.0.BUILD-SNAPSHOT.

Set Spring Data Release Train version to 2.3.0.BUILD-SNAPSHOT.

Set Spring Session for Apache Geode & Pivotal GemFire version to 2.3.0.BUILD-SNAPSHOT.

Set Spring Session BOM version to Dragonfruit-BUILD-SNAPSHOT.

Set version to 1.3.0.BUILD-SNAPSHOT.
2020-02-23 16:26:07 -08:00
John Blum
8148de8deb Release 1.3.0.M2. 2020-02-23 00:05:44 -08:00
John Blum
6edec8cb4c Prepare the 1.3.0.M2 release.
Set Spring Framework version to 5.2.3.RELEASE.

Upgrade to Spring Boot 2.3.0.M2.

Upgrade to Spring Data for Apache Geode & Pivotal GemFire 2.3.0.M3.

Upgrade to Spring Data Release Train Neumann-M3.

Upgrade to Spring Session for Apache Geode & Pivotal GemFire 2.3.0.M2.

Upgrade to Spring Session BOM Dragonfruit-M2.

Upgrade to Spring Test for Apache Geode & Pivotal GemFire 0.0.13.RELEASE.
2020-02-22 23:55:22 -08:00
John Blum
c2fd7f2e52 Edit changelog and add 1.3.0.M2 release notes. 2020-02-22 23:55:10 -08:00
John Blum
665355aa92 Upgrade to FreeFair Lombok Gradle Plugin 5.0.0-rc2. 2020-02-22 23:50:31 -08:00
John Blum
41b050bbb2 Upgrade to Testcontainers 1.12.5. 2020-02-22 23:48:38 -08:00
John Blum
2440fa68a4 Remove unnecessary testCompile dependency on apache-geode-extensions.
apache-geode-extensions is already an optional compile-time dependency.
2020-02-21 20:17:32 -08:00
John Blum
51e7b0e9f9 Remove assertion on the cache instance asserting whether the cache was an instance of o.a.g.internal.cache.GemFireCacheImpl.
Remove assertion on the Region instance asserting whether the Region was an instance of o.a.g.internal.cache.AbstractRegion.

Resolves gh-70.
2020-02-21 20:17:32 -08:00
John Blum
8e88abfebe Add the org.springframework.geode.util.GeodeAssertions abstract class containing assertions for different Apache Geode objects, such as a cache or Region.
GeodeAssertions will help in the effort to remove all uses of internal Apache Geode APIs and restrict all internal Apache Geode API usage to the apache-geode-extensions module.

Resolves gh-70.
2020-02-21 20:17:32 -08:00
John Blum
796f15e876 Change the GeodeConstants abstract class to an interface. 2020-02-21 20:17:32 -08:00
John Blum
d9a9b7d698 Remove use of the org.apache.geode.distributed.internal.DistributionConfig class to refer to the 'gemfire.' property prefix.
Resolves gh-70.
2020-02-21 19:24:52 -08:00
John Blum
295975e73b Remove use of the org.apache.geode.internal.cache.GemFireCacheImpl class to assert the cache instance is a client.
Resolves gh-70.
2020-02-21 19:22:08 -08:00
John Blum
c434873f58 Remove uses of the org.apache.geode.distributed.internal.DistributionConfig interface to refer to configuration property names.
Resolves gh-70.
2020-02-21 19:19:12 -08:00
John Blum
a08f9bb0e8 Remove use of the org.apache.geode.internal.cache.GemFireCacheImpl class to assert the cache instance is not a client.
Resolves gh-70.
2020-02-21 19:19:12 -08:00
John Blum
d266c1c660 Remove uses of the org.apache.geode.management.internal.security.ResourceConstants class to refer to Security constants and properties.
Resolves gh-70.
2020-02-21 19:14:36 -08:00
John Blum
49d5e65a9f Introduce the org.springframework.geode.util.GeodeConstants class to encapsulate common Apache Geode constants used by SBDG.
The GeodeConstants class will help in the effort to remove all uses of internal Apache Geode APIs, isolating all internal Apache Geode API usage to the apache-geode-extensions module.

Resolves gh-70.
2020-02-21 18:52:27 -08:00