-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
88 lines (78 loc) · 2.47 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.6.21'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'antlr'
id "kr.motd.sphinx" version "2.10.0"
id 'scala'
}
group = 'org.smolang'
version = '0.4'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
repositories {
mavenCentral()
maven { url "https://overture.au.dk/artifactory/libs-release/" }
}
test {
useJUnitPlatform()
}
sourceSets {
main {
java.srcDirs += 'build/generated-src/main'
kotlin.srcDirs += 'build/generated-src/main'
antlr.srcDirs += 'src/main/antlr'
}
}
dependencies {
implementation 'com.google.guava:guava:22.0'
testImplementation 'io.kotest:kotest-runner-junit5:5.2.3'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
testImplementation 'org.apache.commons:commons-lang3:3.12.0'
testImplementation 'org.apache.jena:jena-fuseki-main:3.16.0'
implementation 'com.github.ajalt.clikt:clikt:3.4.2'
implementation 'org.antlr:antlr4:4.8'
antlr 'org.antlr:antlr4:4.8'
implementation 'net.sourceforge.owlapi:org.semanticweb.hermit:1.4.5.519'
implementation 'org.slf4j:slf4j-simple:1.7.25'
implementation 'org.apache.jena:apache-jena-libs:3.16.0'
implementation 'org.apache.jena:jena-core:3.16.0'
implementation 'org.siani.javafmi:fmu-wrapper:2.26.3'
implementation "com.influxdb:influxdb-client-kotlin:2.3.0"
implementation 'com.sksamuel.hoplite:hoplite-core:1.4.1'
implementation 'com.sksamuel.hoplite:hoplite-yaml:1.4.1'
implementation 'com.github.owlcs:ontapi:2.1.0'
implementation 'org.jline:jline:3.21.0'
}
generateGrammarSource {
outputDirectory = file("build/generated-src/main/no/uio/microobject/antlr")
arguments += ["-visitor"]
}
compileKotlin {
kotlinOptions.jvmTarget = project.sourceCompatibility
}
compileKotlin.dependsOn generateGrammarSource
compileTestKotlin.dependsOn generateTestGrammarSource
jar {
archiveFileName='smol.jar'
manifest {
attributes 'Main-Class': 'no.uio.microobject.main.MainKtKt'
}
}
shadowJar {
archiveFileName='smol.jar'
}
assemble.dependsOn shadowJar
sphinx {
// Documentation at
// https://trustin.github.io/sphinx-gradle-plugin/index.html
sourceDirectory = "${projectDir}/website/source"
configDirectory = "${projectDir}/website/source"
outputDirectory = "${projectDir}/website/build/html"
builder = "html"
}
clean {
delete files("${projectDir}/website/build")
}