From 9230ce39d02daa8d208eabf6580232488bd9cd9e Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Wed, 15 Jan 2020 15:14:52 -0600 Subject: [PATCH] Restore previous methods as deprecated for compatibility issues --- .../com/typesafe/sbt/packager/docker/DockerSupport.scala | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/scala/com/typesafe/sbt/packager/docker/DockerSupport.scala b/src/main/scala/com/typesafe/sbt/packager/docker/DockerSupport.scala index ca3ea7fdb..380ac0dd5 100644 --- a/src/main/scala/com/typesafe/sbt/packager/docker/DockerSupport.scala +++ b/src/main/scala/com/typesafe/sbt/packager/docker/DockerSupport.scala @@ -2,6 +2,14 @@ package com.typesafe.sbt.packager.docker object DockerSupport { + @deprecated + def chownFlag(version: DockerVersion): Boolean = + (version.major == 17 && version.minor >= 9) || version.major > 17 + + @deprecated + def multiStage(version: DockerVersion): Boolean = + (version.major == 17 && version.minor >= 5) || version.major > 17 + def chownFlag(version: DockerVersion, apiVersion: DockerApiVersion): Boolean = ((version.major == 17 && version.minor >= 9) || version.major > 17) || (apiVersion.major == 1 && apiVersion.minor >= 32)