-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle.kts
111 lines (96 loc) · 3.31 KB
/
build.gradle.kts
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
plugins {
java
}
apply(plugin = "project")
subprojects {
group = "core.demo"
version = "1.0.0"
repositories {
maven {
url = uri("https://neowu.github.io/maven-repo/")
content {
includeGroupByRegex("core\\.framework.*")
}
}
}
if (childProjects.isEmpty()) {
sourceSets {
create("dev") {
java.srcDir("src/dev/java")
compileClasspath += sourceSets["main"].runtimeClasspath
runtimeClasspath += sourceSets["main"].runtimeClasspath
}
}
}
}
val coreNGVersion = "9.1.3"
val hsqlVersion = "2.7.2"
val jacksonVersion = "2.17.2"
configure(subprojects.filter { it.name.endsWith("-db-migration") }) {
apply(plugin = "db-migration")
dependencies {
runtimeOnly("com.mysql:mysql-connector-j:8.4.0")
runtimeOnly("org.postgresql:postgresql:42.7.1")
}
}
configure(subprojects.filter { it.name.endsWith("-es-migration") }) {
apply(plugin = "app")
dependencies {
implementation("core.framework:core-ng:${coreNGVersion}")
implementation("core.framework:core-ng-search:${coreNGVersion}")
}
tasks.register("esMigrate") {
dependsOn("run")
}
}
configure(subprojects.filter { it.name.endsWith("-mongo-migration") }) {
apply(plugin = "app")
dependencies {
implementation("core.framework:core-ng:${coreNGVersion}")
implementation("core.framework:core-ng-mongo:${coreNGVersion}")
}
tasks.register("mongoMigrate") {
dependsOn("run")
}
}
configure(subprojects.filter { it.name.endsWith("-service-interface") }) {
dependencies {
implementation("core.framework:core-ng-api:${coreNGVersion}")
}
}
configure(listOf(project(":demo-service"), project(":demo-site"))) {
apply(plugin = "app")
dependencies {
implementation("core.framework:core-ng:${coreNGVersion}")
testImplementation("core.framework:core-ng-test:${coreNGVersion}")
}
}
project(":demo-service") {
dependencies {
implementation(project(":demo-service-interface"))
implementation("core.framework:core-ng-mongo:${coreNGVersion}")
implementation("core.framework:core-ng-search:${coreNGVersion}")
testImplementation("core.framework:core-ng-mongo-test:${coreNGVersion}")
testImplementation("core.framework:core-ng-search-test:${coreNGVersion}")
runtimeOnly("core.framework.mysql:mysql-connector-j:8.4.0-r4")
// runtimeOnly("org.postgresql:postgresql:42.7.1")
testRuntimeOnly("org.hsqldb:hsqldb:${hsqlVersion}")
}
}
project(":demo-site") {
}
project(":benchmark") {
dependencies {
implementation("org.openjdk.jmh:jmh-generator-annprocess:1.27")
implementation("core.framework:core-ng:${coreNGVersion}")
implementation("io.undertow:undertow-core:2.3.18.Final")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}")
implementation("com.fasterxml.jackson.module:jackson-module-afterburner:${jacksonVersion}")
implementation("com.fasterxml.jackson.module:jackson-module-blackbird:${jacksonVersion}")
}
}
project(":kibana-generator") {
dependencies {
implementation("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}")
}
}