allprojects { repositories { mavenCentral() jcenter() maven { url "https://jitpack.io" } maven { url "https://repository.apache.org/content/repositories/snapshots/" } } apply plugin: 'java' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' apply plugin: 'com.github.ben-manes.versions' dependencyUpdates.resolutionStrategy = { componentSelection { rules -> rules.all { ComponentSelection selection -> boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm', 'pr', 'b'].any { qualifier -> selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/ } if (rejected) { selection.reject('Release candidate') } } } } } project.ext { springBootVersion = '2.0.0.RELEASE' jacksonVersion = '2.9.4' } buildscript { repositories { mavenCentral() jcenter() } dependencies { classpath "org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE" classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0' } } repositories { jcenter() } dependencyManagement { imports { mavenBom("org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}") } } dependencies { testCompile project(':juick-core') testCompile project(':juick-www') testCompile "org.json:json:20180130" testCompile "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}" testCompile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}" testCompile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}" compile("org.springframework.boot:spring-boot-starter-jdbc") compile("org.springframework.boot:spring-boot-starter-test") testRuntime "mysql:mysql-connector-java:5.1.40" testRuntime "org.postgresql:postgresql:42.2.1" } compileJava.options.encoding = 'UTF-8'