Skip to content

Sbt Setting for package name  #64

Open

Description

@trentio

I was looking around for some way to set the package name in the build.sbt file instead of having to rely on the file structure of the templates. It would be nice if you could set a package prefix that would be appended to the beginning of the file structure name.

Activity

  1. jroper commented on Feb 3, 2015

    @jroper
    Member

    I don't really like this idea - since Scala templates are a DSL with a straight forward translation to Scala, we should consider features like this in the same vein as Scala source files, would you also have an sbt setting that prefixes package names from Scala source files? I don't think so. Perhaps we could support an @package directive at the start of the file, but I think using the directory structure by default makes sense since matching directory structure to package structure is a convention that's used (and in the case of Java, enforced) for all JVM languages anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions