@@ -44,7 +44,7 @@ val platformProjects by extra {
4444 setOf (
4545 projects.src.bom,
4646 projects.src.bomThirdparty,
47- ).mapTo(mutableSetOf ()) { it.dependencyProject }
47+ ).mapTo(mutableSetOf ()) { it.path }
4848}
4949
5050val notPublishedProjects by extra {
@@ -62,35 +62,11 @@ val notPublishedProjects by extra {
6262 projects.src.testkit,
6363 projects.src.testkitWiremock,
6464 projects.src.testServices,
65- ).mapTo(mutableSetOf ()) { it.dependencyProject }
65+ ).mapTo(mutableSetOf ()) { it.path }
6666}
6767
6868val publishedProjects by extra {
69- allprojects - notPublishedProjects
70- }
71-
72- notPublishedProjects.forEach { project ->
73- if (project != rootProject) {
74- project.plugins.withId(" maven-publish" ) {
75- throw IllegalStateException (
76- " Project ${project.path} is listed in notPublishedProjects, however it has maven-publish plugin applied. " +
77- " Please remove maven-publish plugin (e.g. replace build-logic.jvm-published-library with build-logic.jvm-library) or " +
78- " move the project to the list of published ones"
79- )
80- }
81- }
82- }
83-
84- publishedProjects.forEach {project ->
85- project.afterEvaluate {
86- if (! pluginManager.hasPlugin(" maven-publish" )) {
87- throw IllegalStateException (
88- " Project ${project.path} is listed in publishedProjects, however it misses maven-publish plugin. " +
89- " Please add maven-publish plugin (e.g. replace build-logic.jvm-library with build-logic.jvm-published-library) or " +
90- " move the project to the list of notPublishedProjects"
91- )
92- }
93- }
69+ allprojects.mapTo(mutableSetOf ()) { it.path } - notPublishedProjects
9470}
9571
9672val displayVersion by extra {
@@ -116,7 +92,7 @@ tasks.validateBeforeBuildingReleaseArtifacts {
11692}
11793
11894releaseArtifacts {
119- fromProject(projects.src.dist.dependencyProject. path)
95+ fromProject(projects.src.dist.path)
12096 previewSite {
12197 into(" rat" )
12298 from(tasks.rat) {
0 commit comments