-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
42 lines (34 loc) · 975 Bytes
/
build.gradle.kts
File metadata and controls
42 lines (34 loc) · 975 Bytes
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
plugins {
java
application
kotlin("jvm") version "1.4.0"
}
group = "it.unibo.tuprolog.dsl"
version = "1.0-SNAPSHOT"
val ktFreeCompilerArgs: String by project
val tuPrologVersion: String by project
repositories {
maven("https://dl.bintray.com/pika-lab/tuprolog/")
mavenCentral()
}
dependencies {
api(kotlin("stdlib-jdk8"))
implementation("it.unibo.tuprolog", "dsl-solve-jvm", tuPrologVersion)
// implementation("it.unibo.tuprolog", "parser-theory-jvm", tuPrologVersion)
testImplementation("junit", "junit", "4.12")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = ktFreeCompilerArgs.split(";").toList()
}
}
application {
mainClassName = "it.unibo.tuprolog.dsl.solve.ExampleKt"
}
tasks.getByName<JavaExec>("run") {
standardInput = System.`in`
}