IBM / cics-bundle-gradle

The plugin to build and deploy CICS bundles in a Gradle build.
Eclipse Public License 2.0
7 stars 20 forks source link

With no Configuration parameter on a project TODO message is produced #19

Closed banjaxxer closed 4 years ago

banjaxxer commented 4 years ago

Multi project build. Configuration commented out dependencies { cicsBundle project(path: ':testData4.war' /, configuration: 'war'/) }

Build fails with message: > TODO Parse version from file name or pass in from cicsBundle config dependency

tom-foyle commented 4 years ago

Interesting one this. When no configuration is specified, it uses the default configuration. For all types of Java projects, the default configuration contains the project packaged as a simple jar. So in this example the dependency will resolve to testData4.jar rather than testData4.war. We detect the jar extension and treat it as an OSGi bundle. We attempt to read the OSGi manifest file, which doesn't exist, and get an error. I've improved the error message to be more clear and indicate that the bundle part is being processed as an OSGi bundle, which should be enough to tell the user that something is wrong with their configuration.