buildscript { ext { springBootVersion = '2.2.6.RELEASE' springBootDependenciesVersion = '1.0.9.RELEASE' } repositories { maven { url 'https://repo.spring.io/milestone' } mavenCentral() } dependencies { classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}" classpath "io.spring.gradle:dependency-management-plugin:${springBootDependenciesVersion}" } } plugins { id 'org.springframework.boot' version '2.2.6.RELEASE' id 'io.spring.dependency-management' version '1.0.9.RELEASE' id 'java' } allprojects { repositories { mavenCentral() } } subprojects { project.ext { camelVersion = '3.1.0' springBootDependenciesVersion = '2.2.2.RELEASE' fasterxmlJacksonVersion = '2.10.0' apacheCommonsCollectionsVersion = '4.4' apacheCommonsLangVersion = '3.9' } apply plugin: 'java' apply plugin: 'idea' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' group = 'com.bvn13.covid19' sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { maven { url 'https://repo.spring.io/milestone' } mavenCentral() } tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } dependencyManagement { imports { mavenBom("org.springframework.boot:spring-boot-dependencies:${springBootVersion}") } } configurations { compileOnly { extendsFrom annotationProcessor } } dependencies { annotationProcessor 'org.projectlombok:lombok' compileOnly 'org.projectlombok:lombok' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } // https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 implementation "org.apache.commons:commons-collections4:${apacheCommonsCollectionsVersion}" // https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 implementation "org.apache.commons:commons-lang3:${apacheCommonsLangVersion}" } test { useJUnitPlatform() testLogging { events 'started', 'passed', 'failed', 'skipped', 'standard_out', 'standard_error' } } } defaultTasks('clean', 'compileTestJava', 'jar')