Skip to content

Make project relocatable by using relative paths in the OSGi test task#2920

Merged
TimvdLippe merged 3 commits intomockito:mainfrom
dragos:optimize/osgi-absolute-paths
Feb 21, 2023
Merged

Make project relocatable by using relative paths in the OSGi test task#2920
TimvdLippe merged 3 commits intomockito:mainfrom
dragos:optimize/osgi-absolute-paths

Conversation

@dragos
Copy link
Copy Markdown
Contributor

@dragos dragos commented Feb 21, 2023

Make classpath elements and sources use relative paths, instead of the default absolute paths. This makes the build more cacheable when the checkout locations are different on the file system.

I discovered this while trying Gradle Enterprise, and a public build scan that shows everything comes from the cache is here.

Comment thread subprojects/osgi-test/osgi-test.gradle Outdated
Comment thread subprojects/osgi-test/osgi-test.gradle Outdated
Comment thread subprojects/osgi-test/osgi-test.gradle
dragos and others added 2 commits February 21, 2023 10:50
Co-authored-by: Nelson Osacky <nelson@osacky.com>
Co-authored-by: Nelson Osacky <nelson@osacky.com>
Copy link
Copy Markdown
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@TimvdLippe TimvdLippe merged commit 4eb275c into mockito:main Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants