Skip to content

Commit

Permalink
Versions: Gradle -> 7.0, Kotlin -> 1.4.31, project -> 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tk3y committed Apr 20, 2021
1 parent db8d94d commit 52064dc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion benchmarks/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
kotlin("multiplatform")
kotlin("plugin.allopen")
id("kotlinx.benchmark")
id("org.jetbrains.kotlinx.benchmark")
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ plugins {

repositories {
// TODO: unify repository setup with the root project once IJ fixes importing of buildSrc
jcenter()
mavenCentral()
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/MultiplatformLibraryDependency.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ val Project.serializationVersion: String
get() = project.property("serializationVersion").toString()

private const val serializationJsonPrefix = "org.jetbrains.kotlinx:kotlinx-serialization-json"
private const val benchmarksRuntimePrefix = "org.jetbrains.kotlinx:kotlinx.benchmark.runtime"
private const val benchmarksRuntimePrefix = "org.jetbrains.kotlinx:kotlinx-benchmark-runtime"

data class MultiplatformLibraryDependency(
val rootModule: String,
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
5 changes: 2 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ pluginManagement {
abstract class RepositorySetup :
BuildServiceParameters, (RepositoryHandler, Boolean) -> Unit, BuildService<RepositorySetup> {
override fun invoke(repositories: RepositoryHandler, isPlugins: Boolean): Unit = with(repositories) {
jcenter()
maven("https://dl.bintray.com/kotlin/kotlinx")
mavenCentral()
if (isPlugins) {
gradlePluginPortal()
}
Expand All @@ -27,7 +26,7 @@ pluginManagement {
kotlin("multiplatform").version(kotlinVersion)
kotlin("js").version(kotlinVersion)
kotlin("plugin.allopen").version(kotlinVersion)
id("kotlinx.benchmark").version(benchmarkVersion)
id("org.jetbrains.kotlinx.benchmark").version(benchmarkVersion)
}
}

Expand Down
14 changes: 7 additions & 7 deletions versions.settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ package com.github.h0tk3y.betterParse.build
import org.gradle.api.plugins.ExtraPropertiesExtension
import kotlin.reflect.full.memberProperties

val kotlinVersion = KotlinPlugin.V1421
val kotlinVersion = KotlinPlugin.V1431

enum class KotlinPlugin {
V1421, /* TODO: support 1.4.30 */
V1431, /* TODO: support 1.5 pre-releases */
}

val versions = when (kotlinVersion) {
KotlinPlugin.V1421 -> Versions(
version = "0.4.1",
kotlinVersion = "1.4.21",
serializationVersion = "1.0.1",
benchmarkVersion = "0.2.0-dev-20"
KotlinPlugin.V1431 -> Versions(
version = "0.4.2",
kotlinVersion = "1.4.31",
serializationVersion = "1.1.0",
benchmarkVersion = "0.3.0"
)
}

Expand Down

0 comments on commit 52064dc

Please sign in to comment.