If I execute uploadArchives, then those zip/tar tasks are triggered, but shouldn't it be before that?
Should the docs include those targets as part of the first build? On Wed, Apr 12, 2017 at 3:29 PM, Niclas Hedhman <[email protected]> wrote: > Paul, > > I have been checking that the Release process works, and it seems there is > some problems, that I am really not capable of debugging, but I found the > following; > > Every subproject seems to be ok, with something along these lines > > Could not find metadata org.apache.polygene.extensions:org.apache. > polygene.extension.entitystore-leveldb/maven-metadata.xml in remote > (file:///home/niclas/dev/polygene/polygene-repos/polygene-java/extensions/ > entitystore-leveldb/build/stage/archives) > :extensions:entitystore-memory:generateVersionClass > :extensions:entitystore-memory:compileVersionJava > :extensions:entitystore-memory:compileVersionJava - is not incremental > (e.g. outputs have changed, no previous execution, etc.). > :extensions:entitystore-memory:compileJava > :extensions:entitystore-memory:compileJava - is not incremental (e.g. > outputs have changed, no previous execution, etc.). > :extensions:entitystore-memory:honkerGenDependencies > :extensions:entitystore-memory:honkerGenLicense > :extensions:entitystore-memory:honkerGenNotice > :extensions:entitystore-memory:processResources NO-SOURCE > :extensions:entitystore-memory:classes > :extensions:entitystore-memory:processVersionResources NO-SOURCE > :extensions:entitystore-memory:versionClasses > :extensions:entitystore-memory:jar > :extensions:entitystore-memory:javadoc > :extensions:entitystore-memory:javadocJar > :extensions:entitystore-memory:sourceJar > :extensions:entitystore-memory:testSourceJar > :extensions:entitystore-memory:signArchives > :extensions:entitystore-memory:uploadStageArchives > > > But it then goes to > > :tools:model-detail:signArchives > :tools:model-detail:uploadStageArchives > Could not find metadata org.apache.polygene.tools:org. > apache.polygene.tool.model-detail/maven-metadata.xml in remote > (file:///home/niclas/dev/polygene/polygene-repos/ > polygene-java/tools/model-detail/build/stage/archives) > :distributions:stageBinariesMavenRepository > :distributions:stageBinaryDistribution > :distributions:ratBinaryDistribution > :distributions:checkBinaryDistribution > :distributions:srcDistFilteredFiles > :distributions:stageSourceDistribution > :distributions:ratSourceDistribution > :distributions:buildSourceDistribution > :distributions:checkSourceDistribution > :distributions:checkDistributions > > BUILD SUCCESSFUL > > Total time: 42 mins 7.516 secs > > And no zip/tgz distributions are built. > > In the docs, > > cp > "polygene-java/build/distributions/apache-polygene-java-<RELEASE-VERSION>-src.zip" > \ > > "polygene-dist/dev/polygene/apache-polygene-java-<RELEASE-VERSION>-RC#-src.zip" > > shows that some output is expected in ./build/distributions, and that > directory doesn't even exist. > > And IIUIC, these tasks should have been triggered "somehow"; > > > static final String ZIP_SOURCE_DIST = 'zipSourceDistribution' > static final String TAR_SOURCE_DIST = 'tarSourceDistribution' > > static final String ZIP_BINARY_DIST = 'zipBinaryDistribution' > static final String TAR_BINARY_DIST = 'tarBinaryDistribution' > > But then there is this; > > def zipSources = project.tasks.create( TaskNames.ZIP_SOURCE_DIST, Zip ) { Zip > task -> > task.group = TaskGroups.DISTRIBUTION > task.description = 'Assembles .zip source distribution.' > task.baseName = 'apache-polygene-java' > task.with srcDistCopySpec > task.classifier = 'src' > } > def tarSources = project.tasks.create( TaskNames.TAR_SOURCE_DIST, Tar ) { Tar > task -> > task.group = TaskGroups.DISTRIBUTION > task.description = 'Assembles .tar.gz source distribution.' > task.baseName = 'apache-polygene-java' > task.with srcDistCopySpec > task.compression = Compression.GZIP > task.classifier = 'src' > } > project.artifacts.add( 'archives', zipSources ) > project.artifacts.add( 'archives', tarSources ) > > But how is that expected to work? > > Cheers > -- > Niclas Hedhman, Software Developer > http://polygene.apache.org - New Energy for Java > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java
