-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
76 lines (64 loc) · 2.02 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
plugins {
id "org.jetbrains.dokka" version '0.9.18'
// id "idea"
}
version '1.0.0'
allprojects {
repositories {
jcenter()
}
}
subprojects {
apply plugin: "java"
apply plugin: "maven-publish"
group 'ai.scynet'
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
// https://github.com/kotlintest/kotlintest
testImplementation 'io.kotlintest:kotlintest-runner-junit5:3.3.0'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12
testImplementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '2.0.0-alpha0'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.0-alpha0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.12.0'
// https://github.com/mockk/mockk
testImplementation "io.mockk:mockk:1.9.3"
// https://insert-koin.io/docs/2.0/documentation/reference/index.html
implementation group: 'org.koin', name: 'koin-core', version: '2.0.1'
testImplementation 'org.koin:koin-test:2.0.1'
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
afterEvaluate {
artifactId = jar.archiveBaseName.get()
}
}
}
}
}
// https://github.com/Kotlin/dokka
dokka {
outputFormat = 'kotlin-website'
outputDirectory = "docs"
kotlinTasks {
subprojects.collectMany { project -> project.hasProperty("compileKotlin") ? [ project.compileKotlin ] : [] }
}
}
if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}
subprojects.findAll { it.name != 'core' }.each {
configure(it) {
dependencies {
implementation project(':core')
}
}
}