<assembly>
	<id>with-dependencies</id>
	<formats>
		<format>zip</format>
	</formats>
	<componentDescriptors>
		<componentDescriptor>src/assembly/docs.xml</componentDescriptor>
	</componentDescriptors>
	<includeBaseDirectory>true</includeBaseDirectory>
	<moduleSets>
		<moduleSet>
			<includes>
				<include>
					org.springframework.batch:spring-batch-core
				</include>
				<include>
					org.springframework.batch:spring-batch-infrastructure
				</include>
			</includes>
			<sources>
				<includeModuleDirectory>false</includeModuleDirectory>
				<fileSets>
					<fileSet>
						<directory>target</directory>
						<outputDirectory>dist</outputDirectory>
						<includes>
							<include>*.jar</include>
						</includes>
					</fileSet>
				</fileSets>
			</sources>
		</moduleSet>	
		<moduleSet>
			<includes>
				<include>
					org.springframework.batch:spring-batch-samples
				</include>
			</includes>
			<sources>
				<outputDirectoryMapping>
					samples/${artifactId}
				</outputDirectoryMapping>
				<fileSets>
					<fileSet>
						<excludes>
							<exclude>bin/**</exclude>
							<exclude>target/**</exclude>
						</excludes>
					</fileSet>
				</fileSets>
			</sources>
		</moduleSet>
		<moduleSet>
			<includes>
				<include>
					org.springframework.batch:spring-batch-core
				</include>
				<include>
					org.springframework.batch:spring-batch-infrastructure
				</include>
			</includes>
			<sources>
				<outputDirectoryMapping>
					sources/${artifactId}
				</outputDirectoryMapping>
				<fileSets>
					<fileSet>
						<excludes>
							<exclude>bin/**</exclude>
							<exclude>target/**</exclude>
						</excludes>
					</fileSet>
				</fileSets>
			</sources>
		</moduleSet>
		<moduleSet>
			<includes>
				<include>
					org.springframework.batch:spring-batch-core
				</include>
				<include>
					org.springframework.batch:spring-batch-infrastructure
				</include>
			</includes>
			<binaries>
				<includeDependencies>false</includeDependencies>
				<outputDirectory>sources</outputDirectory>
				<unpack>false</unpack>
				<dependencySets>
					<dependencySet>
						<outputFileNameMapping>
							lib/${groupId}/${version}/${artifactId}-${version}.${extension}
						</outputFileNameMapping>
						<scope>runtime</scope>
						<excludes>
							<exclude>
								org.springframework.batch:spring-batch
							</exclude>
							<exclude>
								org.springframework.batch:spring-batch-core
							</exclude>
							<exclude>
								org.springframework.batch:spring-batch-infrastructure
							</exclude>
						</excludes>
					</dependencySet>
					<dependencySet>
						<outputFileNameMapping>
							lib/${groupId}/${version}/${artifactId}-${version}.${extension}
						</outputFileNameMapping>
						<scope>provided</scope>
					</dependencySet>
				</dependencySets>
			</binaries>
		</moduleSet>	
		<moduleSet>
			<includes>
				<include>
					org.springframework.batch:spring-batch-samples
				</include>
			</includes>
			<binaries>
				<includeDependencies>true</includeDependencies>
				<outputDirectory>samples</outputDirectory>
				<unpack>false</unpack>
				<dependencySets>
					<dependencySet>
						<outputFileNameMapping>
							lib/${groupId}/${version}/${artifactId}-${version}.${extension}
						</outputFileNameMapping>
						<scope>runtime</scope>
						<excludes>
							<exclude>
								org.springframework.batch:spring-batch
							</exclude>
							<exclude>
								org.springframework.batch:spring-batch-core
							</exclude>
							<exclude>
								org.springframework.batch:spring-batch-infrastructure
							</exclude>
						</excludes>
					</dependencySet>
					<dependencySet>
						<outputFileNameMapping>
							lib/${groupId}/${version}/${artifactId}-${version}.${extension}
						</outputFileNameMapping>
						<scope>provided</scope>
						<excludes>
							<exclude>
								org.springframework.batch:spring-batch
							</exclude>
							<exclude>
								org.springframework.batch:spring-batch-core
							</exclude>
							<exclude>
								org.springframework.batch:spring-batch-infrastructure
							</exclude>
						</excludes>
					</dependencySet>
					<dependencySet>
						<outputFileNameMapping>
							lib/${groupId}/${version}/${artifactId}-${version}.${extension}
						</outputFileNameMapping>
						<scope>test</scope>
						<excludes>
							<exclude>
								org.springframework.batch:spring-batch
							</exclude>
							<exclude>
								org.springframework.batch:spring-batch-core
							</exclude>
							<exclude>
								org.springframework.batch:spring-batch-infrastructure
							</exclude>
						</excludes>
					</dependencySet>
				</dependencySets>
			</binaries>
		</moduleSet>
	</moduleSets>
</assembly>
