-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
868 lines (687 loc) · 21.9 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
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
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
apply plugin: 'java-library'
apply plugin: 'eclipse'
buildscript {
dependencies {
classpath "nu.studer:gradle-credentials-plugin:2.1"
classpath "net.saliman:gradle-properties-plugin:1.5.1"
classpath "org.ajoberstar.grgit:grgit-gradle:4.1.1"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://repository-cdn.liferay.com/nexus/content/groups/public"
}
}
}
apply from: "build-nexus.gradle"
if (!project.hasProperty('product.group')) {
throw new GradleException("Please define 'product.group' inside 'gradle.properties'")
}
else {
String productGroup = project.getProperty('product.group')
if (productGroup.trim().size() > 0) {
allprojects {
group = productGroup.trim()
}
}
else {
throw new GradleException("Please define 'product.group' inside 'gradle.properties'")
}
}
def productBoms = []
String boms = properties["product.bill.of.meterials"]
if (boms != null && boms.trim().size() > 0) {
productBoms = boms.split(",")
// Create Distribution Profile (configuration) for BoMs
configurations {
distBOM {
transitive = false
visible = false
}
}
if (productBoms.size() > 0) {
dependencies {
productBoms.each {
String[] parts = it.split(":")
distBOM("${it}") {
artifact {
name = parts[1]
type = "pom"
}
}
}
}
}
}
def isChangedProject = {
ext.changedProjects.contains(it) ? true : false
}
gradle.beforeProject {
Project project ->
// Skip root and projects with childs
if (!project.parent || project.childProjects) {
return
}
// Skip BoM project and Plugins SDK
if (project.path.equals(":bom") || project.path.startsWith(":plugins-sdk")) {
return
}
configure(project) {
// Add Nexus upload tasks (for binary and sources) and other
// useful elements or tasks
def managedType = ""
def managedTypeTheme = false
def managedTypeExt = false
if (project.tasks.findByName("war")) {
managedType = "war"
if (project.path.startsWith(":modules:")) {
println " WARN: Please wars modules inside 'wars' folder"
}
else if (project.path.startsWith(":themes:")) {
managedTypeTheme = true
}
if (!managedTypeTheme) {
task packageForDist(dependsOn: war) {
// Empty. Only needed for task dependencies
}
}
def warVersion = project.property('version')
if (warVersion.equals("unspecified")) {
// gestisco caso di plugin con "liferay-plugin-package.properties"
def liferayPluginPackage = project.file("src/main/webapp/WEB-INF/liferay-plugin-package.properties")
if (liferayPluginPackage.exists()) {
def pluginProps = new Properties()
liferayPluginPackage.withInputStream {
pluginProps.load(it)
}
if (pluginProps.containsKey('Bundle-Version')) {
warVersion = pluginProps.getProperty('Bundle-Version')
}
else {
println " WARN: no 'Bundle-Version' into liferay-plugin-package.properties"
}
}
if (warVersion.equals("unspecified")) {
warVersion = "1.0.0"
}
project['version'] = warVersion
}
}
else if (project.tasks.findByName("jar")) {
managedType = "jar"
if (project.path.startsWith(":ext:")) {
managedTypeExt = true
}
task packageForDist(dependsOn: jar) {
// Empty. Only needed for task dependencies
}
if (!managedTypeExt) {
task releaseIncrementMajor(group: "SMC", description: "Increment module version. The 'major' part") {
doLast {
_updateBndBundleVersion(project, 1)
}
}
task releaseIncrementMinor(group: "SMC", description: "Increment module version. The 'minor' part") {
doLast {
_updateBndBundleVersion(project, 2)
}
}
task releaseIncrementMicro(group: "SMC", description: "Increment module version. The 'micro' part") {
doLast {
_updateBndBundleVersion(project, 3)
}
}
}
}
else if (project.path.startsWith(":themes:")) {
managedType = "war"
managedTypeTheme = true
project.pluginManager.apply("war")
}
if (managedType.equals("war") || managedType.equals("jar")) {
//println "ext=${managedType}"
// Force encoding (for portability)
compileJava.options.encoding = 'UTF-8'
if (!managedTypeTheme) {
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
dependencies {
// We can use 'enforcedPlatform' to fix Liferay BOMs problems
//implementation enforcedPlatform(group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1")
if (productBoms.size() > 0) {
productBoms.each {
compileOnly platform("${it}")
}
}
}
}
// Set real artifact version
if (!project.hasProperty("version")) {
throw new GradleException("No available property 'version'")
}
def finalVersion = project.property('version')
ext.originalVersion = finalVersion
if (finalVersion.endsWith("-SNAPSHOT")) {
println "WARNING: Project with explicit SNAPSHOT version ${project.path} ${project.property('version')}"
}
if (!finalVersion.endsWith(project.property('registrySuffix'))) {
finalVersion = "${project.property('version')}${project.property('registrySuffix')}"
logger.debug("SMC ${project.path} change version ${project.property('version')} to ${finalVersion}")
project['version'] = finalVersion
logger.debug("SMC check ${project.property('version')} ")
}
def nexusRepository = project.property('nexus.snapshots.url')
if (!finalVersion.endsWith("-SNAPSHOT")) {
nexusRepository = project.property('nexus.releases.url');
}
project.plugins.withId('maven-publish') {
publishing {
publications {
if (managedType.equals("war") && managedTypeTheme) {
mavenJava(MavenPublication) {
version = "${finalVersion}"
artifactId = project.property('archivesBaseName')
artifact("dist/${project.name}.war")
}
//println("kk ${project.name}")
}
else if (managedType.equals("war")) {
mavenJava(MavenPublication) {
version = "${finalVersion}"
artifactId = project.property('archivesBaseName')
from components.web
artifact(tasks["sourcesJar"])
}
}
else {
mavenJava(MavenPublication) {
version = "${finalVersion}"
artifactId = project.property('archivesBaseName')
from components.java
if (!managedTypeTheme) {
artifact(tasks["sourcesJar"])
}
}
}
}
repositories {
maven {
url = nexusRepository
credentials {
username project.property('registryUsername')
password project.property('registryPassword')
}
}
}
}
task showPublishDetails() {
def msg =
"${project.property('group')}:${project.property('archivesBaseName')}:${project.property('version')}" +
" (suffix ${project.property('registrySuffix')})" +
" on ${nexusRepository} as ${project.property('registryUsername')}"
doLast {
println "Published ${msg}"
}
}
if (managedTypeTheme) {
publish.dependsOn(gulpBuild, showPublishDetails)
publishToMavenLocal.dependsOn(gulpBuild, showPublishDetails)
}
else {
publish.dependsOn(showPublishDetails)
publishToMavenLocal.dependsOn(showPublishDetails)
}
}
}
}
}
private void _updateBndBundleVersion(Project project, int level) {
def bndFile = project.file("bnd.bnd")
if (!bndFile.exists()) {
println "WARNING: No bnd.bnd for ${project.path}"
}
else {
def bndContent = bndFile as String[]
def curVersions = project.property('version').tokenize(".")
if (curVersions.size() != 3) {
println "WARNING: Non standard version ${moduleVersion} for ${project.path}"
}
def curMicros = curVersions[2].tokenize("-")
def newMajor = curVersions[0].toInteger()
def newMinor = curVersions[1].toInteger()
def newMicro = curMicros[0].toInteger()
if (level == 3) {
newMicro++
}
else if (level == 2) {
newMinor++
newMicro = 0
}
else if (level == 1) {
newMajor++
newMinor = 0
newMicro = 0
}
else {
throw new GradleException("Invalid level ${level}")
}
def newVersion = "${newMajor}.${newMinor}.${newMicro}"
bndFile.withWriter('UTF-8') { writer ->
bndContent.each {
if (it.indexOf("Bundle-Version") == 0) {
writer.writeLine "Bundle-Version: ${newVersion}"
}
else {
writer.writeLine it
}
}
}
println "${project.path} = ${project.property('version')} -> ${newVersion}"
}
}
/*
***************************
* Distribution Profiles *
***************************
*/
apply from: "build-dist.gradle"
// Apply custom BoMs to all the notable configurations
//
configurations.each { config ->
if (config.name.equals("targetPlatformBoms")) {
if (productBoms.size() > 0) {
productBoms.each {
config.dependencies.add(dependencies.platform("${it}"))
}
}
}
else if (!config.name.startsWith("dist") && !config.name.startsWith("feature")) {
return;
}
if (productBoms.size() > 0) {
productBoms.each {
config.dependencies.add(dependencies.platform("${it}"))
}
}
}
def getTimeStampStr() {
new Date().format('yyyyMMddHHmmss')
}
def localBundleDir = project.properties['liferay.workspace.home.dir']
ext.productVersion = project.properties['product.version'] ?: "1.0.0"
ext.productName = project.properties['product.name'] ?: project.name
String distLocalMode = project.properties["distLocalMode"]
if (distLocalMode == null && project.properties['nexus.release.mode'] == "true") {
distLocalMode = "false"
}
else if (distLocalMode == null && project.properties['gitSnapshotsBranch'] == false) {
distLocalMode = "false"
}
else if (distLocalMode == null) {
distLocalMode = "true"
}
println "** distLocalMode = ${distLocalMode}"
/*
* List all workspace projects with artifact name and including profiles
*/
task listProjects(group: "SMC", description: "List all workspace projects with artifact name and including profiles") {
doLast {
def resultMap = [:]
int pathSize = 0
int refSize = 0
rootProject.subprojects.each { prj ->
if (!prj.subprojects.empty) return
if (prj.path.equals(":bom") || prj.path.startsWith(":plugins-sdk")) return
def prjRef = "${prj.group}:${prj.property('archivesBaseName')}:${prj.version}"
pathSize = Math.max(pathSize, prj.path.size())
refSize = Math.max(refSize, prjRef.size())
resultMap[prj.path] = [ ref : prjRef, configs : [] ]
}
configurations.each { config ->
if (!config.name.startsWith("dist") && !config.name.startsWith("feature")) {
return;
}
config.getDependencies().each{ dep ->
if (dep instanceof ProjectDependency) {
ProjectDependency projectDependency = dep as ProjectDependency
Project depPrj = projectDependency.getDependencyProject()
resultMap[depPrj.path].configs.add(config.name)
}
}
}
def noConfigs = []
resultMap.sort().each{ entry ->
println "${entry.key.padRight(pathSize)}\t${entry.value.ref.padRight(refSize)}\t${entry.value.configs}"
if (entry.value.configs.size() == 0) {
noConfigs.add(entry.key);
}
}
if (noConfigs.size() > 0) {
println ""
println "Projects without Distribution Profile"
noConfigs.each{ println it }
}
}
}
/*
* List all configurations eligible as "Distribution Profile"
*/
task listDistProfiles(group: "SMC", description: "List all configurations eligible as 'Distribution Profile'" ) {
doLast {
configurations.each { config ->
if (!config.name.startsWith("dist") && !config.name.startsWith("feature")) {
return;
}
def taskName = config.name.capitalize()
println config.name + " -> tar$taskName , zip$taskName , deploy$taskName"
}
}
}
/*
* Describe "Distribution Profile" in a way usable in build-dist.gradle
* as dependency
* TODO: Find a way to resolve bom versions
*/
task showDistProfiles(
group: "SMC",
description: "Describe all 'Distribution Profile' in a way usable in build-dist.gradle as dependencies"
) {
if (distLocalMode == "true") {
dependsOn configurations.archives.artifacts
}
doLast {
configurations.each { config ->
if (!config.name.startsWith("dist") && !config.name.startsWith("feature")) {
return;
}
println "----"
println "Distribution Profile: ${archivesBaseName}-${productVersion} ${config.name} ${project.property('registrySuffix')}"
println ""
println "dependencies {"
def values = []
config.getDependencies().each{ dep ->
if (dep instanceof ExternalDependency) {
ProjectDependency projectDependency = dep as ProjectDependency
if (projectDependency.version != null) {
values.add("compileOnly group:'${projectDependency.group}', name:'${projectDependency.name}', version:'${projectDependency.version}'")
}
else {
values.add("compileOnly group:'${projectDependency.group}', name:'${projectDependency.name}'")
}
}
else if (dep instanceof ProjectDependency) {
ProjectDependency projectDependency = dep as ProjectDependency
Project prj = projectDependency.getDependencyProject()
String archivesBaseName = prj.properties["archivesBaseName"]
String targetVersion = projectDependency.version
if (changesMode) {
if (!isChangedProject(prj.path) && prj.hasProperty('originalVersion')) {
targetVersion = prj.property('originalVersion')
}
}
values.add("compileOnly group:'${projectDependency.group}', name:'${archivesBaseName}', version:'${targetVersion}'")
}
else {
println " //??? ${dep}"
}
}
values.sort().each{ println " ${it}"}
println "}"
println ""
}
}
}
/*
* Describe "Distribution Profile" in a way usable to materialize a
* local maven repository
*/
task showDistInstall(
group: "SMC",
description: "Describe all 'Distribution Profile' in a way usable to materialize a local maven repository"
) {
if (distLocalMode == "true") {
dependsOn configurations.archives.artifacts
}
doLast {
configurations.each { config ->
if (!config.name.startsWith("dist") && !config.name.startsWith("feature")) {
return;
}
println "----"
println "Distribution Profile: ${productName}-${productVersion} ${config.name} ${project.property('registrySuffix')}"
println ""
def values = []
def resolved = config.getResolvedConfiguration();
resolved.getLenientConfiguration().getFirstLevelModuleDependencies().each{ dep ->
//println dep
if (dep.configuration.equals("platform-runtime")) {
return //continue
}
String packaging = "jar"
dep.moduleArtifacts.any{ ma ->
packaging = ma.extension
return true //break
}
values.add("mvn install:install-file -Dfile='libs/${dep.moduleName}-${dep.moduleVersion}.${packaging}' -DgroupId='${dep.moduleGroup}' -DartifactId='${dep.moduleName}' -Dversion='${dep.moduleVersion}' -Dpackaging=${packaging}")
}
values.sort().each{ println "${it}"}
println ""
}
}
}
/*
* This task is useful on local developer environment to deploy project
* core element on local Liferay.
*/
task deployCoreLibs(
type: Copy, group: "SMC",
description: "This task is useful on local developer environment to deploy project core element on local Liferay"
) {
into "${localBundleDir}/deploy"
from configurations.distCoreLibs
}
def tarProfiles = []
def zipProfiles = []
def distDependencySpec(boolean allowExternal, boolean allowProject) {
return new Spec<Dependency>() {
boolean isSatisfiedBy(Dependency element) {
if (element instanceof ExternalDependency && allowExternal) {
return true
}
else if (element instanceof ProjectDependency && allowProject) {
return true
}
else {
return false
}
}
}
}
task buildDistDepsMap() {
doLast {
configurations.each { config ->
if (!config.name.startsWith("dist") && !config.name.startsWith("feature")) {
return;
}
Configuration clone = null;
if (distLocalMode == "true" && project.properties['changesMode'] == false) {
clone = config.copy()
// Ensure clone has custom BoMs
if (!config.name.equals("distBOM") && productBoms.size() > 0) {
productBoms.each {
clone.dependencies.add(dependencies.platform("${it}"))
}
}
}
else {
clone = config.copy(distDependencySpec(true, false))
// Ensure clone has custom BoMs
if (!config.name.equals("distBOM") && productBoms.size() > 0) {
productBoms.each {
clone.dependencies.add(dependencies.platform("${it}"))
}
}
config.dependencies.each { dep ->
if (dep instanceof ExternalDependency) {
// Already included
}
else if (dep instanceof ProjectDependency) {
ProjectDependency projectDependency = dep as ProjectDependency
Project prj = projectDependency.getDependencyProject()
//println "DBG ${prj.path}:${prj.properties['version']}:${prj.properties['originalVersion']}"
if (isChangedProject(prj.path) && distLocalMode == "true") {
//println " has changes use local "
clone.dependencies.add(projectDependency)
}
else {
String archivesBaseName = prj.properties["archivesBaseName"]
def moduleVersion = prj.properties['originalVersion'] ?: prj.properties['version']
clone.dependencies.add(dependencies.create("${projectDependency.group}:${archivesBaseName}:${moduleVersion}"))
}
}
else {
println "??? ${dep}"
}
}
}
def taskName = config.name.capitalize()
Task zipTargetTask = tasks.getByName("zip$taskName")
zipTargetTask.into("libs") {
from clone
}
Task tarTargetTask = tasks.getByName("tar$taskName")
tarTargetTask.into("libs") {
from clone
}
}
}
}
configurations.each { config ->
if (!config.name.startsWith("dist") && !config.name.startsWith("feature")) {
return;
}
//println config.name + ":" + config.visible
def taskName = config.name.capitalize()
tarProfiles.add("tar$taskName")
zipProfiles.add("zip$taskName")
task "tar$taskName"(type: Tar, group: "SMC") {
description = "Build a tarball of runtime artifacts"
//archiveAppendix = config.name
archiveBaseName = productName
archiveClassifier = "${config.name}-${getTimeStampStr()}"
archiveVersion = productVersion
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
compression = Compression.GZIP
dependsOn buildDistDepsMap
}
task "zip$taskName"(type: Zip, group: "SMC") {
description = "Build a zip of runtime artifacts"
//archiveAppendix = config.name
archiveBaseName = productName
archiveClassifier = "${config.name}-${getTimeStampStr()}"
archiveVersion = productVersion
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
dependsOn buildDistDepsMap
}
task "deploy$taskName"(type: Copy, group: "SMC") {
description = "Deploy artifacts on local Liferay"
Configuration clone = config.copy(distDependencySpec(true, false));
config.getDependencies().each{ dep ->
if (dep instanceof ProjectDependency) {
ProjectDependency projectDependency = dep as ProjectDependency
Project prj = projectDependency.getDependencyProject()
dependsOn "${prj.path}:deploy"
}
}
into "${localBundleDir}/deploy"
from clone
}
Task tarTargetTask = tasks.getByName("tar$taskName")
Task zipTargetTask = tasks.getByName("zip$taskName")
//if (distLocalMode == "true" && project.properties['changesMode'] == true) {
if (distLocalMode == "true") {
config.dependencies.each { dep ->
if (dep instanceof ProjectDependency) {
ProjectDependency projectDependency = dep as ProjectDependency
Project prj = projectDependency.getDependencyProject()
if (project.properties['changesMode'] == true) {
if (isChangedProject(prj.path)) {
tarTargetTask.dependsOn(prj.path + ":packageForDist")
zipTargetTask.dependsOn(prj.path + ":packageForDist")
}
}
else {
tarTargetTask.dependsOn(prj.path + ":packageForDist")
zipTargetTask.dependsOn(prj.path + ":packageForDist")
}
}
}
}
}
task tarDistAll(group: "SMC", description: "Execute all 'tarDist*' tasks") {
dependsOn tarProfiles
}
task zipDistAll(group: "SMC", description: "Execute all 'zipDist*' tasks") {
dependsOn zipProfiles
}
/*
* List projects which artifact isn't already published to Maven Repository
*/
task checkPubStatus(
group: "SMC",
description: "List projects which artifact isn't already published to Package Registry"
) {
doLast {
def prjMap = [:]
// Create a configuration with all the projects
Configuration config = configurations.create("publicationStatus")
config.transitive = false
config.visible = false
rootProject.subprojects.each { prj ->
if (!prj.subprojects.empty) return
if (prj.path.startsWith(":bom") || prj.path.startsWith(":plugins-sdk")) return
String archivesBaseName = prj.properties["archivesBaseName"]
String targetVersion = prj.properties["version"]
if (!isChangedProject(prj.path) && prj.hasProperty('originalVersion')) {
targetVersion = prj.property('originalVersion')
}
def prjId = "${prj.group}:${archivesBaseName}:${targetVersion}"
logger.debug("SMC ${prj} : ${prjId}")
config.dependencies.add(dependencies.create("${prjId}"))
prjMap["${prjId}"] = prj
}
//deltaPublication.resolve()
def resolved = config.getResolvedConfiguration()
println "Has errors = ${resolved.hasError()}"
// Evidenzio i progetti risolti con cambiamenti
println "INFO: modules with changes (from last release-tag) but same version is already published"
resolved.getLenientConfiguration().getFirstLevelModuleDependencies().each{ dep ->
def prjId = "${dep.moduleGroup}:${dep.moduleName}:${dep.moduleVersion}"
Project prj = prjMap["${prjId}"]
if (prj != null) {
if (isChangedProject(prj.path)) {
logger.debug("SMC ${prjId} -> ${prj.path}")
println " ${prj.path}"
}
}
else {
println " not found ${prjId}"
}
}
println "ERROR: modules not published"
resolved.getLenientConfiguration().getUnresolvedModuleDependencies().each{ dep ->
def prjId = "${dep.selector.group}:${dep.selector.name}:${dep.selector.version}"
Project prj = prjMap["${prjId}"]
if (prj != null) {
logger.debug("SMC ${prjId} -> ${prj.path}")
println " ${prj.path}"
}
else {
println " not found ${prjId}"
}
}
}
}