buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
    }
}

apply plugin: "java"
apply plugin: "org.springframework.boot"

sourceCompatibility = 1.8
targetCompatibility = 1.8

jar {
    baseName = 'upper-function'
    version =  '1.0.0'
}

springBoot {
  mainClass = "com.github.diegopacheco.sandbox.java.spring.cloud.functions.fun.Functions"
}

repositories {
    mavenCentral()
    maven { url 'http://repo.spring.io/libs-release' }
    maven { url 'https://repo.spring.io/libs-snapshot-local' }
    maven { url 'https://repo.spring.io/libs-milestone-local' }
    maven { url "https://oss.sonatype.org/content/groups/public/" }
}

dependencies {
	compile([
	    "org.springframework.cloud:spring-cloud-function-web:1.0.0.BUILD-SNAPSHOT",
        "org.springframework.cloud:spring-cloud-function-compiler:1.0.0.BUILD-SNAPSHOT",
        "io.projectreactor:reactor-core:3.0.7.BUILD-SNAPSHOT",
	])

  compile("org.springframework.boot:spring-boot-starter-web")
  compile("org.thymeleaf:thymeleaf-spring4")
  compile("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")

	testCompile([
			'junit:junit:4.12',
    ])
}

buildscript {
    repositories {
        jcenter()
        mavenCentral()
        maven { url 'http://repo.spring.io/libs-release' }
        maven { url 'https://repo.spring.io/libs-snapshot-local' }
        maven { url 'https://repo.spring.io/libs-milestone-local' }
        maven { url "https://oss.sonatype.org/content/groups/public/" }
    }
    dependencies {
    }
}
