apply plugin: 'io.spring.convention.docs'
apply plugin: 'io.spring.convention.spring-test'

dependencies {
	testCompile project(':spring-session-data-geode')
	testCompile "javax.servlet:javax.servlet-api"
	testCompile "junit:junit"
	testCompile "org.assertj:assertj-core"
	testCompile "org.mockito:mockito-core"
	testCompile "edu.umd.cs.mtc:multithreadedtc"
	testCompile "org.springframework:spring-test"
}

def versions = dependencyManagement.managedVersions

asciidoctor {

	def ghTag = snapshotBuild ? 'master' : project.version
	def ghUrl = "https://github.com/spring-projects/spring-session/tree/$ghTag"

	attributes	'version-snapshot': snapshotBuild,
			'version-milestone': milestoneBuild,
			'version-release': releaseBuild,
			'gh-url': ghUrl,
			'gh-samples-url': "$ghUrl/samples/",
			'download-url' : "https://github.com/spring-projects/spring-session/archive/${ghTag}.zip",
			'spring-session-version' : version,
			'spring-version' : versions['org.springframework:spring-core'],
			'lettuce-version' : versions['io.lettuce:lettuce-core'],
			'hazelcast-version' : versions['com.hazelcast:hazelcast'],
			'docs-itest-dir' : rootProject.projectDir.path + '/docs/src/integration-test/java/',
			'docs-test-dir' : rootProject.projectDir.path + '/docs/src/test/java/',
			'docs-test-resources-dir' : rootProject.projectDir.path + '/docs/src/test/resources/',
			'samples-dir' : rootProject.projectDir.path + '/samples/',
			'session-main-resources-dir' : rootProject.projectDir.path + '/spring-session/src/main/resources/'
}
