-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
70 lines (58 loc) · 1.66 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
buildscript {
ext.isTravis = System.getenv("TRAVIS") == "true"
ext.travisBuildNumber = System.getenv("TRAVIS_BUILD_NUMBER")
ext.isReleaseVersion = !isTravis
ext.kotlin_version = '1.3.72'
ext.serializationVersion = "0.20.0"
ext.avroVersion = "1.90.2"
ext.kotlinTestVersion = "3.4.2"
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.3.72'
id 'java'
id 'maven'
id 'maven-publish'
id 'signing'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
url 'https://plugins.gradle.org/m2/'
}
}
group = "com.sksamuel.avro4k"
if (isTravis) {
version "0.31." + travisBuildNumber + "-SNAPSHOT"
} else {
version "0.30.0"
}
tasks.withType(Javadoc) {
onlyIf { isReleaseVersion }
}
dependencies {
api "com.sksamuel.avro4k:avro4k-core:0.30.0"
implementation 'io.arrow-kt:arrow-core-data:0.10.5'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serializationVersion"
testImplementation "io.kotlintest:kotlintest-runner-junit5:$kotlinTestVersion"
testImplementation "io.kotlintest:kotlintest-assertions:$kotlinTestVersion"
testImplementation "io.kotlintest:kotlintest-assertions-json:$kotlinTestVersion"
}
test {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
project(":") {
publish.enabled = false
}
apply from: './publish.gradle'