[tbb-bugs] #31568 [Applications/Tor Browser]: Update How to Create Gradle Dependencies
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Sep 19 19:43:32 UTC 2019
#31568: Update How to Create Gradle Dependencies
-------------------------------------------------+-------------------------
Reporter: sisbell | Owner: tbb-
| team
Type: defect | Status:
| needs_revision
Priority: Medium | Milestone:
Component: Applications/Tor Browser | Version:
Severity: Normal | Resolution:
Keywords: tbb-rbm, ff68-esr, tbb-9.0-must- | Actual Points:
alpha, TorBrowserTeam201909 |
Parent ID: #30324 | Points: 0.25
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Comment (by sisbell):
If we are running in a local container, the repo will always start out as
empty unless there is something in the dependency list. I was thinking if
we want to reconstruct the list, we would just empty out the gradle-
dependencies-list file. But that requires commenting out some sections of
the build that deals with moving the repo directories around so is maybe
not ideal either.
Sure we can go with the approach of removing the maven.repo flag. I'll add
that to documentation.
Replying to [comment:18 gk]:
> Replying to [comment:17 gk]:
> > Okay, my idea does not work for `tor-android-service` we need to get
back to the drawing board. :(
>
> I was actually wrong:
> {{{
> 07:07 <+GeKo> the crucial part i missed was making sure there is no
local cache passed to gradle
> 07:07 <+GeKo> otherwise gradle seems just to check the sha1 value of
what is already there
> 07:08 <+GeKo> instead of downloading the resources (again)
> }}}
> So, if we are (re-)constructing the gradle dependencies it seems to be
important to omit `-Dmaven.repo.local=$gradle_repo` as well and not just
replace `--offline` with `--debug` and allow network access. We should
note that in the doc.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31568#comment:20>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tbb-bugs
mailing list