From 58cf5f95ca129db69edeb710298e5a750d6bd097 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Wed, 26 Apr 2017 19:25:16 -0400 Subject: [PATCH] Remove Java requirements for Debian/Ubuntu package Ref sbt/sbt#2931 Ref sbt/sbt#3105 Requiring `"openjdk-8-jdk"` prevents sbt 0.13.15 update on Ubuntu 14.04 LTS "Trusty Tahr." Since there seems to be no reasonable way to depend on JDK 6, 7, or 8 without breaking some distro or use case, I'm going to remove the requirement here. --- build.sbt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 22eb6b40c..9cdb405db 100644 --- a/build.sbt +++ b/build.sbt @@ -78,7 +78,9 @@ val root = (project in file(".")). }, // DEBIAN SPECIFIC version in Debian := sbtVersionToRelease, - debianPackageDependencies in Debian ++= Seq("openjdk-8-jdk", "bash (>= 3.2)"), + // Used to have "openjdk-8-jdk" but that doesn't work on Ubuntu 14.04 https://github.com/sbt/sbt/issues/3105 + // before that we had java6-runtime-headless" and that was pulling in JDK9 on Ubuntu 16.04 https://github.com/sbt/sbt/issues/2931 + debianPackageDependencies in Debian ++= Seq("bash (>= 3.2)"), debianPackageRecommends in Debian += "git", linuxPackageMappings in Debian += { val bd = sourceDirectory.value