-
Notifications
You must be signed in to change notification settings - Fork 36
/
build.gradle
47 lines (41 loc) · 1.37 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
apply plugin: 'kotlin'
apply plugin: 'signing'
apply plugin: "com.vanniktech.maven.publish"
group = 'com.github.seratch'
project.ext {
artifactId = 'kotliquery'
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildscript {
// https://search.maven.org/search?q=g:org.jetbrains.kotlin%20AND%20a:kotlin-gradle-plugin
ext.kotlin_version = '1.7.10'
ext.kotlinVersion = ext.kotlin_version
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.21.0'
}
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.slf4j:slf4j-api:1.7.36"
implementation "joda-time:joda-time:2.11.0"
// TODO: upgrade to 5+ when dropping Java 8 supports
implementation "com.zaxxer:HikariCP:4.0.3"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testImplementation "com.h2database:h2:2.1.214"
testImplementation "junit:junit:4.13.2"
testImplementation "ch.qos.logback:logback-classic:1.2.11"
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
}
mavenPublishing {
publishToMavenCentral()
signAllPublications()
}