-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
56 lines (42 loc) · 1.25 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
plugins {
java
application
id("com.github.johnrengelman.shadow") version "8.1.0" // 版本根据需要调整
}
repositories {
mavenCentral()
maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") }
}
group = "org.example"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
application {
mainClass.set("org.example.Main")
}
val taieVersion = "0.5.1-SNAPSHOT" // or the latest version "0.5.1-SNAPSHOT"
tasks {
jar {
manifest {
attributes(
"Main-Class" to "org.example.Main", // 主类路径
"Tai-e-Version" to taieVersion,
)
}
}
}
dependencies {
implementation("net.pascal-lab:tai-e:$taieVersion")
implementation("org.apache.logging.log4j:log4j-api:2.23.0")
implementation("org.apache.logging.log4j:log4j-core:2.23.0")
implementation("commons-cli:commons-cli:1.4")
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.14")
implementation("com.fasterxml.jackson.core:jackson-databind:2.18.0")
implementation("com.knuddels:jtokkit:1.1.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
}