-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
69 lines (56 loc) · 1.71 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
import tanvd.kosogor.proxy.publishJar
group = "tanvd.aorm"
version = "1.1.17"
plugins {
kotlin("jvm") version "1.8.21" apply true
id("tanvd.kosogor") version "1.0.18"
}
val artifactoryUploadEnabled = System.getenv("artifactory_url") != null
repositories {
mavenCentral()
if (artifactoryUploadEnabled)
maven(System.getenv("artifactory_url")!!)
}
dependencies {
api(kotlin("stdlib"))
api("com.clickhouse", "clickhouse-jdbc", "0.4.6")
api("joda-time", "joda-time", "2.12.2")
api("org.slf4j", "slf4j-api", "1.7.36")
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.8.2")
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.8.2")
testImplementation("org.testcontainers", "clickhouse", "1.18.1")
testImplementation("org.lz4", "lz4-java", "1.8.0")
}
tasks.withType<JavaCompile> {
targetCompatibility = "11"
sourceCompatibility = "11"
}
tasks.withType<KotlinJvmCompile>().configureEach {
kotlinOptions {
jvmTarget = "11"
apiVersion = "1.8"
languageVersion = "1.8"
freeCompilerArgs += "-Xuse-ir"
freeCompilerArgs += "-Xbackend-threads=3"
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
publishJar {
publication {
artifactId = "aorm"
}
if (artifactoryUploadEnabled) {
artifactory {
serverUrl = System.getenv("artifactory_url")
repository = System.getenv("artifactory_repo")
username = System.getenv("artifactory_username")
secretKey = System.getenv("artifactory_api_key") ?: ""
}
}
}