Git Product home page Git Product logo

Comments (4)

nick-someone avatar nick-someone commented on May 18, 2024

https://ij.bazel.build/ is a Bazel plugin if you're looking to develop on Bazel projects in IntelliJ.

If you're just trying to use Flogger as a dependency in your project, you should be able to depend on it like most other Maven artifacts (https://github.com/google/flogger#how-to-use-flogger)

from flogger.

Sineaggi avatar Sineaggi commented on May 18, 2024

@nick-someone I should have added more detail. Its not clear to me how to use the Bazel plugin to import flogger into Intellij, as the steps aren't super clear in this project's case.

Specifically, from the documentation https://ij.bazel.build/docs/import-project.html you need either a file called a bazelproject, or the tool can automatically generate one from a 'main BUILD file'. Unfortunately flogger has neither a bazelproject file or a root BUILD file, only a root workspace.

from flogger.

nick-someone avatar nick-someone commented on May 18, 2024

Ah, I see what you mean. There is not a top-level BUILD file, as you noticed. However, there are BUILD rules at each subdirectory, so you can configure the bazel project to include:

directories:
  .

targets: 
  //...

and I believe that should do it

from flogger.

Sineaggi avatar Sineaggi commented on May 18, 2024

Thanks, it looks like that worked!

To other people who may be looking at this issue, the contents of my .bazelproject are

directories:
  .

targets: 
  //...

workspace_type: java

from flogger.

Related Issues (20)

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.