{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt-header/issues/8","labels_url":"https://api.github.com/repos/sbt/sbt-header/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-header/issues/8/comments","events_url":"https://api.github.com/repos/sbt/sbt-header/issues/8/events","html_url":"https://github.com/sbt/sbt-header/issues/8","id":57849916,"number":8,"title":"Got error java.lang.NoSuchMethodError: java.nio.file.Files.readAllLines(Ljava/nio/file/Path","user":{"login":"soumyasd","id":272481,"avatar_url":"https://avatars.githubusercontent.com/u/272481?v=3","gravatar_id":"","url":"https://api.github.com/users/soumyasd","html_url":"https://github.com/soumyasd","followers_url":"https://api.github.com/users/soumyasd/followers","following_url":"https://api.github.com/users/soumyasd/following{/other_user}","gists_url":"https://api.github.com/users/soumyasd/gists{/gist_id}","starred_url":"https://api.github.com/users/soumyasd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumyasd/subscriptions","organizations_url":"https://api.github.com/users/soumyasd/orgs","repos_url":"https://api.github.com/users/soumyasd/repos","events_url":"https://api.github.com/users/soumyasd/events{/privacy}","received_events_url":"https://api.github.com/users/soumyasd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-16T20:50:47Z","updated_at":"2015-02-16T22:45:19Z","closed_at":"2015-02-16T22:45:19Z","body":"I get a java.lang.NoSuchMethodError when I try to run on a project on OS-X.\r\nI'm using \r\n\r\n**SBT**\r\nsbt version 0.13.5. \r\n\r\n**JVM**\r\njava version \"1.7.0_45\"\r\nJava(TM) SE Runtime Environment (build 1.7.0_45-b18)\r\nJava HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)\r\n\r\n**Scala** \r\nscalaVersion := \"2.10.4\"\r\n\r\n\r\n\r\n`java.lang.NoSuchMethodError: java.nio.file.Files.readAllLines(Ljava/nio/file/Path;)Ljava/util/List;\r\n\tat de.heikoseeberger.sbtheader.SbtHeader$.de$heikoseeberger$sbtheader$SbtHeader$$createHeader(SbtHeader.scala:78)\r\n\tat de.heikoseeberger.sbtheader.SbtHeader$$anonfun$4$$anonfun$apply$1.apply(SbtHeader.scala:69)\r\n\tat de.heikoseeberger.sbtheader.SbtHeader$$anonfun$4$$anonfun$apply$1.apply(SbtHeader.scala:69)\r\n\tat scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)\r\n\tat scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)\r\n\tat scala.collection.immutable.List.foreach(List.scala:318)\r\n\tat scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)\r\n\tat scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)\r\n\tat de.heikoseeberger.sbtheader.SbtHeader$$anonfun$4.apply(SbtHeader.scala:69)\r\n\tat de.heikoseeberger.sbtheader.SbtHeader$$anonfun$4.apply(SbtHeader.scala:69)\r\n\tat scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)\r\n\tat scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)\r\n\tat scala.collection.immutable.List.foreach(List.scala:318)\r\n\tat scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)\r\n\tat scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)\r\n\tat de.heikoseeberger.sbtheader.SbtHeader$.de$heikoseeberger$sbtheader$SbtHeader$$createHeadersTask(SbtHeader.scala:69)\r\n\tat de.heikoseeberger.sbtheader.SbtHeader$$anonfun$toBeScopedSettings$3.apply(SbtHeader.scala:53)\r\n\tat de.heikoseeberger.sbtheader.SbtHeader$$anonfun$toBeScopedSettings$3.apply(SbtHeader.scala:53)\r\n\tat scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)\r\n\tat sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)\r\n\tat sbt.std.Transform$$anon$4.work(System.scala:64)\r\n\tat sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)\r\n\tat sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)\r\n\tat sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)\r\n\tat sbt.Execute.work(Execute.scala:244)\r\n\tat sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)\r\n\tat sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)\r\n\tat sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)\r\n\tat sbt.CompletionService$$anon$2.call(CompletionService.scala:30)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:744)\r\n[error] (compile:createHeaders) java.lang.NoSuchMethodError: java.nio.file.Files.readAllLines(Ljava/nio/file/Path;)Ljava/util/List;`"},"comment":{"url":"https://api.github.com/repos/sbt/sbt-header/issues/comments/74584213","html_url":"https://github.com/sbt/sbt-header/issues/8#issuecomment-74584213","issue_url":"https://api.github.com/repos/sbt/sbt-header/issues/8","id":74584213,"user":{"login":"soumyasd","id":272481,"avatar_url":"https://avatars.githubusercontent.com/u/272481?v=3","gravatar_id":"","url":"https://api.github.com/users/soumyasd","html_url":"https://github.com/soumyasd","followers_url":"https://api.github.com/users/soumyasd/followers","following_url":"https://api.github.com/users/soumyasd/following{/other_user}","gists_url":"https://api.github.com/users/soumyasd/gists{/gist_id}","starred_url":"https://api.github.com/users/soumyasd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumyasd/subscriptions","organizations_url":"https://api.github.com/users/soumyasd/orgs","repos_url":"https://api.github.com/users/soumyasd/repos","events_url":"https://api.github.com/users/soumyasd/events{/privacy}","received_events_url":"https://api.github.com/users/soumyasd/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T22:45:19Z","updated_at":"2015-02-16T22:45:19Z","body":"Okay looks like this works on Java 8. "}}