Skip to content

Commit 6a8dc86

Browse files
authored
Remove JCenter() from repositories where possible (#1322)
1 parent 94b09eb commit 6a8dc86

File tree

7 files changed

+14
-19
lines changed

7 files changed

+14
-19
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![official JetBrains project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
44
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
55
[![TeamCity build](https://img.shields.io/teamcity/http/teamcity.jetbrains.com/s/KotlinTools_KotlinxSerialization_Ko.svg)](https://teamcity.jetbrains.com/viewType.html?buildTypeId=KotlinTools_KotlinxSerialization_Ko&guest=1)
6-
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.serialization.runtime/images/download.svg?version=1.0.1) ](https://bintray.com/kotlin/kotlinx/kotlinx.serialization.runtime/1.0.1)
6+
[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-serialization-core/1.1.0-RC)](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.1.0-RC/pom)
77

88
Kotlin serialization consists of a compiler plugin, that generates visitor code for serializable classes,
99
runtime library with core serialization API and support libraries with various serialization formats.
@@ -105,7 +105,7 @@ Kotlin DSL:
105105

106106
```kotlin
107107
buildscript {
108-
repositories { jcenter() }
108+
repositories { mavenCentral() }
109109

110110
dependencies {
111111
val kotlinVersion = "1.4.10"
@@ -120,7 +120,7 @@ Groovy DSL:
120120
```gradle
121121
buildscript {
122122
ext.kotlin_version = '1.4.10'
123-
repositories { jcenter() }
123+
repositories { mavenCentral() }
124124
125125
dependencies {
126126
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
@@ -137,14 +137,14 @@ apply plugin: 'kotlinx-serialization'
137137

138138
#### Dependency on the JSON library
139139

140-
After setting up the plugin one way or another, you have to add a dependency on the serialization library. Note that while the plugin has version the same as the compiler one, runtime library has different coordinates, repository and versioning.
140+
After setting up the plugin one way or another, you have to add a dependency on the serialization library.
141+
Note that while the plugin has version the same as the compiler one, runtime library has different coordinates, repository and versioning.
141142

142143
Kotlin DSL:
143144

144145
```kotlin
145146
repositories {
146-
// Artifacts are also available on Maven Central
147-
jcenter()
147+
mavenCentral()
148148
}
149149

150150
dependencies {
@@ -156,8 +156,7 @@ Groovy DSL:
156156

157157
```gradle
158158
repositories {
159-
// Artifacts are also available on Maven Central
160-
jcenter()
159+
mavenCentral()
161160
}
162161
163162
dependencies {
@@ -221,8 +220,6 @@ Ensure the proper version of Kotlin and serialization version:
221220
</properties>
222221
```
223222

224-
You can also use JCenter or `https://kotlin.bintray.com/kotlinx` Bintray repository.
225-
226223
Add serialization plugin to Kotlin compiler plugin:
227224

228225
```xml

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To release new `<version>` of `kotlinx.serialization`:
3434
* On 'Changes' tab, select `dev` branch and corresponding commit.
3535
* On 'Parameters' tab, find 'Deploy version' and fill in with `<version>`.
3636

37-
4. In [Sonatype](oss.sonatype.org/#stagingRepositories) admin interface:
37+
4. In [Sonatype](https://oss.sonatype.org/#stagingRepositories) admin interface:
3838
* Close the repository and wait for it to verify.
3939
* Release it.
4040

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ buildscript {
6161
maven { url 'https://kotlin.bintray.com/kotlinx' }
6262
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
6363
maven { url 'https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev' }
64-
jcenter()
64+
mavenCentral()
6565
gradlePluginPortal()
6666
}
6767

@@ -140,7 +140,7 @@ allprojects {
140140

141141
repositories {
142142
mavenLocal()
143-
jcenter()
143+
mavenCentral()
144144
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
145145
// Future replacement for kotlin-dev, with cache redirector
146146
maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" }
@@ -153,6 +153,7 @@ allprojects {
153153
}
154154
maven { url 'https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev' }
155155
maven { url "https://dl.bintray.com/kotlin/kotlin-eap" }
156+
jcenter() // blocker: https://github.com/valich/intellij-markdown/issues/64
156157
}
157158
}
158159

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
repositories {
9-
jcenter()
9+
mavenCentral()
1010
}
1111

1212
kotlinDslPluginOptions {

docs/building.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ After that, you can include this library in arbitrary projects like usual gradle
1010

1111
```gradle
1212
repositories {
13-
jcenter()
1413
mavenLocal()
1514
}
1615
1716
dependencies {
18-
compile "org.jetbrains.kotlinx:kotlinx-serialization-runtime"
17+
compile "org.jetbrains.kotlinx:kotlinx-serialization-core:$serialization_version"
1918
}
2019
```
2120

@@ -32,4 +31,4 @@ To use snapshot version of compiler (if you have built it from sources), use fla
3231

3332
Compiler plugin for Gradle/Maven and IntelliJ plugin, starting from Kotlin 1.3, are embedded into the Kotlin compiler.
3433

35-
Sources and steps to build it are located [here](https://github.com/JetBrains/kotlin/blob/master/plugins/kotlin-serialization/kotlin-serialization-compiler/). In general, you'll just need to run `./gradlew dist install` to get `1.3-SNAPSHOT` versions of Kotlin compiler, stdlib and serialization plugins in the Maven local repository.
34+
Sources and steps to build it are located [here](https://github.com/JetBrains/kotlin/blob/master/plugins/kotlin-serialization/kotlin-serialization-compiler/). In general, you'll just need to run `./gradlew dist install` to get `1.x.255` versions of Kotlin compiler, stdlib and serialization plugins in the Maven local repository.

integration-test/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ buildscript {
66

77
repositories {
88
mavenCentral()
9-
jcenter()
109
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
1110
}
1211
}

integration-test/settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pluginManagement {
1616
repositories {
1717
mavenLocal()
1818
mavenCentral()
19-
jcenter()
2019
maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" }
2120
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
2221
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }

0 commit comments

Comments
 (0)