-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
49 lines (38 loc) · 1.25 KB
/
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
44
45
46
47
48
project (":console") {
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'antlr'
group 'ru.nizhikov'
version '1.0-SNAPSHOT'
dependencies {
antlr 'org.antlr:antlr4:4.10.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
implementation 'info.picocli:picocli:4.6.3'
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.18.0'
implementation 'org.apache.logging.log4j:log4j-core:2.18.0'
implementation 'commons-io:commons-io:2.11.0'
}
test {
useJUnitPlatform()
}
generateGrammarSource {
outputDirectory = new File("${project.buildDir}/generated-src/antlr/main/ru/nizhikov/cockroach/antlr".toString())
}
jar {
manifest {
attributes(
"Main-Class" : "ru.nizhikov.cockroach.cmd.Main",
"Class-Path" : configurations.runtimeClasspath.collect { it.getName() }.join(' ')
)
}
}
task copyToLib(type: Copy) {
into "${buildDir}/libs"
from configurations.runtimeClasspath
}
jar.dependsOn(copyToLib)
}