Skip to content

Latest commit

 

History

History
112 lines (88 loc) · 2.86 KB

UPGRADING-5.0.md

File metadata and controls

112 lines (88 loc) · 2.86 KB

Upgrade guide: 4.x -> 5.0

  1. The com.avast.gradle.docker-compose plugin is no longer automatically applied. You have to apply the eu.xenit.docker-compose plugin when you need composeUp and composeDown tasks.

    Old New
    plugins {
        id "eu.xenit.docker-alfresco" version "4.1.2"
    }
    plugins {
       id "eu.xenit.docker-alfresco" version "5.0.0"
       id "eu.xenit.docker-compose" version "5.0.0"
    }
    apply plugin: "eu.xenit.docker-alfresco"
    apply plugin: "eu.xenit.docker-alfresco"
    apply plugin: "eu.xenit.docker-compose"
    plugins {
        id "eu.xenit.docker" version "4.1.2"
    }
    plugins {
       id "eu.xenit.docker" version "5.0.0"
       id "eu.xenit.docker-compose" version "5.0.0"
    }
    apply plugin: "eu.xenit.docker"
    apply plugin: "eu.xenit.docker"
    apply plugin: "eu.xenit.docker-compose"
  2. Configuration and tasks now use Gradle Property<>. This usually does not affect your build.gradle, but if you explicitly call getters instead of accessing as a property, keep in mind that the return type has changed. Because Property<> is now used, setters have been removed. Instead of using setFoo(bla), you should now use getFoo().set(bla).

  3. Automatic tagging has been disabled by default. You can re-enable automatic tagging based on branch name and build number by using:

    dockerAlfresco {
        dockerBuild {
            automaticTags = true
        }
    }
  4. resolveAlfrescoWar and resolveShareWar tasks have been renamed to stripAlfrescoWar and stripShareWar.

  5. gradle-docker-plugin has been upgraded from 4.6.2 to 6.1.1. This should not affect basic usage, but may break more advanced usecases. See the breaking changes in the changelog there.

  6. The pushTag* tasks that allow to push individual tags have been removed. Use pushDockerImage to push all tags of the docker image.

  7. Gradle task classes have been moved out of the eu.xenit.gradle.tasks package

    • DockerfileWithCopyTask has moved to eu.xenit.gradle.docker.tasks.DockerfileWithCopyTask
    • Other tasks have been moved to the eu.xenit.gradle.docker.alfresco.tasks package