question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a rootProject convenience method (macro)

See original GitHub issue

The root project can be defined with project in file("."). It might be convenient to provide a rootProject alias to project in file(".") (has to be a macro because of project the macro.)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
nigredo-toricommented, May 26, 2020

👍 to adding a way to have an auto-aggregating root project definition as a val. It can be a syntax, a macro, some set of settings in sbt.Defaults, whatever. It’s just annoying that I can do val foo = project... for subprojects, but I have to configure the root project using the SBT DSL, or lose all the magic.

0reactions
dwijnandcommented, Jan 11, 2019

No, that’s just the directory.

The thing that val fooRoot = project in file(".") is achieving is giving the root project a stable id, i.e one that isn’t inferred by the (mutable) directory name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading your build from Gradle 6.x to the latest
The jcenter() convenience method is now deprecated ... groovy-macro ... on Windows adds a lock to the root project directory in order to...
Read more >
sbt Reference Manual — Commands
There is a convenience method for constructing commands that accept a single argument with arbitrary content. // accepts the state and the single...
Read more >
Relearn your sbt - kubuszok.com
So you can define there classes for your convenience and import them in .sbt files. You can add libraryDependencies , which you could...
Read more >
CERN ROOT/RooFit GNU Makefile structure with GUI for ...
It is usually a simple ROOT macro that one runs with ROOT's interpreter. Later on after adding more and more features the code...
Read more >
Spring Boot Reference Guide
Add a Servlet, Filter, or Listener by Using a Spring Bean ... Spring Boot provides convenience methods that can be used to override...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found