forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (55 loc) · 1.7 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
apply plugin: 'kotlin'
apply from: "$projectDir/ext.gradle"
apply from: "$projectDir/publish.gradle"
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
classpath "io.github.gradle-nexus:publish-plugin:1.1.0"
}
}
allprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs = ['-Xjvm-default=all']
languageVersion = "1.5"
apiVersion = "1.5"
}
}
project.tasks.withType(PublishToMavenRepository) { task ->
task.finalizedBy(reportBuildNumber)
}
project.tasks.withType(PublishToMavenLocal) { task ->
task.finalizedBy(reportVersion)
}
}
repositories {
mavenCentral()
}
sourceSets {
main {
java.srcDirs += 'src/generated/kotlin'
}
}
test {
useJUnitPlatform()
}
def versions = [
jackson: "2.14.0",
jsonAssert: "1.5.1",
junit5: "5.9.1",
kotlin: "1.7.20"
]
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
implementation "org.jetbrains.kotlin:kotlin-reflect:$versions.kotlin"
implementation "com.fasterxml.jackson.core:jackson-annotations:$versions.jackson"
implementation "com.fasterxml.jackson.core:jackson-databind:$versions.jackson"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:$versions.jackson"
testImplementation "org.junit.jupiter:junit-jupiter-api:$versions.junit5"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$versions.junit5"
testImplementation "org.skyscreamer:jsonassert:$versions.jsonAssert"
}