-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
124 lines (108 loc) · 5.12 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
buildscript {
ext.kotlin_version = '1.9.20'
ext.kotlinx_coroutines = '1.7.3'
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/apache-snapshots' }
maven { url 'https://maven.aliyun.com/repository/spring' }
maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
maven { url 'https://maven.aliyun.com/repository/grails-core' }
maven { url 'https://mirrors.huaweicloud.com/repository/maven/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url "https://kotlin.bintray.com/kotlin-eap" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.9.20'
}
group 'com.simon'
version '1.0-SNAPSHOT'
apply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/apache-snapshots' }
maven { url 'https://maven.aliyun.com/repository/spring' }
maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
maven { url 'https://maven.aliyun.com/repository/grails-core' }
maven { url 'https://mirrors.huaweicloud.com/repository/maven/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url "https://kotlin.bintray.com/kotlin-eap" }
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-common:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$kotlinx_coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-rx3:$kotlinx_coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$kotlinx_coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk9:$kotlinx_coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-guava:$kotlinx_coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactive:$kotlinx_coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlinx_coroutines"
testImplementation "junit:junit:4.13.2"
// RxJava
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
//Okhttp
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation "com.squareup.okhttp3:logging-interceptor:4.10.0"
implementation 'com.squareup.okio:okio:3.4.0'
// Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
//guava
implementation 'com.google.guava:guava:32.0.0-jre'
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.alibaba:fastjson:2.0.19'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.slf4j:slf4j-log4j12:2.0.4'
implementation 'com.auth0:java-jwt:4.2.1'
implementation 'com.auth0:jwks-rsa:0.21.2'
implementation 'com.google.dagger:dagger:2.48.1'
kapt 'com.google.dagger:dagger-compiler:2.48.1'
implementation('io.ktor:ktor-client-core-jvm:2.3.6')
implementation('io.ktor:ktor-client-cio-jvm:2.3.6')
implementation('io.ktor:ktor-client-websockets-jvm:2.3.6')
implementation('io.ktor:ktor-server-core-jvm:2.3.6')
implementation('io.ktor:ktor-server-netty-jvm:2.3.6')
implementation 'com.squareup:javapoet:1.13.0'
//ASM依赖
implementation "org.ow2.asm:asm:8.0"
implementation "org.ow2.asm:asm-util:8.0"
implementation "org.ow2.asm:asm-commons:8.0"
implementation 'org.ow2.asm:asm-analysis:8.0'
implementation 'org.ow2.asm:asm-tree:8.0'
implementation 'commons-io:commons-io:2.11.0'
}
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}