-
Notifications
You must be signed in to change notification settings - Fork 175
Provides a solution for caching build dependencies for maven gradle #77
Provides a solution for caching build dependencies for maven gradle #77
Conversation
@nebhale - do you have anything to add to this? I remember that you mentioned something about doing symbolic links to |
I’d say that the work done around moving I found that moving |
@nebhale @marcingrzejszczak I started putting together some generally useful scripts here. The |
Nice! I'll definitely check this out :) Thanks @philwebb |
outputs: | ||
- name: out | ||
caches: |
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.
There’s no real reason that these need to be hidden directories. In fact, it’s probably easier that they aren’t, so that when you fly hijack
it’s obvious that they’re there and being used. I’d just call them gradle
and maven
and then link them to their hidden locations.
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.
Yep, makes sense.
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.
From an inspection-only perspective (I didn’t run it, so don’t know if it actually works 😉) this looks good to me.
#68 Removed the m2 input from all the tasks and added caches for .m2 and .gradle directories.
Generate settings no longer copies contents from m2 resource and uses the Concourse cache feature instead, therefore, we could remove the m2 resource entirely along with the param to the m2 folder. This PR also caches the wrapper by setting the MAVEN_USER_HOME variable to the location of the m2 cache folder.