Skip to content

Commit

Permalink
ensure that moduleInfoTargetDir exists before writing module-info.class
Browse files Browse the repository at this point in the history
  • Loading branch information
siordache committed Nov 1, 2021
1 parent 340d039 commit 318e03f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/groovy/org/beryx/jar/JarTaskConfigurer.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class JarTaskConfigurer {
if(moduleData.multiReleaseVersion > 0) {
jarTask.manifest.attributes('Multi-Release': true)
}
moduleInfoTargetDir.mkdirs()
def moduleDescriptor = new File(moduleInfoTargetDir, 'module-info.class')
LOGGER.info "Writing module descriptor into $moduleDescriptor"
moduleDescriptor.withOutputStream { it.write(clazz) }
Expand Down

0 comments on commit 318e03f

Please sign in to comment.