File tree Expand file tree Collapse file tree
librarian-gradle-plugin/src/main/kotlin/com/gradleup/librarian/gradle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,15 +50,17 @@ internal fun Properties.olderVersions(): List<Coordinates> {
5050internal fun Properties.projects (project : Project ): List <String > {
5151 val allProjects = getProperty(" kdoc.allProjects" )?.toBoolean() ? : false
5252 return if (allProjects) {
53- check(getProperty(" kdoc.projects" ) == null ) {
54- " It is an error to set both kdoc.projects and kdoc.allProjects"
55- }
56- project.allprojects.map { it.isolated.path }
53+ error(" Librarian: kdoc.allProjects is not supported anymore. Use kdoc.projects=* instead" )
5754 } else {
58- getProperty(" kdoc.projects" )?.split(" ," )
59- ?.filter {
60- it.isNotEmpty()
61- } ? : error(" Librarian: either kdoc.projects or kdoc.allProjects is required" )
55+ val projects = getProperty(" kdoc.projects" )
56+ if (projects == null || projects.isBlank()) {
57+ error(" Librarian: kdoc.projects is required. You may set kdoc.projects=* to publish for all projects" )
58+ }
59+ if (projects == " *" ) {
60+ project.allprojects.map { it.isolated.path }
61+ } else {
62+ projects.split(" ," ).map { it.trim() }
63+ }
6264 }
6365}
6466
You can’t perform that action at this time.
0 commit comments