Giter VIP home page Giter VIP logo

scala-seed.g8's Introduction

Scala 2 seed template

Template usage

This is a Giter8 template for Scala 2.

sbt new scala/scala-seed.g8

Looking for Scala 3 instead?

That's over at https://github.com/scala/scala3.g8

Template license

Written in 2016-2023 by Lightbend, Inc.

To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this template to the public domain worldwide. This template is distributed without any warranty. See http://creativecommons.org/publicdomain/zero/1.0/.

scala-seed.g8's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scala-seed.g8's Issues

Would it make sense to add a .gitignore in the seed?

Hey folks,

The title is self-descriptive.
I guess that the main problem would be to choose what to include is in the gitignore.
IMHO, it would make sense to include OS and editor related gitignore.

Could we imagine that the generation of the .gitignore is a parameter of the template?

Any thought?
Cheers

Simpler seed

This seed seems too complicated for a minimum sbt project, in the way it sets up the project and dependencies. I suggest changing this template to a minimal-boilerplate version and perhaps creating another that demonstrates more advanced concepts.

Ideally, we would be using this seed as the default template when creating an sbt project from IntelliJ IDEA. I would be happy to contribute appropriate changes if you agree.

Ability to define own organization and organizationName

It would be nice if it would be possible to define own organization and organizationName during project initialisation.

Usually project creation doesn't happen very often, but since this is a basic sbt template I'm using it to create projects for my experiments and I do it a lot. Now I have to rename those fields to my liking and to change package structure for every project I'm creating. Of cause there is several workarounds, but It would be nice if this template would give the ability to define those values during project initialisation and even better to be able to pass them as command line parameters.

Project is broken out of the box...

Output:

ATurner:tvpage aturner$ sbt new sbt/scala-seed.g8

[info] Set current project to tvpage (in build file:/Users/aturner/work/tvpage/)
[info] Set current project to tvpage (in build file:/Users/aturner/work/tvpage/)

A minimal Scala project.

name [Scala Seed Project]:

Template applied in ./scala-seed-project

ATurner:tvpage aturner$ cd ./scala-seed-project/
ATurner:scala-seed-project aturner$ sbt test
[info] Loading project definition from /Users/aturner/work/tvpage/scala-seed-project/project
[info] Updating ProjectRef(uri("file:/Users/aturner/work/tvpage/scala-seed-project/project/"), "scala-seed-project-build")...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/aturner/work/tvpage/scala-seed-project/project/target/scala-2.12/sbt-1.0/classes ...
[info] Done compiling.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/Users/aturner/.sbt/boot/scala-2.12.4/org.scala-sbt/sbt/1.1.1/protobuf-java-3.3.1.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[info] Loading settings from build.sbt ...
[info] Set current project to Hello (in build file:/Users/aturner/work/tvpage/scala-seed-project/)
[info] Updating ...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/aturner/work/tvpage/scala-seed-project/target/scala-2.12/classes ...
[info] Done compiling.
[info] Compiling 1 Scala source to /Users/aturner/work/tvpage/scala-seed-project/target/scala-2.12/test-classes ...
[error] /Users/aturner/work/tvpage/scala-seed-project/src/test/scala/example/HelloSpec.scala:6:22: value should is not a member of String
[error] "The Hello object" should "say hello" in {
[error] ^
[error] /Users/aturner/work/tvpage/scala-seed-project/src/test/scala/example/HelloSpec.scala:7:20: value shouldEqual is not a member of String
[error] Hello.greeting shouldEqual "hello"
[error] ^
[error] two errors found
[error] (Test / compileIncremental) Compilation failed
[error] Total time: 4 s, completed Mar 30, 2018, 2:05:07 PM
ATurner:scala-seed-project aturner$

The already installed version of sbt is not reused

A fixed reference to sbt "0.13.13" is set in the properties file.
Can it be replaced by:
sbt sbtVersion | tail -n 1 | grep -oE '\d+.\d+.\d+'

This way you will not need to download 2 versions of sbt

getting errors while run the example?

Hi,
I am new to sbt.i am installing as per documentation everything is fine but when i run this example i am getting this errors.please suggest what i need to change or anything i missed?

java.lang.RuntimeException: Retrieval of org.scala-sbt.sbt-giter8-resolver:sbt-giter8-resolver:0.1.3 failed.
[error] at scala.sys.package$.error(package.scala:27)
[error] at sbt.TemplateCommandUtil$.classpathForInfo(TemplateCommand.scala:136)
[error] at sbt.TemplateCommandUtil$.infoLoader(TemplateCommand.scala:98)
[error] at sbt.TemplateCommandUtil$.$anonfun$run$1(TemplateCommand.scala:65)
[error] at sbt.TemplateCommandUtil$.$anonfun$run$1$adapted(TemplateCommand.scala:64)
[error] at scala.collection.LinearSeqOptimized.find(LinearSeqOptimized.scala:111)
[error] at scala.collection.LinearSeqOptimized.find$(LinearSeqOptimized.scala:108)
[error] at scala.collection.immutable.List.find(List.scala:86)
[error] at sbt.TemplateCommandUtil$.run(TemplateCommand.scala:64)
[error] at sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:51)
[error] at sbt.TemplateCommandUtil$.$anonfun$templateCommand$2(TemplateCommand.scala:24)
[error] at sbt.Command$.$anonfun$applyEffect$4(Command.scala:134)
[error] at sbt.Command$.$anonfun$applyEffect$2(Command.scala:130)
[error] at sbt.MainLoop$.processCommand(MainLoop.scala:154)
[error] at sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:137)
[error] at sbt.State$$anon$1.runCmd$1(State.scala:242)
[error] at sbt.State$$anon$1.process(State.scala:248)
[error] at sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:137)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.MainLoop$.next(MainLoop.scala:137)
[error] at sbt.MainLoop$.run(MainLoop.scala:130)
[error] at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:108)
[error] at sbt.io.Using.apply(Using.scala:22)
[error] at sbt.MainLoop$.runWithNewLog(MainLoop.scala:102)
[error] at sbt.MainLoop$.runAndClearLast(MainLoop.scala:58)
[error] at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:43)
[error] at sbt.MainLoop$.runLogged(MainLoop.scala:35)
[error] at sbt.StandardMain$.runManaged(Main.scala:113)
[error] at sbt.xMain.run(Main.scala:76)
[error] at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error] at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error] at xsbt.boot.Launch$.run(Launch.scala:109)
[error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error] at xsbt.boot.Launch$.launch(Launch.scala:117)
[error] at xsbt.boot.Launch$.apply(Launch.scala:18)
[error] at xsbt.boot.Boot$.runImpl(Boot.scala:56)
[error] at xsbt.boot.Boot$.main(Boot.scala:18)
[error] at xsbt.boot.Boot.main(Boot.scala)
[error] Retrieval of org.scala-sbt.sbt-giter8-resolver:sbt-giter8-resolver:0.1.3 failed.
[error] Use 'last' for the full log.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.