-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (58 loc) · 2.1 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.20'
}
group 'io.github.douglasgabriel'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
}
apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName = 'io.github.douglasgabriel.Main'
tasks.withType(Test) {
environment 'SERVER_PORT', '7000'
environment 'NEO4J_PASSWORD', 'password'
environment 'NEO4J_URL', 'bolt://localhost:7687'
environment 'NEO4J_USERNAME', 'neo4j'
useJUnitPlatform {
includeEngines 'spek2'
}
}
dependencies {
def neo4jCore = '3.1.7'
def neo4jDependencies = '3.5.3'
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile 'org.koin:koin-core:1.0.2'
compile 'io.javalin:javalin:2.6.0'
compile "org.slf4j:slf4j-simple:1.7.25"
compile "com.fasterxml.jackson.core:jackson-databind:2.9.8"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8"
compile 'de.huxhorn.sulky:de.huxhorn.sulky.ulid:8.2.0'
compile 'com.natpryce:konfig:1.6.10.0'
compile "org.neo4j:neo4j-ogm-core:$neo4jCore"
compile "org.json:json:20090211"
runtime "org.neo4j:neo4j-ogm-bolt-driver:$neo4jCore"
testCompile 'io.mockk:mockk:1.8.6'
testCompile 'com.github.kittinunf.fuel:fuel:2.0.1'
testCompile 'org.jetbrains.kotlin:kotlin-test-junit:1.2.61'
testRuntimeOnly "org.neo4j:neo4j-ogm-embedded-driver:$neo4jCore"
testRuntimeOnly "org.neo4j:neo4j-kernel:$neo4jDependencies"
testRuntimeOnly "org.neo4j:neo4j-lucene-index:$neo4jDependencies"
testRuntimeOnly "org.neo4j:neo4j-cypher:$neo4jDependencies"
testRuntimeOnly "org.neo4j:neo4j:$neo4jDependencies"
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.2.0'
testImplementation ('org.spekframework.spek2:spek-dsl-jvm:2.0.0-rc.1') {
exclude group: 'org.jetbrains.kotlin'
}
testRuntimeOnly ('org.spekframework.spek2:spek-runner-junit5:2.0.0-rc.1') {
exclude group: 'org.junit.platform'
exclude group: 'org.jetbrains.kotlin'
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}