Aurimas Liutikas | 9b8c48a | 2023-04-19 17:55:39 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -e |
| 3 | |
Andrei Shikov | b39fc80 | 2023-08-23 02:30:06 +0100 | [diff] [blame] | 4 | KOTLIN_VERSION="$1" |
Aurimas Liutikas | 9b8c48a | 2023-04-19 17:55:39 -0700 | [diff] [blame] | 5 | |
Andrei Shikov | 98d084d | 2023-11-02 19:06:02 +0000 | [diff] [blame] | 6 | ALLOW_JETBRAINS_DEV="" |
| 7 | for arg in "$@" |
| 8 | do |
| 9 | if [ "$arg" == "--allow-jetbrains-dev" ]; then |
| 10 | ALLOW_JETBRAINS_DEV="--allow-jetbrains-dev" |
| 11 | fi |
| 12 | done |
| 13 | |
Aurimas Liutikas | 9b8c48a | 2023-04-19 17:55:39 -0700 | [diff] [blame] | 14 | # Download maven artifacts |
| 15 | ARTIFACTS_TO_DOWNLOAD="org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION," |
| 16 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:$KOTLIN_VERSION," |
| 17 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin.plugin.serialization:org.jetbrains.kotlin.plugin.serialization.gradle.plugin:$KOTLIN_VERSION," |
Andrei Shikov | b39fc80 | 2023-08-23 02:30:06 +0100 | [diff] [blame] | 18 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-serialization-compiler-plugin-embeddable:$KOTLIN_VERSION," |
Aurimas Liutikas | 9b8c48a | 2023-04-19 17:55:39 -0700 | [diff] [blame] | 19 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-test:$KOTLIN_VERSION," |
| 20 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-test-junit:$KOTLIN_VERSION," |
Andrei Shikov | b39fc80 | 2023-08-23 02:30:06 +0100 | [diff] [blame] | 21 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-stdlib-common:$KOTLIN_VERSION," |
Aurimas Liutikas | 9b8c48a | 2023-04-19 17:55:39 -0700 | [diff] [blame] | 22 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-stdlib-jdk8:$KOTLIN_VERSION," |
Andrei Shikov | b39fc80 | 2023-08-23 02:30:06 +0100 | [diff] [blame] | 23 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:$KOTLIN_VERSION," |
| 24 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-compiler:$KOTLIN_VERSION," |
| 25 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-compiler-embeddable:$KOTLIN_VERSION," |
| 26 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:$KOTLIN_VERSION," |
| 27 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-parcelize-runtime:$KOTLIN_VERSION," |
| 28 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-annotation-processing-gradle:$KOTLIN_VERSION," |
| 29 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-parcelize-compiler:$KOTLIN_VERSION," |
| 30 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-bom:$KOTLIN_VERSION," |
Andrei Shikov | b4902f3 | 2023-08-12 05:14:30 +0100 | [diff] [blame] | 31 | ARTIFACTS_TO_DOWNLOAD+="org.jetbrains.kotlin:kotlin-reflect:$KOTLIN_VERSION," |
Aurimas Liutikas | 9b8c48a | 2023-04-19 17:55:39 -0700 | [diff] [blame] | 32 | |
Andrei Shikov | 98d084d | 2023-11-02 19:06:02 +0000 | [diff] [blame] | 33 | ./development/importMaven/importMaven.sh "$ALLOW_JETBRAINS_DEV" "$ARTIFACTS_TO_DOWNLOAD" |
Andrei Shikov | b39fc80 | 2023-08-23 02:30:06 +0100 | [diff] [blame] | 34 | |
| 35 | # Import konan binaries |
Andrei Shikov | 98d084d | 2023-11-02 19:06:02 +0000 | [diff] [blame] | 36 | ./development/importMaven/importMaven.sh "$ALLOW_JETBRAINS_DEV" import-konan-binaries --konan-compiler-version "$KOTLIN_VERSION" |