Skip to content

Commit

Permalink
feat: add support for using custom .m2 directory (#3573)
Browse files Browse the repository at this point in the history
The existing Java packaging process uses a localRepository which points to a newly created tmp directory. This means that when building, all dependencies need to be freshly downloaded which is contributing a significant portion of time to the packaging process.

This PR provides the option to the user (hidden) to use a non-transient .m2 local repository if they so choose. I have experienced a huge improvement to performance by enabling this setting (5s with enabled vs 4 minutes using defaults).

---

By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
  • Loading branch information
agdimech committed Jun 13, 2022
1 parent 3827d93 commit 0003c8a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 22 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,15 @@
"contributions": [
"doc"
]
},
{
"login": "agdimech",
"name": "Adrian Dimech",
"avatar_url": "https://avatars.githubusercontent.com/u/51220968?v=4",
"profile": "https://github.com/agdimech",
"contributions": [
"code"
]
}
],
"repoType": "github",
Expand Down
Loading

0 comments on commit 0003c8a

Please sign in to comment.