mirror of
https://github.com/jlengrand/detekt.git
synced 2026-03-10 08:11:23 +00:00
Remove all references of jCenter in our docs
This commit is contained in:
17
README.md
17
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]")
|
||||
}
|
||||
|
||||
@@ -36,10 +36,6 @@ plugins {
|
||||
id "io.gitlab.arturbosch.detekt" version "1.0.0-RC14"
|
||||
}
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
|
||||
detekt {
|
||||
input = files(rootProject.rootDir)
|
||||
buildUponDefaultConfig = true
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
```
|
||||
|
||||
### <a name="gradleandroid">Configuration for Android projects</a>
|
||||
@@ -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)
|
||||
|
||||
## <a name="repositories">About the repositories</a>
|
||||
|
||||
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")
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user