-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
73 lines (65 loc) · 2.09 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
plugins {
kotlin("jvm") version "1.8.22"
kotlin("plugin.jpa") version "1.8.22"
kotlin("plugin.serialization") version "1.8.22"
id("net.mamoe.mirai-console") version "2.16.0"
id("me.him188.maven-central-publish") version "1.0.0"
}
group = "xyz.cssxsh.mirai"
version = "2.9.0"
mavenCentralPublish {
useCentralS01()
singleDevGithubProject("cssxsh", "mirai-hibernate-plugin")
licenseFromGitHubProject("AGPL-3.0")
workingDir = System.getenv("PUBLICATION_TEMP")?.let { file(it).resolve(projectName) }
?: buildDir.resolve("publishing-tmp")
publication {
artifact(tasks["buildPlugin"])
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
api("com.zaxxer:HikariCP:5.1.0")
api("com.h2database:h2:2.3.232")
api("org.xerial:sqlite-jdbc:3.46.1.0")
api("com.mysql:mysql-connector-j:9.0.0")
api("org.mariadb.jdbc:mariadb-java-client:3.4.1")
api("org.postgresql:postgresql:42.7.4")
api("org.reflections:reflections:0.10.2")
compileOnly("xyz.cssxsh.mirai:mirai-administrator:1.4.4")
testImplementation(kotlin("test"))
testImplementation("com.microsoft.sqlserver:mssql-jdbc:12.8.1.jre11")
//
implementation(platform("net.mamoe:mirai-bom:2.16.0"))
compileOnly("net.mamoe:mirai-core")
compileOnly("net.mamoe:mirai-core-utils")
testImplementation("net.mamoe:mirai-logging-slf4j")
testImplementation("net.mamoe:mirai-core-mock")
testImplementation("net.mamoe:mirai-core-utils")
testImplementation("net.mamoe:mirai-console-compiler-common")
//
api(platform("org.hibernate.orm:hibernate-platform:6.6.0.Final"))
api("org.hibernate.orm:hibernate-core")
api("org.hibernate.orm:hibernate-hikaricp")
api("org.hibernate.orm:hibernate-community-dialects")
//
implementation(platform("org.slf4j:slf4j-parent:2.0.15"))
testImplementation("org.slf4j:slf4j-simple")
}
mirai {
jvmTarget = JavaVersion.VERSION_11
if (System.getenv("CI").toBoolean()) {
useTestConsoleFrontEnd = null
}
}
kotlin {
explicitApi()
}
tasks {
test {
useJUnitPlatform()
}
}