Skip to content
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

Don't copy generator .jar files to build-tools/ #1789

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

ptomato
Copy link
Contributor

@ptomato ptomato commented Sep 25, 2023

Gradle complains that when multiple tasks have the same output path, it cannot decide accurately whether they need to run or not. The copyJarToBuildTools task of all three generators (android-dts-generator, android-metadata-generator, and static-binding-generator) shared the same output path, so they were always getting run.

Instead, we can leave the .jar files in the location where they are built, and reference them from there in tasks that subsequently require them.

This fix was submitted separately to android-dts-generator, which is a git submodule, in NativeScript/android-dts-generator#77 This commit pulls in a newer version of android-dts-generator which includes that fix.

Related Pull Requests

NativeScript/android-dts-generator#77

Does your pull request have unit tests?

Should not need any new tests as this is just a Gradle build speedup. All existing tests should continue to pass.

Gradle complains that when multiple tasks have the same output path, it
cannot decide accurately whether they need to run or not. The
copyJarToBuildTools task of all three generators (android-dts-generator,
android-metadata-generator, and static-binding-generator) shared the same
output path, so they were always getting run.

Instead, we can leave the .jar files in the location where they are built,
and reference them from there in tasks that subsequently require them.

This fix was submitted separately to android-dts-generator, which is a git
submodule, in NativeScript/android-dts-generator#77
This commit pulls in a newer version of android-dts-generator which
includes that fix.
@cla-bot cla-bot bot added the cla: yes label Sep 25, 2023
@triniwiz triniwiz merged commit 40b6725 into NativeScript:main Sep 26, 2023
2 of 3 checks passed
@ptomato ptomato deleted the dont-copy-jars branch September 26, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants