Skip to content

Commit

Permalink
Better docs in build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
timyates committed Nov 16, 2012
1 parent 7296a53 commit 33159fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ task distZip( type: Zip, dependsOn: 'prepareVertxModule' ) {
from( project.file( "build/mod/${modulename}-v${version}" ) ).into( "${modulename}-v${version}" )
}

// Package into build/libs/mod.zip
// Check build/libs/mod.zip has a single root, and a mod.json entry
task dist( dependsOn: 'distZip' ) << {
def entries = new java.util.zip.ZipFile( project.file( 'build/libs/mod.zip' ) ).entries().collect { it.name }
def oneRoot = entries.every { it.startsWith "${modulename}-v${version}/" }
Expand Down

0 comments on commit 33159fc

Please sign in to comment.