hello, i'm trying to create maven `pom.xml` using ...
# gradle
d
hello, i'm trying to create maven
pom.xml
using
maven-publish
plugin but having trouble setting up the
description
, i.e. my project structure is
Copy code
root
\- moduleA
\- moduleB
both
root
and modules contain their own
build.gradle.kts
files where i set their descriptions yet when I try to read them in
[root] subprojects{}
their all descriptions turn out empty. Any ideas?
Copy code
subprojects {
  val currentProject = this
  tasks {
    publishing {
            publications {
                create<MavenPublication>("mavenJava") {
                    pom {
                        name.set("${currentProject.group}:${currentProject.name}")
                        println("current project ${currentProject.name} description:  ${currentProject.description}")
                        description.set(currentProject.description)
...
running
gradle projects
yields this
Copy code
> Configure project :
current project graphql-kotlin-federation description: null
current project graphql-kotlin-schema-generator description: null
current project graphql-kotlin-spring-server description: null

> Task :projects

------------------------------------------------------------
Root project - Libraries for running a GraphQL server in Kotlin
------------------------------------------------------------

Root project 'graphql-kotlin' - Libraries for running a GraphQL server in Kotlin
+--- Project ':graphql-kotlin-federation' - Federated GraphQL schema generator
+--- Project ':graphql-kotlin-schema-generator' - ext description
\--- Project ':graphql-kotlin-spring-server' - Spring Boot autoconfiguration library for creating reactive GraphQL server
😕
this is confusing but it appears that the issue is because child projects are configured AFTER the root hence null descriptions