Skip to content

Commit

Permalink
[build] extract versions to gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
vvlevchenko committed Oct 12, 2020
1 parent 16c1c52 commit de986eb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Interop/StubGenerator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
api "org.jetbrains.kotlin:kotlin-compiler:$kotlinVersion"
api "org.jetbrains.kotlin:kotlin-native-shared:$konanVersion"
api "org.jetbrains.kotlinx:kotlinx-metadata-klib:0.0.1-dev-10"
api "org.jetbrains.kotlinx:kotlinx-metadata-klib:$metadataVersion"

testImplementation "junit:junit:4.12"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$buildKotlinVersion"
Expand Down
16 changes: 10 additions & 6 deletions build-tools/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ val kotlinCompilerRepo: String by rootProperties
val buildKotlinVersion: String by rootProperties
val buildKotlinCompilerRepo: String by rootProperties
val konanVersion: String by rootProperties
val slackApiVersion: String by rootProperties
val ktorVersion: String by rootProperties
val shadowVersion: String by rootProperties
val metadataVersion: String by rootProperties

group = "org.jetbrains.kotlin"
version = konanVersion
Expand All @@ -50,19 +54,19 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
implementation("com.ullink.slack:simpleslackapi:1.2.0")
implementation("com.ullink.slack:simpleslackapi:$slackApiVersion")

implementation("io.ktor:ktor-client-auth:1.2.1")
implementation("io.ktor:ktor-client-core:1.2.1")
implementation("io.ktor:ktor-client-cio:1.2.1")
implementation("io.ktor:ktor-client-auth:$ktorVersion")
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")

api("org.jetbrains.kotlin:kotlin-native-utils:$kotlinVersion")

// Located in <repo root>/shared and always provided by the composite build.
api("org.jetbrains.kotlin:kotlin-native-shared:$konanVersion")
implementation("com.github.jengelman.gradle.plugins:shadow:5.1.0")
implementation("com.github.jengelman.gradle.plugins:shadow:$shadowVersion")

implementation("org.jetbrains.kotlinx:kotlinx-metadata-klib:0.0.1-dev-10")
implementation("org.jetbrains.kotlinx:kotlinx-metadata-klib:$metadataVersion")
}

sourceSets["main"].withConvention(KotlinSourceSet::class) {
Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ gtestRevision=07f4869221012b16b7f9ee685d94856e1fc9f361

org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.workers.max=4
slackApiVersion=1.2.0
ktorVersion=1.2.1
shadowVersion=5.1.0
metadataVersion=0.0.1-dev-10

# Uncomment to enable composite build
#kotlinProjectPath=<insert the path to Kotlin project root here>

0 comments on commit de986eb

Please sign in to comment.