-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple java project translation and compilation #51
Comments
(I'm aware the shortcut way of doing this is a single j2objc project that just accumulates the src/main/java directories of all possible source directories of all possible projects, but that prevents me from building/updating my many independent libraries separately). |
I have a similar setup. Just include lib in your main project and translate the main project. This issue is not related to this plugin. |
Can you expound on 'include lib in your main project'? You mean combine the sources of two different projects? |
I included the lib source in the main project. |
Yeah I don't want to do that, and I shouldn't have to. It should be possible to build 2 separate java source projects with gradle dependencies between them, and properly setup the j2objc tasks for that. (in my case my codebase has many separate java libraries each of which can and should be independent objc libraries). |
Which type of MVP framework do you use? |
None. I'm not sure how that's relevant? I have lots and lots of separate gradle subprojects, each of them used by different subsystems, and different parts of the organization. |
It is not! just for interest. |
Sorry =) I get pretty adamant about preventing a bug thread from digressing. |
This is still a productive conversation. I'm learning from both of you. On Sat, May 9, 2015 at 4:05 PM Advay Mengle notifications@github.com
|
Almost have this done. For me, this is the last major missing feature. |
- Users must call configureNativeBuild() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call configureNativeBuild() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call configureNativeBuild() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call configureNativeBuild() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call configureNativeBuild() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths - disable shared library tasks by default; 50% faster. Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call configureNativeBuild() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths - disable shared library tasks by default; 50% faster. - fix logger.warning -> logger.warn Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call configureNativeBuild() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths - disable shared library tasks by default; 50% faster. - fix logger.warning -> logger.warn Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call configureNativeBuild() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths - disable shared library tasks by default; 50% faster. - fix logger.warning -> logger.warn Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call configureNativeBuild() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths - disable shared library tasks by default; 50% faster. - fix logger.warning -> logger.warn Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call finalConfigure() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths - disable shared library tasks by default; 50% faster. - fix logger.warning -> logger.warn Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51
- Users must call finalConfigure() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths - disable shared library tasks by default; 50% faster. - fix logger.warning -> logger.warn - support using a subset of all iOS platforms Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51, Fixes j2objc-contrib#59, Fixes j2objc-contrib#177
- Users must call finalConfigure() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths - disable shared library tasks by default; 50% faster. - fix logger.warning -> logger.warn - support using a subset of all iOS platforms Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51, Fixes j2objc-contrib#59, Fixes j2objc-contrib#177 TESTED=yes
- Users must call finalConfigure() at the end of their j2objcConfig. - dependsOnJ2objcLib with a project will automatically wire up all dependencies to another j2objc project - extra* flags allow you to customize the objective-c builds. - remove lib/ prefix from all translateClassPaths - disable shared library tasks by default; 50% faster. - fix logger.warning -> logger.warn - support using a subset of all iOS platforms Ugly but it works. The inability to reconfigure a previously created native component is an issue others are hitting too: https://discuss.gradle.org/t/problem-with-model-block-when-switching-from-2-2-1-to-2-4/9937 Fixes j2objc-contrib#153, Fixes j2objc-contrib#51, Fixes j2objc-contrib#59, Fixes j2objc-contrib#177 TESTED=yes
I have two projects, say 2 java gradle projects libx and appx. They live under one root gradle project, and therefore appx has a 'compile' dependency on libx. Both libx and appx need to be converted to objc.
Ideally, libx's output directory for j2objcCopy would become an additional include directory for appx's j2objcCompile. In addition, .a files from compiling libx, would be available for linking into appx's j2objcTest phase. libx's jar file would be on the classpath for appx's translation. All the tasks should have inter-project dependencies set correctly (I'm guessing I'm going to need to add a new flavor of dependency like 'j2objc').
This should be all done automatically, without --build-closure (a crutch that is getting less useful as my project graph gets more complicated), and in a hermetic environment (no copying files to j2objc's main /include and /lib directories). Why doesn't this work out of the box and what needs fixing?
Thoughts? I'm working on figuring this out on my own in my private codebase, if I succeed I'll try to issue a pull request as long as things haven't diverged too far by then.
The text was updated successfully, but these errors were encountered: