@@ -58,17 +58,10 @@ tasks.register("generateDependenciesReport", ConcatFilesTask) {
58
58
// integ test zip only uses server, so a different notice file is needed there
59
59
def buildServerNoticeTaskProvider = tasks. register(" buildServerNotice" , NoticeTask )
60
60
61
- // other distributions include notices from modules as well, which are added below later
62
- def buildDefaultNoticeTaskProvider = tasks. register(" buildDefaultNotice" , NoticeTask ) {
63
- licensesDir new File (project(' :distribution' ). projectDir, ' licenses' )
64
- }
65
-
66
61
def buildOssNoticeTaskProvider = tasks. register(" buildOssNotice" , NoticeTask ) {
67
62
licensesDir new File (project(' :distribution' ). projectDir, ' licenses' )
68
63
}
69
64
70
- def buildDefaultNoJdkNoticeTaskProvider = tasks. register(" buildDefaultNoJdkNotice" , NoticeTask )
71
-
72
65
def buildOssNoJdkNoticeTaskProvider = tasks. register(" buildOssNoJdkNotice" , NoticeTask )
73
66
74
67
// The :server and :libs projects belong to all distributions
@@ -85,7 +78,6 @@ tasks.withType(NoticeTask).configureEach {
85
78
* Modules *
86
79
*****************************************************************************/
87
80
String ossOutputs = ' build/outputs/oss'
88
- String defaultOutputs = ' build/outputs/default'
89
81
String systemdOutputs = ' build/outputs/systemd'
90
82
String transportOutputs = ' build/outputs/transport-only'
91
83
String externalTestOutputs = ' build/outputs/external-test'
@@ -94,11 +86,6 @@ def processOssOutputsTaskProvider = tasks.register("processOssOutputs", Sync) {
94
86
into ossOutputs
95
87
}
96
88
97
- def processDefaultOutputsTaskProvider = tasks. register(" processDefaultOutputs" , Sync ) {
98
- into defaultOutputs
99
- from processOssOutputsTaskProvider
100
- }
101
-
102
89
def processSystemdOutputsTaskProvider = tasks. register(" processSystemdOutputs" , Sync ) {
103
90
into systemdOutputs
104
91
}
@@ -126,18 +113,6 @@ tasks.register("buildOssConfig") {
126
113
dependsOn " processOssOutputs"
127
114
outputs. dir " ${ ossOutputs} /config"
128
115
}
129
- def buildDefaultModulesTaskProvider = tasks. register(" buildDefaultModules" ) {
130
- dependsOn processDefaultOutputsTaskProvider
131
- outputs. dir " ${ defaultOutputs} /modules"
132
- }
133
- tasks. register(" buildDefaultBin" ) {
134
- dependsOn processDefaultOutputsTaskProvider
135
- outputs. dir " ${ defaultOutputs} /bin"
136
- }
137
- def buildDefaultConfigTaskProvider = tasks. register(" buildDefaultConfig" ) {
138
- dependsOn processOssOutputsTaskProvider
139
- outputs. dir " ${ defaultOutputs} /config"
140
- }
141
116
def buildSystemdModuleTaskProvider = tasks. register(" buildSystemdModule" ) {
142
117
dependsOn " processSystemdOutputs"
143
118
outputs. dir " ${ systemdOutputs} /modules"
@@ -192,12 +167,6 @@ def buildOssLog4jConfigTaskProvider = tasks.register("buildOssLog4jConfig") {
192
167
ext. log4jFile = file(" ${ ossOutputs} /log4j2.properties" )
193
168
outputs. file log4jFile
194
169
}
195
- def buildDefaultLog4jConfigTaskProvider = tasks. register(" buildDefaultLog4jConfig" ) {
196
- dependsOn processDefaultOutputsTaskProvider
197
- ext. contents = []
198
- ext. log4jFile = file(" ${ defaultOutputs} /log4j2.properties" )
199
- outputs. file log4jFile
200
- }
201
170
202
171
Closure writeLog4jProperties = {
203
172
String mainLog4jProperties = file(' src/config/log4j2.properties' ). getText(' UTF-8' )
@@ -210,10 +179,6 @@ buildOssLog4jConfigTaskProvider.configure {
210
179
doLast(writeLog4jProperties)
211
180
}
212
181
213
- buildDefaultLog4jConfigTaskProvider. configure {
214
- doLast(writeLog4jProperties)
215
- }
216
-
217
182
// copy log4j2.properties from modules that have it
218
183
void copyLog4jProperties (TaskProvider buildTask , Project module ) {
219
184
buildTask. configure {
@@ -246,10 +211,6 @@ project.rootProject.subprojects.findAll { it.parent.path == ':modules' }.each {
246
211
}
247
212
File licenses = new File (module. projectDir, ' licenses' )
248
213
if (licenses. exists()) {
249
- buildDefaultNoticeTaskProvider. configure {
250
- licensesDir licenses
251
- source module. file(' src/main/java' )
252
- }
253
214
buildOssNotice. configure {
254
215
licensesDir licenses
255
216
source module. file(' src/main/java' )
@@ -262,7 +223,6 @@ project.rootProject.subprojects.findAll { it.parent.path == ':modules' }.each {
262
223
}
263
224
264
225
copyLog4jProperties(buildOssLog4jConfigTaskProvider, module)
265
- copyLog4jProperties(buildDefaultLog4jConfigTaskProvider, module)
266
226
267
227
restTestExpansions[' expected.modules.count' ] + = 1
268
228
}
0 commit comments