-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
123 lines (107 loc) · 3.07 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
buildscript {
ext.versions = [
"kotlin" : "1.3.61",
"jackson": "2.10.2",
]
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2"
}
}
dependencies {
classpath(
"org.jetbrains.dokka:dokka-gradle-plugin:0.10.0",
"org.jetbrains.kotlin:kotlin-allopen:${versions["kotlin"]}",
"org.jetbrains.kotlin:kotlin-gradle-plugin:${versions["kotlin"]}",
"org.jetbrains.kotlin:kotlin-noarg:${versions["kotlin"]}",
"org.jetbrains.kotlin:kotlin-serialization:${versions["kotlin"]}",
)
}
}
apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "org.jetbrains.dokka"
allprojects {
group 'com.luggsoft.k4'
version '1.0-SNAPSHOT'
repositories {
jcenter()
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/luggsoft/common")
credentials {
username = System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_PASSWORD")
}
}
}
dokka {
outputFormat = 'html'
outputDirectory = "$buildDir/dokka"
subProjects = [
"k4-cli",
"k4-core",
"k4-example",
]
configuration {
includes = [
"README.md",
]
}
}
}
subprojects {
apply plugin: "java"
apply plugin: "kotlin"
apply plugin: "kotlin-allopen"
apply plugin: "kotlin-noarg"
apply plugin: "org.jetbrains.kotlin.jvm"
sourceCompatibility = "1.8"
dependencies {
api(
"com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${versions['jackson']}",
"com.fasterxml.jackson.module:jackson-module-kotlin:${versions['jackson']}",
"com.luggsoft.common:common-commands:1.0-SNAPSHOT",
"com.luggsoft.common:common-util:1.0-SNAPSHOT",
"org.apache.logging.log4j:log4j-api:2.13.0",
"org.apache.logging.log4j:log4j-core:2.13.0",
"org.apache.logging.log4j:log4j-slf4j-impl:2.13.0",
"org.jetbrains.kotlin:kotlin-stdlib-jdk8",
)
testImplementation(
"org.junit.jupiter:junit-jupiter:5.6.0",
)
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform()
filter {
includeTestsMatching "*Test"
}
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/luggsoft/k4")
credentials {
username = System.getenv("GITHUB_USERNAME")
password = System.getenv("GITHUB_PASSWORD")
}
}
}
publications {
gpr(MavenPublication) {
from components.java
}
}
}