forked from pflooky/data-caterer
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
112 lines (108 loc) · 5.05 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
112
import org.jetbrains.gradle.ext.Application
import org.jetbrains.gradle.ext.runConfigurations
import org.jetbrains.gradle.ext.settings
plugins {
idea
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.8"
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}
group = project.properties["groupId"].toString()
version = project.properties["version"].toString()
idea.project.settings {
runConfigurations {
create("DataCatererUI", Application::class.java) {
mainClass = "io.github.datacatering.datacaterer.core.ui.DataCatererUI"
moduleName = "data-caterer.app.main"
includeProvidedDependencies = true
}
create("GenerateFromManualJson", Application::class.java) {
mainClass = "io.github.datacatering.datacaterer.App"
moduleName = "data-caterer.app.main"
includeProvidedDependencies = true
envs = mutableMapOf(
"ENABLE_GENERATE_PLAN_AND_TASKS" to "false",
"PLAN_FILE_PATH" to "app/src/test/resources/sample/plan/account-create-plan.yaml",
"TASK_FOLDER_PATH" to "app/src/test/resources/sample/task"
)
}
create("GenerateFromMetadata", Application::class.java) {
mainClass = "io.github.datacatering.datacaterer.App"
moduleName = "data-caterer.app.main"
includeProvidedDependencies = true
envs = mutableMapOf(
"ENABLE_GENERATE_PLAN_AND_TASKS" to "true",
"ENABLE_GENERATE_DATA" to "false",
"PLAN_FILE_PATH" to "app/src/test/resources/sample/plan/customer-create-plan.yaml",
"TASK_FOLDER_PATH" to "app/src/test/resources/sample/task"
)
}
create("GenerateFromMetadataMysql", Application::class.java) {
mainClass = "io.github.datacatering.datacaterer.App"
moduleName = "data-caterer.app.main"
includeProvidedDependencies = true
envs = mutableMapOf(
"ENABLE_GENERATE_PLAN_AND_TASKS" to "true",
"ENABLE_GENERATE_DATA" to "true",
"TASK_FOLDER_PATH" to "app/src/test/resources/sample/task",
"APPLICATION_CONFIG_PATH" to "app/src/test/resources/sample/conf/mysql.conf"
)
}
create("GenerateFromMetadataWithTracking", Application::class.java) {
mainClass = "io.github.datacatering.datacaterer.App"
moduleName = "data-caterer.app.main"
includeProvidedDependencies = true
envs = mutableMapOf(
"ENABLE_GENERATE_PLAN_AND_TASKS" to "true",
"ENABLE_GENERATE_DATA" to "true",
"ENABLE_RECORD_TRACKING" to "true",
"PLAN_FILE_PATH" to "app/src/test/resources/sample/plan/customer-create-plan.yaml",
"TASK_FOLDER_PATH" to "app/src/test/resources/sample/task"
)
}
create("DeleteGeneratedRecords", Application::class.java) {
mainClass = "io.github.datacatering.datacaterer.App"
moduleName = "data-caterer.app.main"
includeProvidedDependencies = true
envs = mutableMapOf(
"ENABLE_DELETE_GENERATED_RECORDS" to "true",
"PLAN_FILE_PATH" to "app/src/test/resources/sample/plan/customer-create-plan.yaml",
"TASK_FOLDER_PATH" to "app/src/test/resources/sample/task"
)
}
create("GenerateLargeData", Application::class.java) {
mainClass = "io.github.datacatering.datacaterer.App"
moduleName = "data-caterer.app.main"
includeProvidedDependencies = true
envs = mutableMapOf(
"ENABLE_GENERATE_PLAN_AND_TASKS" to "false",
"ENABLE_GENERATE_DATA" to "true",
"ENABLE_RECORD_TRACKING" to "true",
"PLAN_FILE_PATH" to "app/src/test/resources/sample/plan/large-plan.yaml",
"TASK_FOLDER_PATH" to "app/src/test/resources/sample/task"
)
}
create("ExampleAccountCreatePlan", Application::class.java) {
mainClass = "io.github.datacatering.datacaterer.App"
moduleName = "data-caterer.app.main"
includeProvidedDependencies = true
envs = mutableMapOf(
"ENABLE_GENERATE_PLAN_AND_TASKS" to "false",
"ENABLE_GENERATE_DATA" to "true",
"ENABLE_RECORD_TRACKING" to "true",
"PLAN_FILE_PATH" to "app/src/test/resources/sample/plan/example-account-create-plan.yaml",
"TASK_FOLDER_PATH" to "app/src/test/resources/sample/task",
"LOG_LEVEL" to "debug"
)
}
}
}
nexusPublishing {
repositories {
create("sonatype") {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username.set(System.getenv("MAVEN_USERNAME"))
password.set(System.getenv("MAVEN_PASSWORD"))
}
}
}