-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.gradle
More file actions
643 lines (563 loc) · 23 KB
/
publish.gradle
File metadata and controls
643 lines (563 loc) · 23 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
// Apply the Maven Publish plugin once
apply plugin: 'maven-publish'
import org.gradle.api.file.RelativePath
// -----------------------------------------------------------------------------
// Common Variables & Config
// -----------------------------------------------------------------------------
ext.licenseFile = files("$rootDir/LICENSE.txt")
def athenaJsonFile = file("$projectDir/vendordeps/FRC6390-Athena-Core.json")
def defaultVersion = '2026.0.0'
def vendordepDescriptors = [
[
file : file("$projectDir/vendordeps/FRC6390-Athena-Core.json"),
name : "FRC6390 Athena Core",
artifactId: 'athena-core',
jsonUrl : "https://raw.githubusercontent.com/FRC-6390/FRC-Athena/refs/heads/main/vendordeps/FRC6390-Athena-Core.json",
uuid : "1f3b1e19-0f9f-4f37-9f13-6a2b0b3764cb"
],
[
file : file("$projectDir/vendordeps/FRC6390-Athena-CTRE.json"),
name : "FRC6390 Athena CTRE",
artifactId: 'athena-ctre',
jsonUrl : "https://raw.githubusercontent.com/FRC-6390/FRC-Athena/refs/heads/main/vendordeps/FRC6390-Athena-CTRE.json",
uuid : "5f9b64e1-d3d7-4f5f-9b8f-3de54aa32ce3"
],
[
file : file("$projectDir/vendordeps/FRC6390-Athena-REV.json"),
name : "FRC6390 Athena REV",
artifactId: 'athena-rev',
jsonUrl : "https://raw.githubusercontent.com/FRC-6390/FRC-Athena/refs/heads/main/vendordeps/FRC6390-Athena-REV.json",
uuid : "b0e5a07b-6a34-4e2f-b9a8-4eac7e95c621"
],
[
file : file("$projectDir/vendordeps/FRC6390-Athena-PhotonVision.json"),
name : "FRC6390 Athena PhotonVision",
artifactId: 'athena-photonvision',
jsonUrl : "https://raw.githubusercontent.com/FRC-6390/FRC-Athena/refs/heads/main/vendordeps/FRC6390-Athena-PhotonVision.json",
uuid : "f0ab7d3a-6bfb-4c2b-8e3f-4a201215b688"
],
[
file : file("$projectDir/vendordeps/FRC6390-Athena-Limelight.json"),
name : "FRC6390 Athena Limelight",
artifactId: 'athena-limelight',
jsonUrl : "https://raw.githubusercontent.com/FRC-6390/FRC-Athena/refs/heads/main/vendordeps/FRC6390-Athena-Limelight.json",
uuid : "2bce0b98-1373-4c4c-8b53-04637a9550d5"
],
[
file : file("$projectDir/vendordeps/FRC6390-Athena-HeliOS.json"),
name : "FRC6390 Athena HeliOS",
artifactId: 'athena-helios',
jsonUrl : "https://raw.githubusercontent.com/FRC-6390/FRC-Athena/refs/heads/main/vendordeps/FRC6390-Athena-HeliOS.json",
uuid : "85556da2-a350-47f5-bb0b-db9680a0daea"
],
[
file : file("$projectDir/vendordeps/FRC6390-Athena-Pathplanner.json"),
name : "FRC6390 Athena Pathplanner",
artifactId: 'athena-pathplanner',
jsonUrl : "https://raw.githubusercontent.com/FRC-6390/FRC-Athena/refs/heads/main/vendordeps/FRC6390-Athena-Pathplanner.json",
uuid : "8e35b9f3-0f7d-4d52-90fc-7dbd06c7c2b0"
],
[
file : file("$projectDir/vendordeps/FRC6390-Athena-Choreo.json"),
name : "FRC6390 Athena Choreo",
artifactId: 'athena-choreo',
jsonUrl : "https://raw.githubusercontent.com/FRC-6390/FRC-Athena/refs/heads/main/vendordeps/FRC6390-Athena-Choreo.json",
uuid : "f8e0c33c-8f11-4d7d-9e3f-3de8792b3b49"
],
[
file : file("$projectDir/vendordeps/FRC6390-Athena-Studica.json"),
name : "FRC6390 Athena Studica",
artifactId: 'athena-studica',
jsonUrl : "https://raw.githubusercontent.com/FRC-6390/FRC-Athena/refs/heads/main/vendordeps/FRC6390-Athena-Studica.json",
uuid : "c4a4b4b9-737b-45be-9468-5d5df2c1d6ab"
],
]
def computeAutoVersion = {
if (!athenaJsonFile.exists()) {
return defaultVersion
}
try {
def jsonContent = new groovy.json.JsonSlurper().parse(athenaJsonFile)
def existingVersion = jsonContent?.version?.toString()
def parts = existingVersion?.tokenize('.')
if (parts?.size() == 3) {
try {
def patch = parts[2].toInteger() + 1
return "${parts[0]}.${parts[1]}.${patch}"
} catch (NumberFormatException ignored) {
// Fall through to default
}
}
} catch (Exception ignored) {
// Fall through to default
}
return defaultVersion
}
def mavenUsername = project.findProperty('mavenUsername')
?: System.getenv('MAVEN_USERNAME')
?: System.getenv('USERNAME')
?: System.getenv('GITHUB_ACTOR')
def mavenPassword = project.findProperty('mavenPassword')
?: System.getenv('MAVEN_PASSWORD')
?: System.getenv('MAVEN_KEY')
?: System.getenv('GITHUB_TOKEN')
def providedVersion = project.hasProperty('version') ? project.property('version')?.toString() : null
def useProvidedVersion = providedVersion && providedVersion != org.gradle.api.Project.DEFAULT_VERSION && providedVersion.trim()
def pubVersion = useProvidedVersion ? providedVersion : computeAutoVersion()
def versionResolutionMessage = useProvidedVersion
? "Using provided Athena version ${pubVersion}"
: "Auto-incremented Athena version to ${pubVersion}"
def computeFrcYear = {
if (project.hasProperty('wpilibYear')) {
return project.property('wpilibYear').toString()
}
def wpilibVersionCandidate = null
if (project.hasProperty('wpilibVersion')) {
wpilibVersionCandidate = project.property('wpilibVersion')?.toString()
} else if (project.ext.has('wpilibVersion')) {
wpilibVersionCandidate = project.ext.wpilibVersion?.toString()
}
if (wpilibVersionCandidate) {
def matcher = (wpilibVersionCandidate =~ /(20\d{2})/)
if (matcher.find()) {
return matcher.group(1)
}
}
return '2026'
}
def frcYear = project.hasProperty('frcYear') ? project.property('frcYear') : computeFrcYear()
def frcYearResolutionMessage = !project.hasProperty('frcYear')
? "Resolved FRC year to ${frcYear} from WPILib version"
: null
// Group/Artifact used below and for updating JSON
def artifactGroupId = 'ca.frc6390.athena'
allprojects {
group = artifactGroupId
version = pubVersion
}
// Detect OS for WPILib folder
def osName = System.getProperty("os.name").toLowerCase()
def wpilibFolder
if (osName.contains("win")) {
wpilibFolder = file("C:/Users/Public/wpilib/${frcYear}")
} else if (osName.contains("mac")) {
wpilibFolder = file("/Users/Shared/wpilib/${frcYear}")
} else {
wpilibFolder = file("/home/${System.getenv('USER')}/wpilib/${frcYear}")
}
// Key directories
def vendordepsFolder = file("$wpilibFolder/vendordeps")
def mavenFolder = file("$wpilibFolder/maven")
def outputsFolder = rootProject.file("${rootProject.buildDir}/outputs")
def versionFile = file("$outputsFolder/version.txt")
def localRepoDir = rootProject.file("${rootProject.buildDir}/repos/releases")
// Publish mode can be: 'local', 'online', 'all'
def publishMode = project.hasProperty('publishMode') ? project.property('publishMode') : 'local'
def buildConfigurationMessage = "Athena build configuration -> version: ${pubVersion}, frcYear: ${frcYear}, publishMode: ${publishMode}, wpilibFolder: ${wpilibFolder}"
if ((publishMode == 'online' || publishMode == 'all') && (!mavenUsername || !mavenPassword)) {
throw new GradleException("Missing publish credentials. Provide -PmavenUsername/-PmavenPassword or MAVEN_USERNAME/MAVEN_PASSWORD (or GITHUB_ACTOR/GITHUB_TOKEN).")
}
gradle.buildFinished { _ ->
logger.lifecycle(versionResolutionMessage)
if (frcYearResolutionMessage != null) {
logger.lifecycle(frcYearResolutionMessage)
}
logger.lifecycle(buildConfigurationMessage)
}
// -----------------------------------------------------------------------------
// Tasks: outputVersions, updateAthenaJson, copy tasks
// -----------------------------------------------------------------------------
task outputVersions() {
description = 'Prints the version to a file (for use by downstream tasks)'
group = 'Build'
outputs.files(versionFile)
inputs.property('pubVersion', pubVersion)
doFirst {
buildDir.mkdir()
outputsFolder.mkdir()
logger.lifecycle("Preparing Athena outputs in ${outputsFolder} (version ${pubVersion})")
}
doLast {
logger.lifecycle("Recording Athena version ${pubVersion} to ${versionFile}")
versionFile.write(pubVersion)
}
}
def packagePattern = ~/^\s*package\s+([A-Za-z_][\w]*(?:\.[A-Za-z_][\w]*)*)\s*;/
def sourceJarRelativePath = { File sourceFile, RelativePath currentPath ->
if (sourceFile == null || !sourceFile.name.endsWith('.java')) {
return currentPath
}
String declaredPackage = null
sourceFile.withReader('UTF-8') { reader ->
String line
while ((line = reader.readLine()) != null) {
def matcher = line =~ packagePattern
if (matcher.matches()) {
declaredPackage = matcher.group(1)
break
}
String trimmed = line.trim()
if (trimmed && !trimmed.startsWith('//') && !trimmed.startsWith('/*') && !trimmed.startsWith('*')) {
break
}
}
}
if (declaredPackage == null || declaredPackage.isBlank()) {
return currentPath
}
List<String> segments = new ArrayList<>(declaredPackage.tokenize('.'))
segments.add(sourceFile.name)
return new RelativePath(true, segments as String[])
}
// Ensure every subproject builds with Java 17 and publishes a sources jar
subprojects {
apply plugin: 'maven-publish'
plugins.withId('java') {
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.register('subprojectSourcesJar', Jar) {
archiveClassifier = 'sources'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(sourceSets.main.allSource) {
eachFile { details ->
details.relativePath = sourceJarRelativePath(details.file, details.relativePath)
}
}
dependsOn classes
}
publishing {
repositories {
if (publishMode == 'local' || publishMode == 'all') {
maven {
name = "localRepo"
url = localRepoDir
}
}
if (publishMode == 'online' || publishMode == 'all') {
maven {
name = "FRC-Athena-GitHub"
url = "https://maven.pkg.github.com/FRC-6390/FRC-Athena"
credentials {
username = mavenUsername
password = mavenPassword
}
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifact tasks.named('subprojectSourcesJar')
groupId = artifactGroupId
artifactId = project.name
version = pubVersion
}
}
}
// Capture subproject outputs for artifact collection
rootProject.copyAllOutputs.dependsOn tasks.named('jar'), tasks.named('subprojectSourcesJar')
rootProject.copyAllOutputs.from(tasks.named('jar').map { it.archiveFile })
rootProject.copyAllOutputs.from(tasks.named('subprojectSourcesJar').map { it.archiveFile })
}
}
task updateAthenaJson {
description = 'Updates vendordep JSON files with the correct version, frcYear, and javaDependencies'
group = 'Publishing'
inputs.files vendordepDescriptors.collect { it.file }
inputs.property('pubVersion', pubVersion)
inputs.property('frcYear', frcYear)
outputs.dir outputsFolder
doLast {
vendordepDescriptors.each { desc ->
if (!desc.file.exists()) {
throw new GradleException("Missing vendordep template: ${desc.file}")
}
def jsonContent = new groovy.json.JsonSlurper().parse(desc.file)
jsonContent.version = pubVersion
jsonContent.frcYear = frcYear
jsonContent.fileName = desc.file.name
jsonContent.name = desc.name
jsonContent.jsonUrl = desc.jsonUrl
jsonContent.uuid = desc.uuid
jsonContent.javaDependencies = [[
groupId: artifactGroupId,
artifactId: desc.artifactId,
version: pubVersion
]]
if (!jsonContent.mavenUrls || jsonContent.mavenUrls.isEmpty()) {
jsonContent.mavenUrls = ["https://maven.frc6390.ca/FRC-6390/FRC-Athena"]
}
def updatedJson = groovy.json.JsonOutput.prettyPrint(groovy.json.JsonOutput.toJson(jsonContent))
desc.file.parentFile.mkdirs()
desc.file.write(updatedJson)
}
}
}
task copyToWpilib(type: Copy) {
description = 'Copies local Maven artifacts + updated JSON to WPILib folder'
group = 'Publishing'
dependsOn updateAthenaJson
onlyIf { publishMode == 'local' || publishMode == 'all' }
from localRepoDir
into mavenFolder
doFirst {
wpilibFolder.mkdirs()
mavenFolder.mkdirs()
vendordepsFolder.mkdirs()
}
}
copyToWpilib.dependsOn(subprojects.collect { it.tasks.named('publish') })
task copyJsonToVendordeps(type: Copy) {
description = 'Copies the updated vendordep JSON files to the wpilib vendordeps folder'
group = 'Publishing'
dependsOn updateAthenaJson
from vendordepDescriptors.collect { it.file }
into vendordepsFolder
}
// -----------------------------------------------------------------------------
// Adding the extra build tasks from the second snippet
// -----------------------------------------------------------------------------
task libraryBuild() {
description = 'Dummy library build task'
group = 'Build'
}
// Simple copy-all-outputs pattern
task copyAllOutputs(type: Copy) {
description = 'Copies all final outputs to a single folder'
group = 'Build'
destinationDir file("$buildDir/allOutputs")
from versionFile
dependsOn outputVersions, updateAthenaJson
}
tasks.register('buildAllModules') {
description = 'Builds all subprojects so publication has outputs.'
group = 'Build'
dependsOn subprojects.collect { it.path + ":build" }
}
def athenaModuleNames = {
return subprojects
.collect { it.name }
.findAll { it.startsWith('athena-') }
.toSorted()
}
def runGitLines = { List<String> args ->
def stdout = new ByteArrayOutputStream()
def result = exec {
commandLine(['git'] + args)
standardOutput = stdout
errorOutput = new ByteArrayOutputStream()
ignoreExitValue = true
}
if (result.exitValue != 0) {
return [] as List<String>
}
return stdout.toString('UTF-8')
.readLines()
.collect { it.trim().replace('\\', '/') }
.findAll { !it.isEmpty() }
}
def resolveModuleDependencyMap = {
def moduleNames = athenaModuleNames()
def depMap = [:].withDefault { [] as Set<String> }
moduleNames.each { moduleName ->
depMap[moduleName] = [] as Set<String>
}
subprojects.each { subproj ->
if (!moduleNames.contains(subproj.name)) return
['implementation', 'api', 'compileOnly', 'runtimeOnly'].each { cfgName ->
def cfg = subproj.configurations.findByName(cfgName)
if (cfg == null) return
cfg.dependencies
.withType(org.gradle.api.artifacts.ProjectDependency)
.each { dep ->
if (moduleNames.contains(dep.dependencyProject.name)) {
depMap[subproj.name] << dep.dependencyProject.name
}
}
}
}
return depMap.collectEntries { k, v -> [k, v.toList().toSorted()] }
}
def resolveChangedAthenaModules = {
def moduleNames = athenaModuleNames()
if (moduleNames.isEmpty()) {
return [] as List<String>
}
def forceAll = (project.findProperty('buildAllModules')?.toString()?.toBoolean() ?: false)
if (forceAll) {
logger.lifecycle("buildAllModules=true; building all Athena modules.")
return moduleNames
}
def diffBase = project.findProperty('changedSince')?.toString() ?: 'HEAD'
def changedFiles = ([] as Set<String>)
changedFiles.addAll(runGitLines(['diff', '--name-only', '--relative', diffBase]))
changedFiles.addAll(runGitLines(['ls-files', '--others', '--exclude-standard']))
if (changedFiles.isEmpty()) {
logger.lifecycle("No changed files detected from git (base: ${diffBase}); skipping Athena module builds.")
return [] as List<String>
}
def changedModules = [] as Set<String>
def rootAffectsAll = [
'build.gradle',
'settings.gradle',
'config.gradle',
'publish.gradle',
'gradle/libs.versions.toml',
'gradle/wrapper/gradle-wrapper.properties',
'gradlew',
'gradlew.bat'
] as Set<String>
def vendordepModuleByFile = vendordepDescriptors.collectEntries { [(it.file.name): it.artifactId] }
vendordepModuleByFile['Studica-2026.0.0.json'] = 'athena-studica'
changedFiles.each { path ->
if (rootAffectsAll.contains(path) || path.startsWith('gradle/')) {
changedModules.addAll(moduleNames)
return
}
def moduleHit = moduleNames.find { module ->
path == module || path.startsWith("${module}/")
}
if (moduleHit != null) {
changedModules << moduleHit
return
}
if (path.startsWith('vendordeps/')) {
def vendordepName = path.substring('vendordeps/'.length())
def mappedModule = vendordepModuleByFile[vendordepName]
if (mappedModule != null) {
changedModules << mappedModule
} else {
changedModules.addAll(moduleNames)
}
}
}
if (changedModules.isEmpty()) {
logger.lifecycle("Changed files did not touch Athena modules; skipping Athena module builds.")
return [] as List<String>
}
def depMap = resolveModuleDependencyMap()
def affected = new LinkedHashSet<String>(changedModules)
def added = true
while (added) {
added = false
depMap.each { module, deps ->
if (!affected.contains(module) && deps.any { affected.contains(it) }) {
affected << module
added = true
}
}
}
return affected.toList().toSorted()
}
tasks.register('buildChangedModules') {
description = 'Builds only changed Athena modules and downstream dependents. Use -PbuildAllModules=true to force all.'
group = 'Build'
dependsOn {
def affected = resolveChangedAthenaModules()
if (affected.isEmpty()) {
return []
}
logger.lifecycle("Affected Athena modules: ${affected.join(', ')}")
return affected.collect { ":${it}:build" }
}
}
// Utility extension to attach build artifacts to copyAllOutputs
ext.addTaskToCopyAllOutputs = { theTask ->
copyAllOutputs.dependsOn theTask
copyAllOutputs.inputs.file theTask.archiveFile
copyAllOutputs.from theTask.archiveFile
}
// -----------------------------------------------------------------------------
// Jar tasks & artifacts
// -----------------------------------------------------------------------------
// Root competition artifacts are no longer published; subprojects provide all published jars.
// -----------------------------------------------------------------------------
// Wire up build dependencies
// -----------------------------------------------------------------------------
build.dependsOn outputVersions
build.dependsOn updateAthenaJson
build.dependsOn buildChangedModules
libraryBuild.dependsOn build
copyToWpilib.mustRunAfter publishToMavenLocal
copyJsonToVendordeps.mustRunAfter publishToMavenLocal
// -----------------------------------------------------------------------------
// Publishing Tasks
// -----------------------------------------------------------------------------
task publishLocal {
group = 'Publishing'
description = 'Publishes artifacts locally and copies them to the WPILib folder.'
dependsOn publishToMavenLocal
}
// task publishOnline {
// group = 'Publishing'
// description = 'Publishes artifacts online to the GitHub Maven repository.'
// dependsOn publish
// }
// Decide default publish behavior
if (publishMode == 'local') {
publish.dependsOn publishLocal
} else if (publishMode == 'online') {
} else {
publish.dependsOn publishLocal
}
tasks.matching { it.name == 'publish' }.configureEach {
finalizedBy(copyJsonToVendordeps, copyToWpilib)
}
// -----------------------------------------------------------------------------
// Repositories & Publications
// -----------------------------------------------------------------------------
// Extra local 'releases' folder for debugging
def releasesRepoUrl = "${rootProject.buildDir}/repos/releases"
// An optional clean-up step. Remove if undesired.
task cleanReleaseRepo(type: Delete) {
description = 'Cleans up the local releases repo before repopulating'
delete releasesRepoUrl
}
// Clean once before publishing tasks so artifacts are not deleted between steps.
tasks.matching {
it.name == 'publish' || it.name == 'publishLocal' || it.name == 'publishToMavenLocal'
}.configureEach {
it.dependsOn cleanReleaseRepo
}
publishing {
// Repositories
repositories {
// From the first snippet: local or online or both
if (publishMode == 'local' || publishMode == 'all') {
maven {
name = "localRepo"
url = localRepoDir
}
}
if (publishMode == 'online' || publishMode == 'all') {
maven {
name = "FRC-Athena-GitHub"
url = "https://maven.pkg.github.com/FRC-6390/FRC-Athena"
credentials {
username = mavenUsername
password = mavenPassword
}
}
}
// // Additional local release repo (2nd snippet)
// maven {
// name = "localReleasesRepo"
// url = releasesRepoUrl
// }
// // Another remote (if needed, can remove if duplicate)
// maven {
// name = "FRC-Athena"
// url = "https://maven.pkg.github.com/FRC-6390/FRC-Athena"
// credentials {
// username = System.getenv("MAVEN_USERNAME")
// password = System.getenv("MAVEN_PASSWORD")
// }
// }
}
}
// -----------------------------------------------------------------------------
// Optional model publishing tasks removed; root competition artifacts are no
// longer published.
// -----------------------------------------------------------------------------