Skip to content

Commit fea8f41

Browse files
authored
chore(gradle): Remove buildscript blocks (#8299)
1 parent b9dc450 commit fea8f41

File tree

13 files changed

+2
-179
lines changed

13 files changed

+2
-179
lines changed

src/platform-includes/getting-started-install/java.mdx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
```groovy {filename:build.gradle}
2-
// Make sure mavenCentral is there.
3-
buildscript {
4-
repositories {
5-
mavenCentral()
6-
}
7-
}
8-
9-
repositories {
10-
mavenCentral()
11-
}
12-
132
plugins {
143
id "io.sentry.jvm.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.12.0') }}"
154
}

src/platform-includes/source-context/java.mdx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ Add the Sentry Gradle plugin to your project by adding the following lines:
5858
<SignInNote />
5959

6060
```groovy
61-
buildscript {
62-
repositories {
63-
mavenCentral()
64-
}
65-
}
66-
6761
plugins {
6862
id "io.sentry.android.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.9.0') }}"
6963
}
@@ -92,12 +86,6 @@ sentry {
9286
```
9387

9488
```kotlin
95-
buildscript {
96-
repositories {
97-
mavenCentral()
98-
}
99-
}
100-
10189
plugins {
10290
id("io.sentry.android.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.9.0') }}"
10391
}
@@ -134,12 +122,6 @@ Make sure the `assemble` task is executed.
134122
<SignInNote />
135123

136124
```groovy
137-
buildscript {
138-
repositories {
139-
mavenCentral()
140-
}
141-
}
142-
143125
plugins {
144126
id "io.sentry.jvm.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.9.0') }}"
145127
}
@@ -168,12 +150,6 @@ sentry {
168150
```
169151

170152
```kotlin
171-
buildscript {
172-
repositories {
173-
mavenCentral()
174-
}
175-
}
176-
177153
plugins {
178154
id("io.sentry.jvm.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.9.0') }}"
179155
}

src/platforms/android/configuration/gradle.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,13 @@ seamless integration with the Gradle build system. It supports the following fea
2424
Using Gradle (Android Studio) in your `app/build.gradle` add:
2525

2626
```groovy {filename:app/build.gradle}
27-
buildscript {
28-
repositories {
29-
mavenCentral()
30-
}
31-
}
32-
3327
plugins {
3428
id "com.android.application"
3529
id "io.sentry.android.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
3630
}
3731
```
3832

3933
```kotlin {filename:app/build.gradle}
40-
buildscript {
41-
repositories {
42-
mavenCentral()
43-
}
44-
}
45-
4634
plugins {
4735
id("com.android.application")
4836
id("io.sentry.android.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"

src/platforms/android/integrations/file-io/index.mdx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,38 +23,18 @@ On this page, we get you up and running with Sentry's file I/O integration, so t
2323

2424
## Install
2525

26-
To use the file I/O integration, add the Sentry Android Gradle plugin and the Sentry Android SDK (version `5.5.0` or above) in `build.gradle`:
26+
To use the file I/O integration, add the Sentry Android Gradle plugin in `build.gradle`:
2727

2828
```groovy
29-
buildscript {
30-
repositories {
31-
mavenCentral()
32-
}
33-
}
34-
3529
plugins {
3630
id "io.sentry.android.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
3731
}
38-
39-
dependencies {
40-
implementation 'io.sentry:sentry-android:{{@inject packages.version('sentry.java.android', '5.0.0') }}'
41-
}
4232
```
4333

4434
```kotlin
45-
buildscript {
46-
repositories {
47-
mavenCentral()
48-
}
49-
}
50-
5135
plugins {
5236
id("io.sentry.android.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
5337
}
54-
55-
dependencies {
56-
implementation("io.sentry:sentry-android:{{@inject packages.version('sentry.java.android', '5.0.0') }}")
57-
}
5838
```
5939

6040
<Note>

src/platforms/android/integrations/fragment/index.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,12 @@ Starting from version `3.1.0`, the Sentry Android Gradle plugin will automatical
2323
Add the Sentry Android Gradle plugin in `build.gradle`:
2424

2525
```groovy
26-
buildscript {
27-
repositories {
28-
mavenCentral()
29-
}
30-
}
31-
3226
plugins {
3327
id "io.sentry.android.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
3428
}
3529
```
3630

3731
```kotlin
38-
buildscript {
39-
repositories {
40-
mavenCentral()
41-
}
42-
}
43-
4432
plugins {
4533
id("io.sentry.android.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
4634
}

src/platforms/android/integrations/jetpack-compose/index.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,24 +160,12 @@ If you're using the [Sentry Android Gradle Plugin](/platforms/android/configurat
160160
Add the Sentry Android Gradle plugin in `build.gradle`:
161161

162162
```groovy
163-
buildscript {
164-
repositories {
165-
mavenCentral()
166-
}
167-
}
168-
169163
plugins {
170164
id "io.sentry.android.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
171165
}
172166
```
173167

174168
```kotlin
175-
buildscript {
176-
repositories {
177-
mavenCentral()
178-
}
179-
}
180-
181169
plugins {
182170
id("io.sentry.android.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
183171
}

src/platforms/android/integrations/logcat/index.mdx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,18 @@ Any matching `android.Log.*` calls inside your app package are captured as bread
2626

2727
### Install
2828

29-
To use the Logcat integration, add the Sentry Android Gradle plugin and the Sentry Android SDK (version `6.17.0` or above) in `build.gradle`:
29+
To use the Logcat integration, add the Sentry Android Gradle plugin in `build.gradle`:
3030

3131
```groovy {filename:app/build.gradle}
32-
buildscript {
33-
repositories {
34-
mavenCentral()
35-
}
36-
}
37-
3832
plugins {
3933
id "io.sentry.android.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.5.0') }}"
4034
}
41-
42-
dependencies {
43-
implementation 'io.sentry:sentry-android:{{@inject packages.version('sentry.java.android', '6.17.0') }}'
44-
}
4535
```
4636

4737
```kotlin {filename:app/build.gradle.kts}
48-
buildscript {
49-
repositories {
50-
mavenCentral()
51-
}
52-
}
53-
5438
plugins {
5539
id("io.sentry.android.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.5.0') }}"
5640
}
57-
58-
dependencies {
59-
implementation("io.sentry:sentry-android:{{@inject packages.version('sentry.java.android', '6.17.0') }}")
60-
}
6141
```
6242

6343
### Configure

src/platforms/android/integrations/okhttp/index.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,12 @@ Starting from version `3.11.0`, the Sentry Android Gradle plugin will also autom
3131
Add the Sentry Android Gradle plugin in `build.gradle`:
3232

3333
```groovy
34-
buildscript {
35-
repositories {
36-
mavenCentral()
37-
}
38-
}
39-
4034
plugins {
4135
id "io.sentry.android.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
4236
}
4337
```
4438

4539
```kotlin
46-
buildscript {
47-
repositories {
48-
mavenCentral()
49-
}
50-
}
51-
5240
plugins {
5341
id("io.sentry.android.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
5442
}

src/platforms/android/integrations/room-and-sqlite/index.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ On this page, we get you up and running with Sentry's Room and SQLite Integratio
3131
To use the Room and AndroidX SQLite integration, add the Sentry Android Gradle plugin and the Sentry Android SDK (version `4.0.0` or above) in `build.gradle`:
3232

3333
```groovy
34-
buildscript {
35-
repositories {
36-
mavenCentral()
37-
}
38-
}
39-
4034
plugins {
4135
id "io.sentry.android.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
4236
}
@@ -47,12 +41,6 @@ dependencies {
4741
```
4842

4943
```kotlin
50-
buildscript {
51-
repositories {
52-
mavenCentral()
53-
}
54-
}
55-
5644
plugins {
5745
id("io.sentry.android.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
5846
}

src/platforms/android/integrations/timber/index.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,12 @@ Starting from version `3.1.0`, the Sentry Android Gradle plugin will automatical
2323
Add the Sentry Android Gradle plugin in `build.gradle`:
2424

2525
```groovy
26-
buildscript {
27-
repositories {
28-
mavenCentral()
29-
}
30-
}
31-
3226
plugins {
3327
id "io.sentry.android.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
3428
}
3529
```
3630

3731
```kotlin
38-
buildscript {
39-
repositories {
40-
mavenCentral()
41-
}
42-
}
43-
4432
plugins {
4533
id("io.sentry.android.gradle") version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0') }}"
4634
}

0 commit comments

Comments
 (0)