ShrinkWrap Resolver 2.2.1 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 2.2.1 release of the ShrinkWrap Resolver component!

What is ShrinkWrap Resolver?

The ShrinkWrap Resolvers project provides a Java API to obtain artifacts from a repository system. This is handy to include third party libraries available in any Maven repository in your test archive. ShrinkWrap Resolvers additionally allow you to reuse all the configuration you've already specified in the Maven build file, making packaging of an application archive much easier job.

Release details

Component ShrinkWrap Resolver
Version 2.2.1 view tag
Release date 2015-12-16
Released by Karel Piwko
Compiled against
  • JUnit – 4.11

Published artifacts org.jboss.shrinkwrap.resolver

  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-bom pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api-gradle-embedded-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api-maven jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-depchain pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-gradle-depchain pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-impl-gradle-embedded-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-impl-maven jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api-maven-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-spi-maven jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-spi-maven-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-impl-maven-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-spi jar javadoc pom

Release notes and resolved issues 2

Bug
  • SHRINKRES-232 - Resolve from pom.xml: old version is picked
  • SHRINKRES-234 - Declared dependency order is not the same as in Maven

Thanks to the following list of contributors: Karel Piwko, Matous Jobanek

ShrinkWrap 1.2.3 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.2.3 release of the ShrinkWrap component!

New filter support

You can now use filters in the following new locations:

ShrinkWrap.create(ZipImporter.class).importFrom(File, Filter)
ShrinkWrap.create(ZipImporter.class).importFrom(Inputstream, Filter)
archive.shallowCopy(Filter)
archive.filter(Filter)

The filter method can be used for instance to filter an export:

archive.filter(Filters.excludePath(“/org/”)).as(ZipExporter.class).exportTo(File)
New Filters

Two new filter methods were added to the Filters factory class.

war.get(Filters.includePaths("/org/", "/com/"))
war.get(Filters.excludePaths(“/org/”, “/com/”))
New Exploded export option

Allows you to to export an exploded archive directly to a given target directory without creating a child root folder.

archive.as(ExplodedExporter.class).exportExplodedInto(File)
Preserved order

ShrinkWrap now preserves the order of Assets added to the archive. They will have the same order on export.

What is ShrinkWrap?

ShrinkWrap is the simplest way to create archives in Java. Using the fluent and intuitive ShrinkWrap API, developers may assemble JARs, WARs, and EARs to be deployed directly by Arquillian during testing.

Release details

Component ShrinkWrap
Version 1.2.3 view tag
Release date 2015-10-24
Released by Aslak Knutsen
Compiled against
  • JUnit – 4.8.2

Published artifacts org.jboss.shrinkwrap

  • org.jboss.shrinkwrap » shrinkwrap-api jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-api-nio2 jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-bom pom
  • org.jboss.shrinkwrap » shrinkwrap-depchain pom
  • org.jboss.shrinkwrap » shrinkwrap-depchain-java7 pom
  • org.jboss.shrinkwrap » shrinkwrap-impl-base jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-impl-nio2 jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-spi jar javadoc pom

Release notes and resolved issues 6

Feature Request
  • SHRINKWRAP-480 - Fix order of entries in exported zip file
  • SHRINKWRAP-490 - Allow ExplodedExporter to export directly into a target directory
  • SHRINKWRAP-491 - Support Filters.includePaths(String...) excludePaths(String...)
Bug
Task
  • SHRINKWRAP-481 - Fix "mvn site" failure after "mvn clean install"
  • SHRINKWRAP-493 - Add Filter support to be able to filter import/export to/from Archive

Thanks to the following list of contributors: Aslak Knutsen, Pawan Dubey, Michal Matloka, Hiram Chirino, Andrew Lee Rubinger

ShrinkWrap 1.2.3 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 1.2.3 release of the ShrinkWrap component!

New filter support

You can now use filters in the following new locations:

ShrinkWrap.create(ZipImporter.class).importFrom(File, Filter)
ShrinkWrap.create(ZipImporter.class).importFrom(Inputstream, Filter)
archive.shallowCopy(Filter)
archive.filter(Filter)

The filter method can be used for instance to filter an export:

archive.filter(Filters.excludePath(“/org/”)).as(ZipExporter.class).exportTo(File)
New Filters

Two new filter methods were added to the Filters factory class.

war.get(Filters.includePaths("/org/", "/com/"))
war.get(Filters.excludePaths(“/org/”, “/com/”))
New Exploded export option

Allows you to to export an exploded archive directly to a given target directory without creating a child root folder.

archive.as(ExplodedExporter.class).exportExplodedInto(File)
Preserved order

ShrinkWrap now preserves the order of Assets added to the archive. They will have the same order on export.

What is ShrinkWrap?

ShrinkWrap is the simplest way to create archives in Java. Using the fluent and intuitive ShrinkWrap API, developers may assemble JARs, WARs, and EARs to be deployed directly by Arquillian during testing.

Release details

Component ShrinkWrap
Version 1.2.3 view tag
Release date 2015-10-24
Released by Aslak Knutsen
Compiled against
  • JUnit – 4.8.2

Published artifacts org.jboss.shrinkwrap

  • org.jboss.shrinkwrap » shrinkwrap-api jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-api-nio2 jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-bom pom
  • org.jboss.shrinkwrap » shrinkwrap-depchain pom
  • org.jboss.shrinkwrap » shrinkwrap-depchain-java7 pom
  • org.jboss.shrinkwrap » shrinkwrap-impl-base jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-impl-nio2 jar javadoc pom
  • org.jboss.shrinkwrap » shrinkwrap-spi jar javadoc pom

Release notes and resolved issues 6

Feature Request
  • SHRINKWRAP-480 - Fix order of entries in exported zip file
  • SHRINKWRAP-490 - Allow ExplodedExporter to export directly into a target directory
  • SHRINKWRAP-491 - Support Filters.includePaths(String...) excludePaths(String...)
Bug
Task
  • SHRINKWRAP-481 - Fix "mvn site" failure after "mvn clean install"
  • SHRINKWRAP-493 - Add Filter support to be able to filter import/export to/from Archive

Thanks to the following list of contributors: Aslak Knutsen, Pawan Dubey, Michal Matloka, Hiram Chirino, Andrew Lee Rubinger

ShrinkWrap Descriptors 2.0.0-alpha-8 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 2.0.0-alpha-8 release of the ShrinkWrap Descriptors component!

Highlights in this release

Support for JBossAS/WildFly module.xml

You can now programmatically create module.xml descriptors using the following API:

 ModuleDescriptor module = Descriptors.create(ModuleDescriptor.class)
    .addDefaultNamespaces()
    .name("some.module")
    .slot("impl")
ModuleAliasDescriptor module = Descriptors.create(ModuleAliasDescriptor.class)
    .addDefaultNamespaces()
    .name("some.module")
    .slot("impl")
    .targetName("some.other.module")
    .targetSlot("main");
ModuleAbsentDescriptor module = Descriptors.create(ModuleAbsentDescriptor.class)
    .addDefaultNamespaces()
    .name("some.module")
    .slot("impl");

These descriptors can be found in the shrinkwrap-descriptors-api-jboss module.

Support for JBossAS/WildFly jboss-deployment-structure.xml

And specially configure the deployment structure of your deployment via the jboss-deployment-structure.xml descriptor:

JBossDeploymentStructureDescriptor jbossDeployStructur = create()
    .addDefaultNamespaces()
    .earSubdeploymentsIsolated(false)
    .getOrCreateDeployment()
        .getOrCreateModuleAlias().name("name1").slot("slot1").up()
            .getOrCreateExports().createExclude().path("path1").up().up();

These descriptors can be found in the shrinkwrap-descriptors-api-jboss module.

What is ShrinkWrap Descriptors?

The Shrinkwrap Descriptor project provides an uniformed fluent API for creating and modifying Java EE deployment descriptors on the fly. Starting from the very early JEE 1.3 to the brand new Java EE 7 version, the descriptor project includes almost all official deployment descriptors. Several vendor specific deployment descriptors, mostly JBoss related, are covered as well.

Release details

Component ShrinkWrap Descriptors
Version 2.0.0-alpha-8 view tag
Release date 2015-09-29
Released by Aslak Knutsen

Published artifacts org.jboss.shrinkwrap.descriptors

  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-api-base jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-api-javaee jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-api-javaee-prototype jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-api-jboss jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-api-misc jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-ant jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-bom pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-depchain pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-gen jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-impl-base jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-impl-javaee jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-impl-javaee-prototype jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-impl-jboss jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-impl-misc jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-spi jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-test jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-test-util jar javadoc pom
  • org.jboss.shrinkwrap.descriptors » shrinkwrap-descriptors-metadata-parser-test jar javadoc pom

Release notes and resolved issues 3

Feature Request
Bug
  • SHRINKDESC-161 - org.jboss.shrinkwrap.descriptor.api.beans11.Scan should provide "createExclude" method

Thanks to the following list of contributors: Ralf Battenfeld, Aslak Knutsen, Toby Crawley

ShrinkWrap Resolver 2.2.0 Released

Since we wrote this post we didn't laze around. Check our latest announcement.

The Arquillian team is proud to announce the 2.2.0 release of the ShrinkWrap Resolver component!

The most significant change since the previous release is the postponing of the settings.xml loading.
Previously, when a user wanted to specify completely different settings.xml:

Maven.configureResolver().fromFile("path/to/my_settings.xml");

During the call configureResolver() the default settings.xml was immediately loaded and later on regenerated with the given my_settings.xml. This process could in some cases cause unexpected behavior (eg. the default settings.xml was corrupted).

In this new release, the loading has been postponed to the time when:

  1. the settings.xml is needed (eg. artifacts resolving)
    or
  2. the resolver is configured with some specific settings.xml (eg. calling fromFile("path/to/my_settings.xml"))

So, there is no change for the user in the usage – it now just does what the user wants (ie. when some different settings.xml is specified, the default one is never loaded).

Significant additions since the last final release 2.1.1:

Gradle importer
List resolution
MavenCoordinates as output
Better cooperation of MavenImporter and IDEs
Upgrade to Aether 1.0.0.v20140518
Upgrade to Maven 3.2.5

And many other bugfixes and feature requests. For more information see the release notes of the preceding alpha releases.

Big kudos to all contributors who helped to make this stable release.

We hope that you’ll enjoy our new release and look forward to hear your feedback on the community forums.

What is ShrinkWrap Resolver?

The ShrinkWrap Resolvers project provides a Java API to obtain artifacts from a repository system. This is handy to include third party libraries available in any Maven repository in your test archive. ShrinkWrap Resolvers additionally allow you to reuse all the configuration you've already specified in the Maven build file, making packaging of an application archive much easier job.

Release details

Component ShrinkWrap Resolver
Version 2.2.0 view tag
Release date 2015-09-16
Released by Matous Jobanek
Compiled against
  • JUnit – 4.11

Published artifacts org.jboss.shrinkwrap.resolver

  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-bom pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api-gradle-embedded-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api-maven jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-depchain pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-gradle-depchain pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-impl-gradle-embedded-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-impl-maven jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-api-maven-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-spi-maven jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-spi-maven-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-impl-maven-archive jar javadoc pom
  • org.jboss.shrinkwrap.resolver » shrinkwrap-resolver-spi jar javadoc pom

Release notes and resolved issues 4

Feature Request
  • SHRINKRES-226 - Loading of the settings.xml configuration should be postponed
Bug
  • SHRINKRES-224 - Generated artifacts from workspace are missing directory entries
  • SHRINKRES-229 - Fix the javadoc to meet JDK 8 requirements
  • SHRINKRES-230 - Tests in ClasspathWorkspaceReaderTestCase are failing when running in IDE

Thanks to the following list of contributors: Matous Jobanek, Olivier Spieser, Michal Matloka, Karel Piwko