-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
66 lines (57 loc) · 1.57 KB
/
build.gradle
File metadata and controls
66 lines (57 loc) · 1.57 KB
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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenLocal()
maven {
url = uri('https://nexus-private.hortonworks.com/nexus/content/groups/public')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'junit:junit:4.13.2'
implementation 'com.google.code.gson:gson:2.8.7'
}
group = 'com.fectron'
version = '1'
description = 'fcl'
java.sourceCompatibility = JavaVersion.VERSION_1_8
task repl(type: JavaExec) {
group = "application"
description = "Start the REPL"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.vectron.fcl.cli.Main'
standardInput = System.in
logging.captureStandardOutput(LogLevel.QUIET)
logging.captureStandardError(LogLevel.QUIET)
systemProperty 'fcl.lib.dir', 'src/main/res/raw'
}
task eval_file(type: JavaExec) {
group = "application"
description = "Eval a file"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.vectron.fcl.cli.Main'
standardInput = System.in
logging.captureStandardOutput(LogLevel.QUIET)
logging.captureStandardError(LogLevel.QUIET)
systemProperty 'fcl.lib.dir', 'src/main/res/raw'
doFirst {
if (!project.hasProperty('file')) {
throw new GradleException("Please specify the file using -Pfile=yourfile.fcl")
}
args project.property('file')
}
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}