buildscript {
    repositories {
        maven { url 'https://repo.spring.io/plugins-release' }
    }
    dependencies {
        classpath 'io.spring.gradle:propdeps-plugin:0.0.10.RELEASE'
    }
}

plugins {
    id 'java-library'
    id 'io.spring.convention.repository'
    id 'io.spring.convention.springdependencymangement'
    id 'io.spring.convention.dependency-set'
    id 'io.spring.convention.checkstyle'
    id 'io.spring.convention.tests-configuration'
    id 'io.spring.convention.integration-test'
    id 'propdeps'
}

configurations {
    classesOnlyElements {
        canBeConsumed = true
        canBeResolved = false
    }
}

artifacts {
    classesOnlyElements(compileJava.destinationDir)
}

dependencies {
    compile project(':spring-session-core')
    optional "com.hazelcast:hazelcast:4.2.3"
    compile "org.springframework:spring-context"
    compile "javax.annotation:javax.annotation-api"

    testCompile "javax.servlet:javax.servlet-api"
    testCompile "org.springframework:spring-web"
    testCompile "org.junit.jupiter:junit-jupiter-api"
    testCompile "org.springframework.security:spring-security-core"
    testRuntime "org.junit.jupiter:junit-jupiter-engine"

    integrationTestCompile "org.testcontainers:testcontainers"
    integrationTestCompile "com.hazelcast:hazelcast:4.2.3"
    integrationTestCompile project(":spring-session-hazelcast")
}

