-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
80 lines (65 loc) · 2.2 KB
/
build.gradle
File metadata and controls
80 lines (65 loc) · 2.2 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
buildscript {
ext.kotlin_version = '1.3.41'
repositories { mavenCentral() }
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
repositories {
mavenCentral()
jcenter()
maven { url "http://dl.bintray.com/arrow-kt/arrow-kt/" }
maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local/" }
}
def JUNIT_JUPITER_VERSION = "5.1.0"
def MOCKITO_VERSION = "2.17.0"
def ARROW_VERSION = "0.10.0-SNAPSHOT"
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
[ 'core', 'syntax', 'mtl', 'optics', 'fx', 'recursion', 'free', 'aql' ].forEach {
compile "io.arrow-kt:arrow-${it}:$ARROW_VERSION"
}
// kapt "io.arrow-kt:arrow-meta:$ARROW_VERSION"
compile('org.jetbrains.kotlin:kotlin-stdlib-jdk8')
compile "org.jetbrains.kotlin:kotlin-reflect"
compile "org.jetbrains.kotlin:kotlin-script-runtime"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1"
runtime "org.slf4j:slf4j-simple:1.7.25"
runtime "mysql:mysql-connector-java:5.1.44"
testCompile "org.jetbrains.kotlin:kotlin-test"
testCompile "org.jetbrains.kotlin:kotlin-test-junit"
testImplementation "org.junit.jupiter:junit-jupiter-api:${JUNIT_JUPITER_VERSION}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${JUNIT_JUPITER_VERSION}"
testCompileOnly "junit:junit:4.12"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${JUNIT_JUPITER_VERSION}"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${JUNIT_JUPITER_VERSION}"
testCompile "org.mockito:mockito-core:${MOCKITO_VERSION}"
testCompile "org.mockito:mockito-junit-jupiter:${MOCKITO_VERSION}"
testRuntime "com.h2database:h2:1.4.199"
}
// gradle publishdb4kPublicationToMavenLocal
// or publishMavenPublicationPublicationToMavenLocal ??
/*
group = 'io.db4k'
version = '0.0.4'
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'db4k'
from components.kotlin
}
}
}
*/