Git Product home page Git Product logo

Comments (3)

carymrobbins avatar carymrobbins commented on June 3, 2024 1

In this particular case, it would make sense to disable javac building altogether and add the following to the cabal file -

java-sources: src/main/java/Main.java

or

java-sources: src/main/eta/Main.java

Whichever was preferred (the latter of which would not require disabling or changing when the javac build happens).

from sbt-eta.

carymrobbins avatar carymrobbins commented on June 3, 2024

I always forget this, but the Main.java probably needs to go in the src/main/eta directory. Build tools usually try to compile all of the src/main/java sources with just javac and before any other sources, so if Main.java references anything from src/main/eta it'll fail to compile. Maybe sbt is different, but either way this is a potential gotcha.

from sbt-eta.

rahulmutt avatar rahulmutt commented on June 3, 2024

So in these inter-project setups, there's always the question of where the dependencies flow. SBT has a mechanism which allows you to select whether you want to compile Scala or Java dependencies first. We probably need to add a new option that chooses the order among, Java, Scala, Eta (in case anybody wants such complicated setups).

from sbt-eta.

Related Issues (11)

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.