summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Startsev <sandwwraith@users.noreply.github.com>2021-02-04 17:03:31 +0300
committerGitHub <noreply@github.com>2021-02-04 17:03:31 +0300
commit6a8dc862f28631727964ba31fdb4a9a4f68a81ae (patch)
treeb8332ac4e6fe8d448d57fd34c0d3e4cec1a5dc3d
parent94b09ebb99f2831e011dea5ca226f863a27709ef (diff)
downloadkotlinx.serialization-6a8dc862f28631727964ba31fdb4a9a4f68a81ae.tar.gz
Remove JCenter() from repositories where possible (#1322)
-rw-r--r--README.md17
-rw-r--r--RELEASING.md2
-rw-r--r--build.gradle5
-rw-r--r--buildSrc/build.gradle.kts2
-rw-r--r--docs/building.md5
-rw-r--r--integration-test/build.gradle1
-rw-r--r--integration-test/settings.gradle1
7 files changed, 14 insertions, 19 deletions
diff --git a/README.md b/README.md
index b2eefb54..6221fd55 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[![official JetBrains project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
[![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)
-[![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)
+[![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)
Kotlin serialization consists of a compiler plugin, that generates visitor code for serializable classes,
runtime library with core serialization API and support libraries with various serialization formats.
@@ -105,7 +105,7 @@ Kotlin DSL:
```kotlin
buildscript {
- repositories { jcenter() }
+ repositories { mavenCentral() }
dependencies {
val kotlinVersion = "1.4.10"
@@ -120,7 +120,7 @@ Groovy DSL:
```gradle
buildscript {
ext.kotlin_version = '1.4.10'
- repositories { jcenter() }
+ repositories { mavenCentral() }
dependencies {
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
@@ -137,14 +137,14 @@ apply plugin: 'kotlinx-serialization'
#### Dependency on the JSON library
-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.
+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.
Kotlin DSL:
```kotlin
repositories {
- // Artifacts are also available on Maven Central
- jcenter()
+ mavenCentral()
}
dependencies {
@@ -156,8 +156,7 @@ Groovy DSL:
```gradle
repositories {
- // Artifacts are also available on Maven Central
- jcenter()
+ mavenCentral()
}
dependencies {
@@ -221,8 +220,6 @@ Ensure the proper version of Kotlin and serialization version:
</properties>
```
-You can also use JCenter or `https://kotlin.bintray.com/kotlinx` Bintray repository.
-
Add serialization plugin to Kotlin compiler plugin:
```xml
diff --git a/RELEASING.md b/RELEASING.md
index 4caee606..83937b59 100644
--- a/RELEASING.md
+++ b/RELEASING.md
@@ -34,7 +34,7 @@ To release new `<version>` of `kotlinx.serialization`:
* On 'Changes' tab, select `dev` branch and corresponding commit.
* On 'Parameters' tab, find 'Deploy version' and fill in with `<version>`.
-4. In [Sonatype](oss.sonatype.org/#stagingRepositories) admin interface:
+4. In [Sonatype](https://oss.sonatype.org/#stagingRepositories) admin interface:
* Close the repository and wait for it to verify.
* Release it.
diff --git a/build.gradle b/build.gradle
index 9d94ad89..683a698b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -61,7 +61,7 @@ buildscript {
maven { url 'https://kotlin.bintray.com/kotlinx' }
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
maven { url 'https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev' }
- jcenter()
+ mavenCentral()
gradlePluginPortal()
}
@@ -140,7 +140,7 @@ allprojects {
repositories {
mavenLocal()
- jcenter()
+ mavenCentral()
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
// Future replacement for kotlin-dev, with cache redirector
maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" }
@@ -153,6 +153,7 @@ allprojects {
}
maven { url 'https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev' }
maven { url "https://dl.bintray.com/kotlin/kotlin-eap" }
+ jcenter() // blocker: https://github.com/valich/intellij-markdown/issues/64
}
}
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
index 8b6b3589..cbd58e24 100644
--- a/buildSrc/build.gradle.kts
+++ b/buildSrc/build.gradle.kts
@@ -6,7 +6,7 @@ plugins {
}
repositories {
- jcenter()
+ mavenCentral()
}
kotlinDslPluginOptions {
diff --git a/docs/building.md b/docs/building.md
index ab4ea907..2702eff5 100644
--- a/docs/building.md
+++ b/docs/building.md
@@ -10,12 +10,11 @@ After that, you can include this library in arbitrary projects like usual gradle
```gradle
repositories {
- jcenter()
mavenLocal()
}
dependencies {
- compile "org.jetbrains.kotlinx:kotlinx-serialization-runtime"
+ compile "org.jetbrains.kotlinx:kotlinx-serialization-core:$serialization_version"
}
```
@@ -32,4 +31,4 @@ To use snapshot version of compiler (if you have built it from sources), use fla
Compiler plugin for Gradle/Maven and IntelliJ plugin, starting from Kotlin 1.3, are embedded into the Kotlin compiler.
-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.
+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.
diff --git a/integration-test/build.gradle b/integration-test/build.gradle
index e655fea6..6cf8d1ad 100644
--- a/integration-test/build.gradle
+++ b/integration-test/build.gradle
@@ -6,7 +6,6 @@ buildscript {
repositories {
mavenCentral()
- jcenter()
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
}
}
diff --git a/integration-test/settings.gradle b/integration-test/settings.gradle
index d207b0df..c3b65040 100644
--- a/integration-test/settings.gradle
+++ b/integration-test/settings.gradle
@@ -16,7 +16,6 @@ pluginManagement {
repositories {
mavenLocal()
mavenCentral()
- jcenter()
maven { url "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" }
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }