Finding submodule properties in Distribution plugin


(Thierry Wasylczenko) #1

Hello everyone,

In the root build.xml I use the distribution plugin in order to aggregate files and folders coming from submodules.

In the plugin, I try to get values of properties from submodules (defined in the ext block) but it seems they are empty. I’ve try the following methods without success:

Method 1:

distribution {
  main {
    contents {
      into(project('...').findProperty('artifactName')) { ... }
    }
  }
}

Method 2:

distribution {
  main {
    contents {
      into(project('...').ext.artifactName) { ... }
    }
  }
}

The complete build script can be found here.

Do you have any ideas or better option to achieve this?

Many thanks.