我有一个多项目设置。我创建了一个非 java 项目,其工件是一个 zip 文件,我将在另一个项目中解压缩。所以想法如下
my-non-java-project
  build.gradle
  ------------
    apply plugin: 'base'
    task doZip(type:Zip) { ... }
    task build(dependsOn: doZip) << {
    }
    artifacts {
      archives doZip
    }
some-java-project
  build.gradle
  ------------
    apply plugin: 'war'
    configurations {
      includeContent // This is a custom configuration
    }
    dependency {
      includeContent project(':my-non-java-project')
    }
    task expandContent(type:Copy) {
      // Here is where I would like get hold of the all the files
      // belonging to the 'includeContent' configuration
      // But this is always turning out to be empty. Not sure how do I publish
      // non-java content to the local repository (as understood by groovy)
    }
所以,我的问题是,如何将非 java 项目的工件发布到 groovy 的内部存储库,以便我可以在另一个基于 java 的项目中获取它?