mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-22 05:10:09 +08:00
Add atomicFU and kotlinx.IO
This commit is contained in:
parent
a64123bdbf
commit
00d8e26850
@ -6,8 +6,11 @@ buildscript {
|
|||||||
maven { url "https://mirrors.huaweicloud.com/repository/maven/" }
|
maven { url "https://mirrors.huaweicloud.com/repository/maven/" }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply from: rootProject.file('dependencies.gradle')
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicfu_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,5 +14,16 @@ ext {
|
|||||||
coroutineJs = "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$coroutine_version"
|
coroutineJs = "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$coroutine_version"
|
||||||
|
|
||||||
// reflect
|
// reflect
|
||||||
reflect = "org.jetbrains.kotlin:kotlin-reflect:$coroutine_version"
|
reflect = "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||||
|
|
||||||
|
// atomicfu
|
||||||
|
atomicfu_version = "0.13.1"
|
||||||
|
atomicFUCommon = "org.jetbrains.kotlinx:atomicfu-common:$atomicfu_version"
|
||||||
|
|
||||||
|
|
||||||
|
kotlinx_io_version = "0.1.15"
|
||||||
|
kotlinxIOJvm = "org.jetbrains.kotlinx:kotlinx-io-jvm:$kotlinx_io_version"
|
||||||
|
kotlinxIOCommon = "org.jetbrains.kotlinx:kotlinx-io:$kotlinx_io_version"
|
||||||
|
kotlinxIOJS = "org.jetbrains.kotlinx:kotlinx-io-js:$kotlinx_io_version"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
apply plugin: 'kotlinx-atomicfu'
|
||||||
apply plugin: "kotlin-multiplatform"
|
apply plugin: "kotlin-multiplatform"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
@ -14,6 +15,9 @@ kotlin {
|
|||||||
implementation rootProject.ext.reflect
|
implementation rootProject.ext.reflect
|
||||||
implementation rootProject.ext.coroutine
|
implementation rootProject.ext.coroutine
|
||||||
implementation rootProject.ext.kotlinJvm
|
implementation rootProject.ext.kotlinJvm
|
||||||
|
|
||||||
|
implementation rootProject.ext.atomicFUCommon
|
||||||
|
implementation rootProject.ext.kotlinxIOCommon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
jvmMain {
|
jvmMain {
|
||||||
@ -24,12 +28,11 @@ kotlin {
|
|||||||
implementation rootProject.ext.reflect
|
implementation rootProject.ext.reflect
|
||||||
implementation rootProject.ext.coroutine
|
implementation rootProject.ext.coroutine
|
||||||
|
|
||||||
|
implementation rootProject.ext.kotlinxIOJvm
|
||||||
|
|
||||||
implementation 'org.yaml:snakeyaml:1.18'
|
implementation 'org.yaml:snakeyaml:1.18'
|
||||||
implementation 'org.jsoup:jsoup:1.12.1'
|
implementation 'org.jsoup:jsoup:1.12.1'
|
||||||
implementation 'org.ini4j:ini4j:0.5.2'
|
implementation 'org.ini4j:ini4j:0.5.2'
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
jvmTest {
|
jvmTest {
|
||||||
@ -45,10 +48,6 @@ compileKotlinJvm {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
|
||||||
compileClasspath
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.google.protobuf:protobuf-java:3.5.0'
|
compile 'com.google.protobuf:protobuf-java:3.5.0'
|
||||||
|
Loading…
Reference in New Issue
Block a user