build: Rename kotlin version properties

kotlin_version -> buildKotlinVersion
kotlinVersion -> kotlinCompilerVersion
This commit is contained in:
Ilya Matveev
2017-11-17 14:19:13 +07:00
committed by ilmat192
parent f8b6519864
commit 1c16fc1166
14 changed files with 21 additions and 20 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ sourceSets {
} }
dependencies { dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
compile project(':Interop:Runtime') compile project(':Interop:Runtime')
} }
+2 -2
View File
@@ -44,8 +44,8 @@ model {
} }
dependencies { dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-reflect:$buildKotlinVersion"
} }
sourceSets.main.kotlin.srcDirs += "src/jvm/kotlin" sourceSets.main.kotlin.srcDirs += "src/jvm/kotlin"
+1 -1
View File
@@ -24,7 +24,7 @@ apply plugin: 'application'
mainClassName = "org.jetbrains.kotlin.native.interop.gen.jvm.MainKt" mainClassName = "org.jetbrains.kotlin.native.interop.gen.jvm.MainKt"
dependencies { dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
compile project(':Interop:Indexer') compile project(':Interop:Indexer')
compile project(':shared') compile project(':shared')
} }
+1 -1
View File
@@ -145,7 +145,7 @@ dependencies {
compilerCompile kotlinNativeInterop['hash'].configuration compilerCompile kotlinNativeInterop['hash'].configuration
compilerCompile project(':shared') compilerCompile project(':shared')
cli_bcCompile "org.jetbrains.kotlin:kotlin-runtime:$kotlin_version" cli_bcCompile "org.jetbrains.kotlin:kotlin-runtime:$buildKotlinVersion"
cli_bcCompile project(':shared') cli_bcCompile project(':shared')
cli_bcCompile sourceSets.compiler.output cli_bcCompile sourceSets.compiler.output
+1 -1
View File
@@ -2,7 +2,7 @@ apply plugin: 'java'
apply plugin: 'kotlin' apply plugin: 'kotlin'
dependencies { dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
compile project(path: ':backend.native', configuration: 'cli_bc') compile project(path: ':backend.native', configuration: 'cli_bc')
compile project(':shared') compile project(':shared')
compile 'junit:junit:4.12' compile 'junit:junit:4.12'
+1 -1
View File
@@ -29,7 +29,7 @@ ext {
distDir = file('dist') distDir = file('dist')
dependenciesDir = DependencyProcessor.defaultDependenciesRoot dependenciesDir = DependencyProcessor.defaultDependenciesRoot
clangManager = new ClangManager(konanProperties, dependenciesDir.absolutePath) clangManager = new ClangManager(konanProperties, dependenciesDir.absolutePath)
kotlinCompilerModule="org.jetbrains.kotlin:kotlin-compiler:${kotlinVersion}" kotlinCompilerModule="org.jetbrains.kotlin:kotlin-compiler:${kotlinCompilerVersion}"
kotlinStdLibModule="org.jetbrains.kotlin:kotlin-stdlib:${kotlinStdLibVersion}" kotlinStdLibModule="org.jetbrains.kotlin:kotlin-stdlib:${kotlinStdLibVersion}"
kotlinReflectModule="org.jetbrains.kotlin:kotlin-reflect:${kotlinReflectVersion}" kotlinReflectModule="org.jetbrains.kotlin:kotlin-reflect:${kotlinReflectVersion}"
kotlinScriptRuntimeModule="org.jetbrains.kotlin:kotlin-script-runtime:${kotlinScriptRuntimeVersion}" kotlinScriptRuntimeModule="org.jetbrains.kotlin:kotlin-script-runtime:${kotlinScriptRuntimeVersion}"
+2 -2
View File
@@ -18,7 +18,7 @@ buildscript {
ext { ext {
gradleProperties = new Properties() gradleProperties = new Properties()
gradleProperties.load(new FileInputStream("$projectDir/../../gradle.properties")) gradleProperties.load(new FileInputStream("$projectDir/../../gradle.properties"))
kotlin_version = gradleProperties."kotlin_version" buildKotlinVersion = gradleProperties."buildKotlinVersion"
} }
apply from: '../../gradle/kotlinGradlePlugin.gradle' apply from: '../../gradle/kotlinGradlePlugin.gradle'
@@ -30,7 +30,7 @@ apply plugin: 'kotlin'
sourceSets.main.kotlin.srcDirs = ["$projectDir/../../shared"] sourceSets.main.kotlin.srcDirs = ["$projectDir/../../shared"]
dependencies { dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
} }
rootProject.dependencies { rootProject.dependencies {
+1 -1
View File
@@ -17,7 +17,7 @@ apply plugin: 'com.jfrog.bintray'
def versionMapping = [ def versionMapping = [
'kotlin-script-runtime' : kotlinScriptRuntimeVersion, 'kotlin-script-runtime' : kotlinScriptRuntimeVersion,
'kotlin-compiler' : kotlinVersion, 'kotlin-compiler' : kotlinCompilerVersion,
'kotlin-stdlib' : kotlinStdLibVersion, 'kotlin-stdlib' : kotlinStdLibVersion,
'kotlin-reflect' : kotlinReflectVersion, 'kotlin-reflect' : kotlinReflectVersion,
'kotlin-stdlib-jre8' : kotlinStdLibJdk8Version 'kotlin-stdlib-jre8' : kotlinStdLibJdk8Version
+3 -2
View File
@@ -14,7 +14,8 @@
# limitations under the License. # limitations under the License.
# #
kotlin_version=1.1.4 # A version of the Kotlin "toolchain" (compiler, runtime, stdlib etc) used by the build script.
buildKotlinVersion=1.1.4
llvmVersion = 3.9.0 llvmVersion = 3.9.0
remoteRoot=konan_tests remoteRoot=konan_tests
#kotlinCompilerModule=org.jetbrains.kotlin:kotlin-compiler:1.1-SNAPSHOT #kotlinCompilerModule=org.jetbrains.kotlin:kotlin-compiler:1.1-SNAPSHOT
@@ -23,7 +24,7 @@ testDataVersion=1226829:id
kotlinCompilerRepo=https://dl.bintray.com/jetbrains/kotlin-native-dependencies kotlinCompilerRepo=https://dl.bintray.com/jetbrains/kotlin-native-dependencies
#kotlinCompilerRepo=http://oss.sonatype.org/content/repositories/snapshots #kotlinCompilerRepo=http://oss.sonatype.org/content/repositories/snapshots
#kotlinCompilerRepo=http://dl.bintray.com/kotlin/kotlin-dev #kotlinCompilerRepo=http://dl.bintray.com/kotlin/kotlin-dev
kotlinVersion=1.2-20171124.204021-51 kotlinCompilerVersion=1.2-20171124.204021-51
kotlinScriptRuntimeVersion=1.2-20171124.204038-51 kotlinScriptRuntimeVersion=1.2-20171124.204038-51
kotlinStdLibVersion=1.2-20171124.204041-51 kotlinStdLibVersion=1.2-20171124.204041-51
kotlinReflectVersion=1.2-20171124.204033-51 kotlinReflectVersion=1.2-20171124.204033-51
+3 -3
View File
@@ -1,5 +1,5 @@
if (!hasProperty('kotlin_version')) { if (!hasProperty('buildKotlinVersion')) {
throw new GradleException('Please ensure the "kotlin_version" property is defined before applying this script.') throw new GradleException('Please ensure the "buildKotlinVersion" property is defined before applying this script.')
} }
project.buildscript.repositories { project.buildscript.repositories {
@@ -7,5 +7,5 @@ project.buildscript.repositories {
} }
project.buildscript.dependencies { project.buildscript.dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$buildKotlinVersion"
} }
+1 -1
View File
@@ -21,6 +21,6 @@ buildscript {
apply plugin: 'kotlin' apply plugin: 'kotlin'
dependencies { dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
compile project(path: ':backend.native', configuration: 'cli_bc') compile project(path: ':backend.native', configuration: 'cli_bc')
} }
+1 -1
View File
@@ -21,5 +21,5 @@ buildscript {
apply plugin: 'kotlin' apply plugin: 'kotlin'
dependencies { dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
} }
@@ -61,7 +61,7 @@ task pluginMetadata {
dependencies { dependencies {
compile project(':shared') compile project(':shared')
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
compile gradleApi() compile gradleApi()
testCompile gradleTestKit() testCompile gradleTestKit()
@@ -103,7 +103,7 @@ publishing {
def stdlibDep = xml.asNode().appendNode("dependencies").appendNode("dependency") def stdlibDep = xml.asNode().appendNode("dependencies").appendNode("dependency")
stdlibDep.appendNode("groupId", "org.jetbrains.kotlin") stdlibDep.appendNode("groupId", "org.jetbrains.kotlin")
stdlibDep.appendNode("artifactId", "kotlin-stdlib") stdlibDep.appendNode("artifactId", "kotlin-stdlib")
stdlibDep.appendNode("version", "$kotlin_version") stdlibDep.appendNode("version", "$buildKotlinVersion")
} }
} }
} }
+1 -1
View File
@@ -21,7 +21,7 @@ buildscript {
apply plugin: 'kotlin' apply plugin: 'kotlin'
dependencies { dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
compile project(':backend.native') compile project(':backend.native')
compile project(':Interop:StubGenerator') compile project(':Interop:StubGenerator')
compile project(':klib') compile project(':klib')