buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        maven {
            url "https://ihealthbuild.agilexhealth.com/artifactory/plugins-release-local"
        }
        maven {
            url "https://ihealthbuild.agilexhealth.com/artifactory/plugins-snapshot-local"
        }
    }

    dependencies {
        classpath group: "com.agilex.build",
                name: "buildPlugin",
                version: "1.0-SNAPSHOT"
    }
}
apply plugin: 'build'

apply plugin: 'maven-publish'
publishing {
    repositories {
        maven {
            name 'Release'
            url 'https://ihealthbuild.agilexhealth.com/artifactory/agilex'
            credentials {
                username "${artifactoryUser}"
                password "${artifactoryPass}"
            }
        }
        maven {
            name 'Final'
            url 'https://ihealthbuild.agilexhealth.com/artifactory/agilex'
            credentials {
                username "${artifactoryUser}"
                password "${artifactoryPass}"
            }
        }
        maven {
            name 'Snapshot'
            url 'https://ihealthbuild.agilexhealth.com/artifactory/agilex'
            credentials {
                username "${artifactoryUser}"
                password "${artifactoryPass}"
            }
        }
    }

    publications {
        maven(MavenPublication) {
            version "${project.buildArgs.buildVersion}"

            from components.java
        }
    }
}

apply plugin: 'eclipse'
apply plugin: 'idea'

archivesBaseName = 'SchedulingManagerMDWSLib'
group = 'com.agilex.vamf.scheduling'

dependencies {
	compile project(':SchedulingManagerLib')
	compile 'org.apache.cxf:cxf-rt-frontend-jaxws:2.6.0'
	compile 'org.apache.cxf:cxf-rt-transports-http:2.6.0'
	compile 'commons-pool:commons-pool:1.6'
	compile 'org.springframework:spring-context:3.1.1.RELEASE'
	compile "javax.servlet:servlet-api:2.5"
    compile(group: 'com.agilex.auth', name: 'AuthorizationServicesLib', version: '4.1.0-SNAPSHOT') {
        exclude module: 'HealthAdapterLib'
    }
    compile(group: 'com.agilex.vamf', name: 'HealthAdapterLib', version: '4.0-SNAPSHOT')

    compile "org.springframework.security:spring-security-core:3.1.0.RELEASE"
    compile "org.springframework.security:spring-security-config:3.1.0.RELEASE"
    compile "org.springframework.security:spring-security-web:3.1.0.RELEASE"
    compile "org.springframework.security:spring-security-taglibs:3.1.0.RELEASE"

    compile 'org.codehaus.jsr166-mirror:jsr166y:1.7.0'

    testCompile "org.springframework:spring-tx:3.1.1.RELEASE"
	testCompile "org.springframework:spring-web:3.1.1.RELEASE"
	testCompile "org.springframework:spring-core:3.1.1.RELEASE"
	testCompile "org.springframework:spring-beans:3.1.1.RELEASE"
	testCompile "org.springframework:spring-aop:3.1.1.RELEASE"
	testCompile "org.springframework:spring-web:3.1.1.RELEASE"
	testCompile "org.springframework:spring-asm:3.1.1.RELEASE"
	testCompile "org.springframework:spring-context:3.1.1.RELEASE"
	testCompile "org.springframework:spring-expression:3.1.1.RELEASE"
	
	testRuntime "org.apache.cocoon:cocoon-spring-configurator:2.1.0"
	testRuntime "org.apache.cocoon:cocoon-configuration-api:1.0.2"
	testCompile "org.springframework:spring-test:3.1.1.RELEASE"
	testCompile "org.springframework.security.oauth:spring-security-oauth2:1.0.4.RELEASE"

	compile 'com.yammer.metrics:metrics-core:2.2.0'
}
