buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        maven { url "http://repo.spring.io/release" }
        maven { url "http://repo.spring.io/snapshot" }
        maven { url "https://repo.spring.io/libs-snapshot" }
        maven { url "http://repo.spring.io/milestone" }
        maven { url "https://repo.spring.io/libs-milestone" }
    }

    dependencies {
        classpath boot.springBootPlugin
    }
}

apply plugin: 'org.springframework.boot'

dependencies {
    compile  (boot.starterJpa) {
        exclude group: 'org.hibernate', module: 'hibernate-core'
    }
    compile hibernate.core  // overwrite version of hibernate used so it works well with H2 2.0.206
    compile boot.starterWebflux, boot.starterWeb, boot.starterJta, db.h2
    testCompile boot.starterTest, testing.junit5Engine
}

jar {
    manifest {
        attributes("Created-By": "Iuliana Cosmina",
                "Specification-Title": "Pro Spring 5",
                "Class-Path": configurations.compile.collect { it.getName() }.join(' '))
    }
}