forked from Nekoer/mirai-plugins-pixiv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
85 lines (69 loc) · 2.41 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.9.20"
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("me.him188.maven-central-publish") version "1.0.0-dev-3"
}
group = "com.hcyacg"
version = "1.7.8"
repositories {
maven("https://maven.aliyun.com/repository/central")
maven("https://maven.aliyun.com/repository/gradle-plugin")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
}
mirai {
noTestCore = true
setupConsoleTestRuntime {
// 移除 mirai-core 依赖
classpath = classpath.filter {
!it.nameWithoutExtension.startsWith("mirai-core-jvm")
}
}
}
dependencies {
implementation("org.apache.commons:commons-lang3:3.14.0")
val overflowVersion = "2.16.0-febc5da-SNAPSHOT"
testConsoleRuntime("top.mrxiaom:overflow-core:$overflowVersion")
implementation("commons-codec:commons-codec:1.15")
implementation("org.apache.httpcomponents:httpclient:4.5.14")
implementation("org.jsoup:jsoup:1.15.4")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("com.madgag:animated-gif-lib:1.4")
compileOnly("org.bytedeco:javacv-platform:1.5.10")
// compileOnly
implementation(kotlin("stdlib-jdk8"))
}
noArg {
annotation("com.hcyacg.anno.NoArgOpenDataClass")
}
allOpen{
annotation("com.hcyacg.anno.NoArgOpenDataClass")
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}
mavenCentralPublish {
artifactId = "pixiv"
groupId = "com.hcyacg"
projectName = "mirai plugins pixiv"
//developer(1,"Nekoer","[email protected]","","","","")
// workingDir = rootProject.buildDir.resolve("pub").apply { mkdirs() }
// description from project.description by default
//githubProject("Nekoer", "mirai-plugins-pixiv")
singleDevGithubProject("Nekoer", "mirai-plugins-pixiv")
useCentralS01()
licenseFromGitHubProject("AGPL-3.0", "master")
publication {
artifact(tasks.getByName("buildPlugin"))
artifact(tasks.getByName("buildPluginLegacy"))
}
}