Commit Graph

922 Commits

Author SHA1 Message Date
John Blum
bbe8ff65e0 Add CompositeAppender Logback Appender implementation to compose multiple Appenders as a single Appender.
Resolve gh-73.
2020-02-12 08:14:02 -08:00
John Blum
99cff21c17 Add default name for DelegatingAppender.
Resolves gh-73.
2020-02-11 19:25:04 -08:00
John Blum
21cc8e6c4b Add Smoke Tests for the 'spring-geode-starter-logging' module.
Resolves gh-73.
2020-02-11 19:16:55 -08:00
John Blum
3a347ba365 Add test case asserting the Spring ApplicationContext loads and is of the expected type. 2020-02-10 20:34:47 -08:00
John Blum
a40c66d015 Remove deprecated SDG @EnableLogging annotation from the GeodeConfiguration class.
Edit Javadoc.

Formate source code.

Optimize imports.
2020-02-10 20:30:05 -08:00
John Blum
eaf8bd4930 Add testRuntime dependency on 'spring-geode-starter-test'. 2020-02-10 20:24:26 -08:00
John Blum
a87194cb87 Change IllegalStateException message in AbstractLoggingIntegrationTests.configureLogging() method to properly reflect intent.
Call TestAppender.stop() in addition to clear() in the test tearDown() method.

Resolves gh-73.
2020-02-10 20:23:30 -08:00
John Blum
278ce513c0 Set (as default) root Logger log level to 'INFO'.
Resolves gh-73.
2020-02-10 20:23:25 -08:00
John Blum
0002534140 Add Unit and Integration Tests for the 'spring-geode-starter-logging' module log configuration and logging provider (i.e. SLF4J/Logback) extensions.
Resolves gh-73.
2020-02-10 20:23:19 -08:00
John Blum
85d630c34e Refactor the 'spring-geode-starter-logging' module provided logback.xml file to use templates (includes).
Moved the declared Appenders and Loggers from logback.xml to a new logback-include.xml file making it easier to compose Logback (XML) configuration files using templates, or includes.  This is particularly useful during Integration Testing where logback-test.xml files can be composed with different templates/includes.

Resolves gh-73.
2020-02-10 20:23:13 -08:00
John Blum
269b60bdc6 Provide DelegatingAppender class to allow SLF4J logging provider Appenders to be injected [programmatically] at configuration/runtime.
This is very useful in Integration Tests where the test class needs to assert log statements in infrastructure, system, framework or application code.

Resolves gh-73.
2020-02-10 20:23:07 -08:00
John Blum
0e3ac202a7 Explicitly declare Logback as the logging provider.
Add the 'spring-geode-starter-test' module as a testRuntime dependency in order to write Unit and Integration Tests for this 'spring-geode-starter-logging' module.

Resolves gh-73.
2020-02-10 20:23:02 -08:00
John Blum
c023a22455 Add new 'spring-geode-starter-logging' and 'spring-gemfire-starter-logging' modules.
The new modules enable logging output to be rendered for both Apache Geode & Pivotal GemFire given the right configuration now that the SDG @EnableLogging annotaiton is effectively deprecated since the corresponding GemFire/Geode properties (i.e. gemfire.log-level) no longer have any effect.

Resolves gh-73.
2020-02-10 20:22:56 -08:00
John Blum
f21900d0c8 Cleanup compiler warnings.
Apply wildcard generic type signature to PropertySource object reference in order to avoid the rawtype usage warning.

Annotate ClusterAwareCondition.match(..) and ClusterAwareCondition.getConfiguredConnectionEndpoints(..) with @SuppressWarnings.
2020-02-04 15:53:00 -08:00
John Blum
0804ca0e32 Upgrade to Spring Data Release Train Neumann-BUILD-SNAPSHOT.
This aligns SBDG 1.3.0.BUILD-SNAPSHOT with Spring Boot 2.3.0.BUILD-SNAPSHOT's current Spring Data dependency version.
2020-02-04 15:53:00 -08:00
John Blum
58b06425e3 Add finer grained dependency management for both Spring Data Geode and Spring Data GemFire.
This allows the SBDG project to independently control the Spring Data for Apache Geode & Pivotal GemFire transitive dependencies separately from the other Spring Data Modules in the Spring Data Release Train, which are either 1) determined by Spring Boot or 2) the springDataReleaseTrainVersion property.  This allows SDG 2.3.0.BUILD-SNAPSHOT to be used while maintaining the Spring Data Release Train 2.3.0.M1 version as used by Spring Boot, for example.
2020-01-27 14:22:03 -08:00
John Blum
5dc4a9a107 Sync Spring Data Release Train version with Spring Boot.
Changes SBDG's transitivity dependency on the Spring Data Release Train (along with the related SD Modules) to match the transitive dependency version of the Spring Data Release Train that Spring Boot declares based on the version of Sring Boot for which SBDG is based.
2020-01-27 14:19:23 -08:00
John Blum
8b054036c8 Update README with 1.3.0.M1 version in the reference documentation.
Update README with 1.2.4.RELEASE and 1.2.5.BUILD-SNAPSHOT versions in the reference documentation.

Update README with 1.1.5.RELEASE and 1.1.6.BUILD-SNAPSHOT versions in the reference documentation.
2020-01-24 22:39:22 -08:00
John Blum
7aa029e51b Prepare next development iteration.
Set version to 1.3.0.BUILD-SNAPSHOT.

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 Neumann-BUILD-SNAPSHOT.

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

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

Set Spring Test for Apache Geode & Pivotal GemFire version to 0.0.13.NEUMANN-BUILD-SNAPSHOT.

Override dependency versions for Spring Framework, Spring Data and Spring Session in build.gradle using ext properties.
2020-01-24 22:25:01 -08:00
John Blum
6eb4c52d93 Release 1.3.0.M1. 2020-01-24 22:09:32 -08:00
John Blum
ca0c31b80b Disable all dependency version overrides.
Set Spring Test for Apache Geode & Pivotal GemFire version to 0.0.12.RELEASE.
2020-01-24 22:02:37 -08:00
John Blum
d96d608c99 Update changelog with 2.3.0.M1 release notes. 2020-01-24 21:50:26 -08:00
John Blum
3f261f40c1 Prepare to release 1.3.0.M1.
Set Spring Framework version to 5.2.3.RELEASE.

Set Spring Boot version to 2.3.0.M1.

Set Spring Data for Apache Geode & Pivotal GemFire version to 2.3.0.M2.

Set Spring Data Release Train version to Neumann-M2.

Set Spring Session for Apache Geode & Pivotal GemFire version to 2.3.0.M1.

Set Spring Session BOM version to Corn-RELEASE.

Set Spring Test for Apache Geode & Pivotal GemFire version to 0.0.13.NEUMANN-BUILD-SNAPSHOT.
2020-01-24 21:43:12 -08:00
John Blum
827cddb372 Update changelog with 1.2.4.RELEASE notes. 2020-01-24 21:29:16 -08:00
John Blum
c1faa1b2ec Update changelog with 1.2.3.RELEASE notes. 2020-01-24 21:27:52 -08:00
John Blum
36f6392767 Update changelog with 1.1.5.RELEASE notes. 2020-01-24 21:26:40 -08:00
John Blum
b45431fd53 Optimize imports. 2020-01-24 21:17:09 -08:00
John Blum
c5d4e643b2 Upgrade to Spring Test for Apache Geode & Pivotal GemFire 0.0.13.BUILD-SNAPSHOT. 2020-01-24 21:14:56 -08:00
John Blum
661c73a9c5 Upgrade to ByteBuddy 1.10.5. 2020-01-24 21:12:16 -08:00
John Blum
431284dde5 Upgrade to Mockito 3.2.4. 2020-01-24 21:10:19 -08:00
John Blum
803e883686 Remove Gradle build min JVM Heap memory requirement (512m).
Remove Gradle build max JVM Metaspace size requirement of 512m.

Remove Gradle build JVM Heap Dump on OutOfMemoryErrors.
2020-01-24 21:09:01 -08:00
John Blum
952b7554ab Remove use of internal Apache Geode API o.a.g.internal.concurrent.ConcurrentHashSet class.
Replace with java.util.HashSet wrapped with java.util.Collections.synchronizedSet(:Set).

Resolve gh-70.
2020-01-24 21:07:48 -08:00
John Blum
ecb7b5db80 Change 'provided' (compile-time) dependency on 'org.apache.geode:geode-log4j' to 'org.apache.geode:geode-logging'. 2020-01-24 21:06:38 -08:00
John Blum
901fce5f7e Do first revision (review and refactoring) of Apache Geode's Actuator support and HealthIndicators in order to adapt to Spring Boot's new HealthContributor API. 2020-01-22 17:07:21 -08:00
John Blum
4e492ad089 Upgrade the WAR file containing the old Management (Admin) REST API from Apache Geode 1.9.2 to 1.11.0. 2020-01-22 15:13:44 -08:00
John Blum
6a9513c642 Add 'org.apache.geode:geode-http-service' as testRuntime dependency to enable the embedded Apache Geode HTTP service/HTTP server (using Jetty).
This will in turn configure and bootstrap the Management/Admin REST API required by the cluster configuration push functionality in SDG/SBDG.
2020-01-22 15:11:09 -08:00
John Blum
8e95e0ba3c Add 'org.apache.geode:geode-web' as testRuntime dependency containing the old Apache Geode Management/Admin REST API service and endpoints. 2020-01-22 15:08:49 -08:00
John Blum
ca0ee8ff31 Add 'jakarta.servlet:jakarta.servlet-api' testCompile dependency to resolve the Javax Servlet API in HTTP-based, Servlet Webapp Integration Tests. 2020-01-22 13:48:35 -08:00
John Blum
97bff7713f Ignore any generated deps TXT files listing the project dependency tree, or dependencies. 2020-01-22 13:29:24 -08:00
John Blum
ddafaafe56 Fix tests failures in the Apache Geode, Inline Caching support Integration Tests involving Apache Cassandra due to the DataStax 4.x Driver upgrade in Spring Data Neumann/2.3. 2020-01-22 12:39:12 -08:00
John Blum
465ea7081b Upgrade to Spring Data Release Train Neumann.
Upgrade to Spring Data for Apache Geode & Pivotal GemFire 2.3.0.BUILD-SNAPSHOT.

Upgrade to Apache Geode 1.11.0.

Upgrade to Pivotal GemFire 9.9.1.
2020-01-22 12:39:12 -08:00
John Blum
395c27db8f Format source code. 2020-01-22 12:39:12 -08:00
John Blum
46157120f7 Add 'provided' (compile-time) dependencies on org.apache.geode:geode-log4j and org.apache.geode:geode-serialization.
Note, these dependency declarations are unfortunately necessary due to SBDG's use of Apache Geode internal APIs.  I have filed an Issue ticket (https://github.com/spring-projects/spring-boot-data-geode/issues/70) with SBDG to remove all uses of internal Apache Geode APIs.
2020-01-22 12:39:12 -08:00
John Blum
0dbf2cdad1 Change references to the deprecated (since 2.2.x), non-existing (since 2.3) o.s.boot.actuate.autoconfigure.health.HealthIndicatorAutoConfiguration class to o.s.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration. 2020-01-16 18:56:19 -08:00
John Blum
7031b15fcf Adapt to API changes in Spring Data for Apache Cassandra Neumann/2.3. 2020-01-16 18:56:19 -08:00
John Blum
a26083410e Upgrade to Gradle 6.0.1. 2020-01-16 18:56:19 -08:00
John Blum
924b1d7f89 Upgrade to Lombok Gradle Plugin 4.1.6. 2020-01-16 18:56:19 -08:00
John Blum
6f5fda6641 Upgrade to TestContainers 1.12.3. 2019-12-13 09:05:22 -08:00
John Blum
6da1e511fb Update Spring dependency build snapshots.
Set Spring Data for Apache Geode & Pivotal GemFire version to 2.2.4.BUILD-SNAPSHOT.

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

Set Spring Test for Apache Geode & Pivotal GemFire version to 0.0.12.BUILD-SNAPSHOT.
2019-12-13 09:04:31 -08:00
John Blum
f895a0974a Add reference documentation entry for 1.3. 2019-12-13 08:42:47 -08:00