-
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
Build external Java libs into standalone native libs. #431
Conversation
9f9556d
to
c2a3b66
Compare
ping @brunobowden |
@@ -26,7 +26,7 @@ import org.gradle.api.artifacts.SelfResolvingDependency | |||
|
|||
/** | |||
* Converts `[test]compile` dependencies to their | |||
* `j2objcTranslation` and/or `j2objcLinkage` equivalents, depending on the type | |||
* `j2objcTranslationClosure` and/or `j2objcLinkage` equivalents, depending on the type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve explanation:
* Converts `[test]compile` dependencies to one of the following (or their equivalent):
* j2objcLinkage - EXPLANATION HERE
* j2objcTranslationClosure - EXPLANATION HERE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, but for DependencyConverter I just detailed how compile and testCompile get converted.
The definitions of j2objcLinkage, etc. are now in DependencyResolver's javadoc.
LGTM |
Rename the old `j2objcTranslation` to `j2objcTranslationClosure` Add a new dependency type `j2objcTranslation` that allows you to convert an entire source jar into a standalone library as a separate Gradle project. You then depend on that project instead of the external library when you want to use the functionality elsewhere. This causes the external library to be translated and compiled only once, and not partially and duplicatively as with --build-closure. Fixes j2objc-contrib#429; fixes j2objc-contrib#419 TESTED=yes
Build external Java libs into standalone native libs.
Rename the old
j2objcTranslation
toj2objcTranslationClosure
Add a new dependency type
j2objcTranslation
that allows you toconvert an entire source jar into a standalone library as a separate Gradle project.
You then depend on that project instead of the external library when
you want to use the functionality elsewhere.
This causes the external library to be translated and compiled only once,
and not partially and duplicatively as with --build-closure.
Fixes #429; fixes #419
TESTED=yes