Skip to content

Commit 9092987

Browse files
committed
update: remove dependencies at top level section
1 parent ef8b3c2 commit 9092987

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

docs/topics/gradle/gradle-configure-project.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,6 @@ kotlin {
760760
</tab>
761761
</tabs>
762762
763-
Alternatively, you can [set dependencies at top level](#set-dependencies-at-top-level).
764-
765763
### Dependency types
766764
767765
Choose the dependency type based on your requirements.
@@ -1176,33 +1174,6 @@ kotlin {
11761174
</tab>
11771175
</tabs>
11781176
1179-
### Set dependencies at top level
1180-
1181-
Alternatively, you can specify the dependencies at top level, using the following pattern for the configuration names:
1182-
`<sourceSetName><DependencyType>`. This can be helpful for some Gradle built-in dependencies, like `gradleApi()`, `localGroovy()`,
1183-
or `gradleTestKit()`, which are not available in the source sets' dependency DSL.
1184-
1185-
<tabs group="build-script">
1186-
<tab title="Kotlin" group-key="kotlin">
1187-
1188-
```kotlin
1189-
dependencies {
1190-
"commonMainImplementation"("com.example:my-library:1.0")
1191-
}
1192-
```
1193-
1194-
</tab>
1195-
<tab title="Groovy" group-key="groovy">
1196-
1197-
```groovy
1198-
dependencies {
1199-
commonMainImplementation 'com.example:my-library:1.0'
1200-
}
1201-
```
1202-
1203-
</tab>
1204-
</tabs>
1205-
12061177
## Declare repositories
12071178
12081179
You can declare a publicly-available repository to use its open source dependencies. In the `repositories{}` block, set

0 commit comments

Comments
 (0)