/*
 * This build file was auto generated by running the Gradle 'init' task
 * by 'z001vcf' at '10/25/16 2:36 PM' with Gradle 3.1
 *
 */

buildscript {
    repositories {
        mavenCentral()
        maven { url "http://repo.spring.io/libs-snapshot" } 
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.1.RELEASE")
        classpath 'mysql:mysql-connector-java:5.1.34' 
    }
}

// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'

jar {
    baseName = 'gs-spring-boot'
    version =  '0.1.0'
}

// In this section you declare where to find the dependencies of your project
repositories {
    // Use 'jcenter' for resolving your dependencies.
    // You can declare any Maven/Ivy/file repository here.
    mavenCentral()
    maven { url "http://repo.spring.io/libs-snapshot" } 
    jcenter()
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

// In this section you declare the dependencies for your production and test code
dependencies {
    
    compile ('org.springframework.boot:spring-boot-starter-web') {
  		exclude group: 'ch.qos.logback', module: 'logback-classic'
  		exclude group: 'org.slf4j', module: 'log4j-over-slf4j'
  	}
  	
  	//compile ('org.apache.ignite:ignite-rest-http:1.7.0') {
  	//	exclude group: "org.slf4j", module: "slf4j-log4j12"
  	//}
  	
  	
 	//compile("org.springframework.boot:spring-boot-starter-web") 
 	compile("org.springframework.boot:spring-boot-starter-jdbc")
 	compile("org.springframework.boot:spring-boot-starter-data-jpa") 
 	compile("mysql:mysql-connector-java:5.1.34")
	
	// Ignite dependencies
 	compile group: 'org.apache.ignite', name: 'ignite-core', version: '1.7.0'
 	compile group: 'org.apache.ignite', name: 'ignite-spring', version: '1.7.0'
 	compile group: 'org.apache.ignite', name: 'ignite-indexing', version: '1.7.0'
	
    // Declare the dependency for your favourite test framework you want to use in your tests.
    // TestNG is also supported by the Gradle Test task. Just change the
    // testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
    // 'test.useTestNG()' to your build script.
    testCompile 'junit:junit:4.12'
}
