GithubHelp home page GithubHelp logo

Comments (8)

confile avatar confile commented on July 2, 2024

@advayDev1 I suppose you know more about this?

from j2objc-gradle.

advayDev1 avatar advayDev1 commented on July 2, 2024

Can you be more specific about what you mean by dependencies? Are these transitive dependencies of the instant jars on other jars?

from j2objc-gradle.

confile avatar confile commented on July 2, 2024

@advayDev1 I mean transitive dependencies.

from j2objc-gradle.

confile avatar confile commented on July 2, 2024

I mean that they should be resolved like in:

dependencies {
  compile ...
}

from j2objc-gradle.

advayDev1 avatar advayDev1 commented on July 2, 2024

are you asking for:

  1. compile dependencies named in the dependencies DSL block should be automatically converted into translate* flags?
    or
  2. such dependencies, whether in the dependencies DSL block or mentioned in translate* flags, should have their transitive dependencies included automatically?

from j2objc-gradle.

confile avatar confile commented on July 2, 2024

No to make it simple. I want that our plugin auto resolves transitive dependencies. That's it.

from j2objc-gradle.

advayDev1 avatar advayDev1 commented on July 2, 2024

I don't know if we should do that. I know in my case it would actually be harmful, and I can imagine it would be for many people. Consider that your projectA uses libB. libB relies on Guava. With this, we would use the public Guava jar as referenced in libB's pom file (for example), but that would be wrong, we should instead use the guava in the j2objc dist library. This could happen for any library. There is no way to map say a Maven pom file transitive dependency to the name in the j2objc lib directory (afaik).

I assume you want this to make --build-closure easier to manage, as it would be for me as well. But as soon as I started doing something that wasn't simple (for example, in my case my projectA relies on libB which relies on libC which has some JNI components that I then had to create a libCModified version myself which stubs or replaces with OCNI those JNI components), it did not work to do it automatically.

from j2objc-gradle.

advayDev1 avatar advayDev1 commented on July 2, 2024

So, the right way to do this is use:
project.sourceSets.main.compileClasspath.getAsPath()
project.sourceSets.test.compileClasspath.getAsPath()

they can just be added to translateClasspath.

Also, #112 does not need to be done to do this, only nice-to-have.

Need to solve #180 because otherwise the junit.jar for example we reference in the translateClasspath may be of a different version than the junit.jar in the j2objc dist.

from j2objc-gradle.

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.