8000 mention default eviction strategy of SBT and gradle · jatcwang/scala.github.com@a41fbfc · GitHub
[go: up one dir, main page]

Skip to content

Commit a41fbfc

Browse files
committed
mention default eviction strategy of SBT and gradle
1 parent 756fab8 commit a41fbfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_overviews/tutorials/binary-compatibility-for-library-authors.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ Because of this, having multiple versions of the same library in the classpath i
6666
* Need to fetch and bundle multiple library versions when only one is actually used
6767
* Unexpected runtime behavior if the order of class files changes
6868

69-
Therefore, when resolving JARs to use for compilation and packaging, most build tools will pick only one version of each library and **evict** the rest.
69+
Therefore, build tools like SBT and Gradle will pick one version and **evict** the rest when resolving JARs to use for compilation and packaging.
70+
By default they pick the latest version of each library, but it is possible to specify another version if required.
7071

7172
### Source Compatibility
7273
Two library versions are **Source Compatible** with each other if switching one for the other does not incur any compile errors or unintended behavioral changes (semantic errors).

0 commit comments

Comments
 (0)
0