{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/sbt-header/issues/13","labels_url":"https://api.github.com/repos/sbt/sbt-header/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-header/issues/13/comments","events_url":"https://api.github.com/repos/sbt/sbt-header/issues/13/events","html_url":"https://github.com/sbt/sbt-header/issues/13","id":62376945,"number":13,"title":"Using sbt-header in scala sbt build","user":{"login":"pierre-borckmans","id":5610359,"avatar_url":"https://avatars.githubusercontent.com/u/5610359?v=3","gravatar_id":"","url":"https://api.github.com/users/pierre-borckmans","html_url":"https://github.com/pierre-borckmans","followers_url":"https://api.github.com/users/pierre-borckmans/followers","following_url":"https://api.github.com/users/pierre-borckmans/following{/other_user}","gists_url":"https://api.github.com/users/pierre-borckmans/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-borckmans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-borckmans/subscriptions","organizations_url":"https://api.github.com/users/pierre-borckmans/orgs","repos_url":"https://api.github.com/users/pierre-borckmans/repos","events_url":"https://api.github.com/users/pierre-borckmans/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-borckmans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-17T12:01:08Z","updated_at":"2015-03-18T16:34:31Z","closed_at":null,"body":"Hi there,\r\nI'm trying to use this nice plugin with a full scala sbt definition (`build.scala`, not `build.sbt`).\r\n\r\nIn order to be able to define the `headers` map, I had to import the following:\r\n```\r\nimport de.heikoseeberger.sbtheader.SbtHeader.autoImport._\r\nimport de.heikoseeberger.sbtheader.SbtHeader.HeaderPattern\r\n```\r\n\r\nI then define the `headers` map in my project settings:\r\n```\r\n  lazy val core: Project =\r\n    Project(id, file(base))\r\n      .settings(\r\n        // SbtHeader settings\r\n        headers := Map(\r\n          \"scala\" -> (\r\n            (HeaderPattern.cStyleBlockComment,\r\n              \"\"\"|/*\r\n                 | * Test header\r\n                 | */\r\n                 |\r\n              \"\"\".stripMargin\r\n            )\r\n          )\r\n        )\r\n      )\r\n```\r\n\r\nI am then able to create the headers interactively in sbt:\r\n```\r\n$ sbt\r\n> createHeaders\r\n```\r\n\r\nHowever, I cannot get this task to be automatically executed with the `compile` and `test` tasks.\r\n\r\nCould you please add an example on how to use your plugin correctly in a `build.scala` build definition?"},"comment":{"url":"https://api.github.com/repos/sbt/sbt-header/issues/comments/83049001","html_url":"https://github.com/sbt/sbt-header/issues/13#issuecomment-83049001","issue_url":"https://api.github.com/repos/sbt/sbt-header/issues/13","id":83049001,"user":{"login":"pierre-borckmans","id":5610359,"avatar_url":"https://avatars.githubusercontent.com/u/5610359?v=3","gravatar_id":"","url":"https://api.github.com/users/pierre-borckmans","html_url":"https://github.com/pierre-borckmans","followers_url":"https://api.github.com/users/pierre-borckmans/followers","following_url":"https://api.github.com/users/pierre-borckmans/following{/other_user}","gists_url":"https://api.github.com/users/pierre-borckmans/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-borckmans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-borckmans/subscriptions","organizations_url":"https://api.github.com/users/pierre-borckmans/orgs","repos_url":"https://api.github.com/users/pierre-borckmans/repos","events_url":"https://api.github.com/users/pierre-borckmans/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-borckmans/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T16:34:31Z","updated_at":"2015-03-18T16:34:31Z","body":"1/ I've been using Scalariform for a very long time and it never removed the newlines. This only happened since I'm using sbt-header. Is it a combination of both then?\r\n\r\n2/ I do use `HeaderPattern.cStyleBlockComment` with an empty string, waiting for our project to get its official header. What should I use instead? (for the moment I disabled the auto plugin on compile)"}}