Skip to content

Releases: avast/gradle-docker-compose-plugin

isRequiredBy now supports also TaskProvider (instead of Task)

18 Nov 12:43
Compare
Choose a tag to compare
0.10.1

isRequiredBy overload accepting TaskProvider instead of Task Fixes #208

Task Configuration Avoidance API used

15 Nov 12:58
Compare
Choose a tag to compare

This release requires Gradle 4.9 or higher because it uses Task Configuration Avoidance feature that improves build times when some of the tasks are not actually used.

forceRecreate behavior changed

20 Sep 12:51
Compare
Choose a tag to compare

Also --renew-anon-volumes switch is added to docker-compose up command.

includeDependencies parameter

05 May 10:57
83b092e
Compare
Choose a tag to compare

A new parameter includeDependencies introduced (as requested in #190). This release also removes removeDependents parameter - use includeDependencies instead.

Daemon thread interrupted after build

26 Apr 21:24
Compare
Choose a tag to compare

removeDependents option added

15 Apr 11:59
Compare
Choose a tag to compare

It allows to remove also services that are not explicitly started (but are defined as dependencies of the started ones).

Compatibility fix for Gradle 4.x

28 Feb 22:15
Compare
Choose a tag to compare

Fixes incompatibility with Gradle 4.x introduced in 0.9.0 release.

Implementation details

The plugin uses @Immutable annotation that generates a code that uses ImmutableASTTransformation class from Groovy library.
When compiling for Gradle 5+ (so Groovy 2.5+) then the generated code uses a new method that was added in Groovy 2.5. Therefore this method is not available in Groovy 2.4, so in Gradle 4.x. You can observe errors like this:

Execution failed for task ':composeUp'. groovy.lang.MissingMethodException: No signature of method: static org.codehaus.groovy.transform.ImmutableASTTransformation.checkImmutable() is applicable for argument types: (java.lang.Class, java.lang.String, com.avast.gradle.dockercompose.ServiceHostType, java.util.ArrayList, java.util.ArrayList) values: [class com.avast.gradle.dockercompose.ServiceHost, type, NetworkGateway, ...]
Possible solutions: checkImmutable(java.lang.Class, java.lang.String, java.lang.Object), checkImmutable(java.lang.String, java.lang.String, java.lang.Object)

So we disabled the @Immutable annotations because we want to support also Gradle 4.x users.
We could uncomment them if one of these conditions were met:

  1. Groovy of the latest Gradle fixes this forward compatibility.
  2. There is almost no users of Gradle 4.x.

Gradle 5.2.1

26 Feb 14:46
Compare
Choose a tag to compare

Test dependencies updated and few tests adjusted.

Support for --no-recreate flag

08 Feb 11:41
Compare
Choose a tag to compare
0.8.14

minor compile-time dependencies updates

projectName property is not ignored anymore

17 Jan 16:06
Compare
Choose a tag to compare
0.8.13

projectName property is not ignored anymore