-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
91 lines (78 loc) · 2.98 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.9.23"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("org.jetbrains.kotlin.plugin.noarg") version kotlinVersion
id("org.jetbrains.kotlin.plugin.allopen") version kotlinVersion
id("net.mamoe.mirai-console") version "2.16.0"
id("com.github.gmazzo.buildconfig") version "4.1.1"
id("io.ktor.plugin") version "3.0.0-beta-1"
}
mirai {
noTestCore = true
setupConsoleTestRuntime {
// 移除 mirai-core 依赖
classpath = classpath.filter {
!it.nameWithoutExtension.startsWith("mirai-core-jvm")
}
}
}
group = "com.yulin"
version = "1.1.2"
buildConfig {
className("BuildConfig")
packageName("com.yulin.cg")
buildConfigField("String", "yulinVersion", "\"${version}\"")
buildConfigField("String", "name", "\"图片审核\"")
buildConfigField("String", "id", "\"com.yulin.ImageCheck\"")
}
repositories {
mavenLocal()
// maven("https://maven.aliyun.com/repository/gradle-plugin")
// maven("https://maven.aliyun.com/repository/public")
// maven("https://maven.aliyun.com/repository/central")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
mavenCentral()
}
val ktor_version = "3.0.0-beta-1"
dependencies {
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-client-json:$ktor_version")
implementation("io.ktor:ktor-client-serialization:$ktor_version")
implementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
implementation ("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
implementation("org.apache.commons:commons-lang3:3.12.0")
implementation("org.jsoup:jsoup:1.15.3")
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
implementation("com.alibaba:fastjson:2.0.0")
testConsoleRuntime("top.mrxiaom:overflow-core:2.16.0-d59ef26-SNAPSHOT")
implementation("org.bytedeco:javacv:1.5.7")
implementation("org.bytedeco:javacpp:1.5.7")
implementation("org.bytedeco:ffmpeg:5.0-1.5.7")
//图片审核SDK
implementation("com.baidu.aip:java-sdk:4.16.17")
implementation("com.aliyun:green20220302:2.2.5")
implementation("com.qcloud:cos_api:5.6.213")
implementation("com.madgag:animated-gif-lib:1.4")
compileOnly("org.bytedeco:javacv-platform:1.5.7")
// compileOnly("xyz.cssxsh.mirai:mirai-hibernate-plugin:2.8.0")
// compileOnly
implementation(kotlin("stdlib-jdk8"))
}
noArg {
annotation("com.yulin.anno.NoArgOpenDataClass")
}
allOpen{
annotation("com.yulin.anno.NoArgOpenDataClass")
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "17"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "17"
}