-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
84 lines (72 loc) · 2.08 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
plugins {
kotlin("jvm") version "1.5.10"
`maven-publish`
id("bot.inker.boot.scaner").version("1.1.2-SNAPSHOT")
}
group = "bot.inker"
version = "1.0-SNAPSHOT"
description = "A modern bot framework"
// version = "1.0-SNAPSHOT-${System.currentTimeMillis()}"
subprojects {
apply(plugin = "kotlin")
}
allprojects {
apply(plugin = "maven-publish")
repositories {
mavenLocal()
maven("https://maven.aliyun.com/repository/public")
maven("https://www.jitpack.io")
mavenCentral()
}
publishing {
repositories {
mavenLocal()
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
}
dependencies {
api(project(":api"))
api("org.apache.maven.resolver:maven-resolver-impl:1.7.1")
api("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.1")
api("org.apache.maven.resolver:maven-resolver-transport-http:1.7.1")
api("org.apache.maven:maven-resolver-provider:3.8.1")
implementation("org.apache.logging.log4j:log4j-api:2.17.1")
implementation("org.apache.logging.log4j:log4j-core:2.17.1")
implementation("org.apache.logging.log4j:log4j-slf4j-impl:2.17.1")
implementation("org.apache.logging.log4j:log4j-jul:2.17.1")
implementation("com.h2database:h2:2.0.204")
booterClasspath(kotlin("stdlib")) // Idea issue: If kotlin not in appClassloader, It can't debug this
booterClasspath(kotlin("reflect"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.0-M1")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.8.0-M1")
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.processResources {
filesMatching("META-INF/plugin.json") {
expand(mapOf(
"pluginName" to project.name,
"pluginVersion" to project.version,
"pluginDescribe" to project.description
))
}
}
tasks.bootRepo {
mainClass.set("bot.inker.core.MainKt")
mavenUrl.set("http://localhost:8080/")
repoUrl.set("http://localhost:8080/repo")
}
tasks.devRepoServer {
port.set(8080)
}
tasks.jijJar {
archiveBaseName.set("InkerBot")
archiveVersion.set("")
archiveClassifier.set("app")
}