-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
43 lines (36 loc) · 928 Bytes
/
build.gradle
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
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceSets {
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
libsDirName = '..'
jar {
archiveBaseName = "leekscript"
manifest {
attributes "Main-Class": "leekscript.TopLevel"
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.12'
implementation group: 'com.alibaba', name: 'fastjson', version: '1.1.25'
}
task tests(type: Exec) {
group = "Execution"
description = "Run the main class with ExecTask"
commandLine "java", "-classpath", sourceSets.test.runtimeClasspath.getAsPath(), "test.TestMain"
}
test.dependsOn(tests)