Questions tagged [giter8]

Giter8 is a command line tool to apply templates defined on github

Giter8 is a command line tool to generate files and directories from templates published on github or any other git repository. It's implemented in Scala and runs through the Simple Build Tool launcher, but it can produce output for any purpose.

30 questions
10
votes
1 answer

Is .g8 directory necessary?

I've initialized a project with my build tool as follows sbt new playframework/play-scala-seed.g8 Which correctly generated the project from the template I wanted. My only problem is that there's now a .g8 directory under my project By peeking…
JSelser
  • 3,510
  • 1
  • 19
  • 40
9
votes
3 answers

Auth fail when running `sbt new`

Here's a transcript so far: $ sbt new lagom/lagom-scala.g8 [info] Loading global plugins from /Users/abrahma/.sbt/1.0/plugins [info] Set current project to lagomlife (in build file:/Users/abrahma/Bitbucket/Practice-Scala/LagomLife/) [info] Set…
agam
  • 5,064
  • 6
  • 31
  • 37
7
votes
1 answer

Is it possible to run giter8 templates from intellij?

As a feedback from a g8 template that I've made, I've been asked whether it's possible to make it available directly inside intellij. Is there any way to generate new modules from intellij using a g8 template, maybe through some g8 plugin…
6
votes
1 answer

Can I run sbt new with a local template (not GitHub)?

I work in a secure environment where developers are not allowed to git-clone from GitHub, or any other external repos. I was able to download a g8 template (play-scala-seed) from GitHub as a zip file and I've unzipped it to a local folder. Can I use…
Salim Fadhley
  • 6,975
  • 14
  • 46
  • 83
6
votes
3 answers

sbt new RuntimeException

I got lost trying to start with a scala toy example, when running sbt new scala/hello-world.g8 or even sbt new, the program crashes with the following error. Any ideas what might be wrong? Thanks in advance! (In fact, I am running sbt -java-home…
SheepPerplexed
  • 1,132
  • 8
  • 20
5
votes
3 answers

Error during installation of giter8 using Home-brew

I've been trying to install giter8 using brew, like so: brew install giter8 I get the following error: Error: giter8 has been disabled because it fetches unversioned dependencies at runtime! Does anybody know how to fix this, or what workarounds are…
rayabhik
  • 697
  • 1
  • 5
  • 9
4
votes
0 answers

giter8 escape with '\$'

I'm developing giter8 templates for Scala project. All the templates were running as expected. However, today I faced with error: Exiting due to error in the template: /var/folders/zg/dspycv2d6sqc92801kmqy3yw0000gn/T/giter8-75157374435862 relative:…
Max Moroz
  • 63
  • 1
  • 5
4
votes
1 answer

How to specify a branch in "sbt new"?

When using sbt new, I can initialize a new project based on the default branch of a github project containing a giter8 template. Is it also possible to use a template from a branch other than the default one?
Arnout Engelen
  • 6,709
  • 1
  • 25
  • 36
4
votes
2 answers

Typesafe stack not get project template - Exception fetching from github Unexpected response code: 403

I'm trying typesafe stack. Yesterday, I can get project template of typesafe stack. $sudo g8 typesafehub/akka-java-maven Today: I can't get project template. $sudo g8 typesafehub/play-java Error: Exception fetching from github Unexpected response…
3
votes
1 answer

giter8 throws IllegalArgumentException: Invalid wildcards +refs/pull/*/head:refs/rem otes/origin/pr/*

I have SBT, Scala, and giter8. When I type g8 on the command line it says that it's installed fine, but when I use it to set up a template from a GitHub repository, i.e. g8 ajhager/libgdx-sbt-project it throws the following…
caustic6
  • 31
  • 2
2
votes
1 answer

truthy doesn't work with sbt new

I've created a template project with giter8, and trying to add conditional expression. in the defaults.properties I added: param=true and in the template file I added: $if(param.truthy)$ .... $endif$ when I'm generating the project with: g8…
lev
  • 3,986
  • 4
  • 33
  • 46
2
votes
1 answer

How to Install conscript in Windows

Conscript is needed for giter8 to check out project templates directly from Github and as Scalatra.org states is recommended way to generate Scalatra project skeletons. When conscript-0.4.4.jar is ran error "Error downloading sbt-launch-0.13.0…
Arian
  • 157
  • 9
2
votes
3 answers

Github peer not authenticated when I issue g8 command

I am using red hat linux. I am trying to run this command: g8 typesafehub/play-scala And I am getting this response: Exception fetching from github peer not authenticated But when I check the connection using openssl s_client -connect…
user1435853
  • 633
  • 2
  • 8
  • 18
1
vote
1 answer

How to include/exclude files using Giter8

According to docs conditional truthy could also be used include/exclude files or directories . how can I do it in practice ? if I add all the files and directories to the template, how can I exclude them from the project based on the condition ? *…
igx
  • 4,101
  • 11
  • 43
  • 88
1
vote
1 answer

running sbt new pointing to internal organization's github

if I run sbt new x/y.g8, it supplies args to giter8 and giter8 connects to github.com and downloads the template. I would like to build a template for my team internal to my company. We are using github.company.com as internal github. Is there…
Ajay Guyyala
  • 246
  • 2
  • 11
1
2