Skip to content

Commit 31ba8b4

Browse files
authored
Merge pull request scalacenter#1783 from Arthurm1/gradle_docs
Update gradle docs
2 parents 373a64c + ff85fdc commit 31ba8b4

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/build-tools/gradle.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ Learn how to get set up by following the instructions below.
1616

1717
## Requirements
1818

19-
- At least Gradle `v4.3`, latest (tested) supported version is `v6.1`
19+
- For Scala 2: at least Gradle `v5.0`
20+
- For Scala 3: at least Gradle `v7.3`
21+
- For Android: at least Gradle `v6.1.1`
22+
- Latest (tested) supported version is `v7.5`
2023

2124
## Install the plugin
2225

@@ -48,7 +51,10 @@ Then, enable bloop in all your Gradle projects with:
4851

4952
```gradle
5053
allprojects {
51-
apply plugin: 'bloop'
54+
// test is for compatibility with Metals import
55+
if (!plugins.hasPlugin("bloop")) {
56+
apply plugin: "bloop"
57+
}
5258
}
5359
```
5460

@@ -147,5 +153,7 @@ If your build only has a handful of Scala/Java projects and you don't want to
147153
enable Bloop in all projects by default, you can selectively enable bloop with:
148154

149155
```groovy
150-
apply plugin: 'bloop'
156+
if (!plugins.hasPlugin("bloop")) {
157+
apply plugin: "bloop"
158+
}
151159
```

0 commit comments

Comments
 (0)