-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (86 loc) · 2.96 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
gradlePluginPortal()
}
dependencies {
}
}
plugins {
id "org.jetbrains.kotlin.multiplatform" version "1.3.30" apply false
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
jcenter()
gradlePluginPortal()
maven { url "https://dl.bintray.com/arrow-kt/arrow-kt/" }
}
}
subprojects {
group = "com.mpiniarski"
version = "1.0.0"
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'kotlin-multiplatform'
kotlin {
jvm {
configure([compilations.main, compilations.test]) {
kotlinOptions {
jvmTarget = "1.8"
suppressWarnings = true
apiVersion = "1.3"
freeCompilerArgs = ["-Xallow-kotlin-package"]
}
}
}
jvmTest {
testLogging {
exceptionFormat = 'full'
}
}
dependencies {
commonMainImplementation "org.jetbrains.kotlin:kotlin-stdlib-common"
commonTestImplementation "org.jetbrains.kotlin:kotlin-test-common"
jvmApi "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines_version"
commonMainApi "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$kotlinx_coroutines_version"
jvmMainImplementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
jvmMainImplementation "org.jetbrains.kotlin:kotlin-reflect"
jvmTestImplementation "org.jetbrains.kotlin:kotlin-test-junit"
jvmTestImplementation "org.jetbrains.kotlin:kotlin-test"
jvmTestImplementation "junit:junit:4.12"
jvmTestImplementation "org.mockito:mockito-core:2.24.0"
jvmTestImplementation "org.assertj:assertj-core:3.11.1"
jvmTestImplementation "io.mockk:mockk:1.9"
}
}
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name
version = project.version
from components.kotlin
maven(MavenPublication) {
pom {
// name = project.name
// description = project.property("project.description")
// url = project.property("project.scm.url")
// licenses {
// license {
// name = project.property("project.license.name")
// url = project.property("project.license.url")
// }
// }
// scm {
// url = project.property("project.scm.url")
// }
}
}
}
}
}
}