diff --git a/README.md b/README.md index 9eef2580e..7228b12e9 100644 --- a/README.md +++ b/README.md @@ -67,23 +67,6 @@ You can find [other ways to install detekt here](https://detekt.github.io/detekt Gradle 5.4+ is required: ```kotlin -buildscript { - repositories { - jcenter() - } - - // or - - mavenCentral() - jcenter { - content { - // Only download the 'kotlinx-html-jvm' module from JCenter, but nothing else. - // detekt needs 'kotlinx-html-jvm' for the HTML report. - includeModule("org.jetbrains.kotlinx", "kotlinx-html-jvm") - } - } -} - plugins { id("io.gitlab.arturbosch.detekt").version("[version]") } diff --git a/docs/_posts/2019-03-03-configure-detekt-on-root-project.md b/docs/_posts/2019-03-03-configure-detekt-on-root-project.md index eaac564d7..878d9a4ea 100644 --- a/docs/_posts/2019-03-03-configure-detekt-on-root-project.md +++ b/docs/_posts/2019-03-03-configure-detekt-on-root-project.md @@ -36,10 +36,6 @@ plugins { id "io.gitlab.arturbosch.detekt" version "1.0.0-RC14" } -repositories { - jcenter() -} - detekt { input = files(rootProject.rootDir) buildUponDefaultConfig = true diff --git a/docs/index.md b/docs/index.md index 16fa78433..fafb16d6f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -27,19 +27,9 @@ summary: Apply the following configuration to your Gradle project build file: ```kotlin -buildscript { - repositories { - jcenter() - } -} - plugins { id("io.gitlab.arturbosch.detekt").version("{{ site.detekt_version }}") } - -repositories { - jcenter() -} ``` The format is very similar if you use the Gradle Groovy DSL. You can find what is the **latest version of detekt** in diff --git a/docs/pages/gettingstarted/gradle.md b/docs/pages/gettingstarted/gradle.md index d2bfa4128..2b2dc27dc 100644 --- a/docs/pages/gettingstarted/gradle.md +++ b/docs/pages/gettingstarted/gradle.md @@ -65,10 +65,6 @@ Using the plugins DSL: plugins { id "io.gitlab.arturbosch.detekt" version "{{ site.detekt_version }}" } - -repositories { - jcenter() // jcenter is needed https://github.com/Kotlin/kotlinx.html/issues/81 -} ``` #### Kotlin DSL @@ -77,10 +73,6 @@ repositories { plugins { id("io.gitlab.arturbosch.detekt").version("{{ site.detekt_version }}") } - -repositories { - jcenter() // jcenter is needed https://github.com/Kotlin/kotlinx.html/issues/81 -} ``` Using legacy plugin application (`buildscript{}`): @@ -98,10 +90,6 @@ buildscript { } apply plugin: "io.gitlab.arturbosch.detekt" - -repositories { - jcenter() // jcenter is needed https://github.com/Kotlin/kotlinx.html/issues/81 -} ``` #### Kotlin DSL @@ -117,10 +105,6 @@ buildscript { } apply(plugin = "io.gitlab.arturbosch.detekt") - -repositories { - jcenter() // jcenter is needed https://github.com/Kotlin/kotlinx.html/issues/81 -} ``` ### Configuration for Android projects @@ -135,7 +119,7 @@ You can configure the plugin in the same way as indicated above. buildscript { repositories { google() - jcenter() + mavenCentral() gradlePluginPortal() } dependencies { @@ -148,10 +132,6 @@ plugins { id "org.jetbrains.kotlin.android" version "1.4.0" id "io.gitlab.arturbosch.detekt" version "{{ site.detekt_version }}" } - -repositories { - jcenter() // jcenter is needed https://github.com/Kotlin/kotlinx.html/issues/81 -} ``` #### Kotlin DSL @@ -160,7 +140,7 @@ repositories { buildscript { repositories { google() - jcenter() + mavenCentral() gradlePluginPortal() } dependencies { @@ -173,10 +153,6 @@ plugins { kotlin("android") version "1.4.0" id("io.gitlab.arturbosch.detekt") version "{{ site.detekt_version }}" } - -repositories { - jcenter() // jcenter is needed https://github.com/Kotlin/kotlinx.html/issues/81 -} ``` For more information about how to configure the repositories read [about the repositories](#repositories) @@ -484,20 +460,3 @@ Instead of disabling detekt for the check task, you may want to increase the bui detekt comes with an [IntelliJ Plugin](https://plugins.jetbrains.com/plugin/10761-detekt) that you can install directly from the IDE. The plugin offers warning highlight directly inside the IDE as well as support for code formatting. The source code of the plugin is available here: [detekt/detekt-intellij-plugin](https://github.com/detekt/detekt-intellij-plugin) - -## About the repositories - -If you prefer to use Maven Central instead of JCenter you can use this configuration: - -```kotlin -repositories { - mavenCentral() - jcenter { - content { - // just allow to include kotlinx projects - // detekt needs 'kotlinx-html' for the html report - includeGroup("org.jetbrains.kotlinx") - } - } -} -``` diff --git a/docs/pages/gettingstarted/gradletask.md b/docs/pages/gettingstarted/gradletask.md index b5a6148f1..4010aca39 100644 --- a/docs/pages/gettingstarted/gradletask.md +++ b/docs/pages/gettingstarted/gradletask.md @@ -13,21 +13,6 @@ summary: ###### Groovy DSL ```groovy -repositories { - jcenter() - - // or - - mavenCentral() - jcenter { - content { - // just allow to include kotlinx projects - // detekt needs 'kotlinx-html' for the html report - includeGroup "org.jetbrains.kotlinx" - } - } -} - configurations { detekt }