-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
96 lines (76 loc) · 2.64 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.72' apply false
id 'org.jetbrains.kotlin.kapt' version '1.3.72' apply false
id "com.kdabir.mksrc" version "1.1.0"
}
subprojects {
group = 'com.medly.apifi'
repositories {
jcenter()
}
}
configure(subprojects.findAll {it.name != 'plugin'}) { // no java component publishing for plugin
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'org.jetbrains.kotlin.kapt'
apply plugin: "com.kdabir.mksrc"
apply plugin: "maven-publish"
dependencies {
implementation platform('org.jetbrains.kotlin:kotlin-bom')
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
testImplementation 'io.kotest:kotest-runner-junit5-jvm:4.1.1'
testImplementation 'io.kotest:kotest-assertions-core-jvm:4.1.1'
testImplementation 'io.kotest:kotest-property-jvm:4.1.1'
testImplementation 'io.kotest:kotest-runner-console-jvm:4.1.1'
testImplementation "io.mockk:mockk:1.9.3"
}
test {
useJUnitPlatform()
testLogging {
events "PASSED", "FAILED", "SKIPPED"
exceptionFormat "full"
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
project(":codegen") {
dependencies {
implementation 'io.swagger.parser.v3:swagger-parser-v3:2.0.16'
implementation 'org.openapitools:openapi-generator-cli:4.3.1'
implementation 'com.squareup:kotlinpoet:1.6.0'
implementation 'org.slf4j:slf4j-simple:1.7.30'
implementation 'org.apache.commons:commons-text:1.8'
}
}
project(":cli") {
apply plugin: 'application'
applicationName = 'apifi-codegen'
mainClassName = "apifi.cli.ApifiCliKt"
dependencies {
implementation project(":codegen")
implementation "com.github.ajalt:clikt:2.7.1"
}
}
project(":runtime") {
dependencies {
// todo do we need kapt in this project?
// kapt(platform("io.micronaut:micronaut-bom:$micronautVersion"))
// kapt("io.micronaut:micronaut-inject-java")
implementation(platform("io.micronaut:micronaut-bom:$micronautVersion"))
implementation("io.micronaut:micronaut-inject")
implementation("io.micronaut:micronaut-http")
implementation("io.micronaut:micronaut-http-server")
// todo do we need kapt in this project?
// kaptTest("io.micronaut:micronaut-inject-java")
}
}