Last active
June 27, 2019 22:03
-
-
Save MrMjauh/4824ff9e115b827dd35893ba83ad3ce9 to your computer and use it in GitHub Desktop.
Gradle Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'org.springframework.boot' version '2.1.6.RELEASE' | |
id 'java' | |
id 'jacoco' | |
id 'checkstyle' | |
} | |
apply plugin: 'io.spring.dependency-management' | |
group = 'com.codecamos' | |
version = '0.0.1-SNAPSHOT' | |
sourceCompatibility = '11' | |
repositories { | |
mavenCentral() | |
maven { url 'https://repo.spring.io/snapshot' } | |
maven { url 'https://repo.spring.io/milestone' } | |
} | |
configurations { | |
developmentOnly | |
runtimeClasspath { | |
extendsFrom developmentOnly | |
} | |
} | |
checkstyle { | |
toolVersion = "8.18" | |
} | |
dependencies { | |
implementation 'org.springframework.boot:spring-boot-starter-security' | |
implementation 'org.springframework.boot:spring-boot-starter-web' | |
implementation 'org.springframework.boot:spring-boot-starter-actuator' | |
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb' | |
implementation 'org.springframework.boot:spring-boot-starter-jetty' | |
testImplementation('org.springframework.boot:spring-boot-starter-test') { | |
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' | |
exclude group: 'junit', module: 'junit' | |
} | |
testImplementation 'org.springframework.security:spring-security-test' | |
compileOnly 'org.projectlombok:lombok:1.18.8' | |
annotationProcessor 'org.projectlombok:lombok:1.18.8' | |
compile 'io.springfox:springfox-swagger2:2.9.2' | |
compile 'io.springfox:springfox-core:2.9.2' | |
compile 'io.springfox:springfox-swagger-ui:2.9.2' | |
developmentOnly("org.springframework.boot:spring-boot-devtools") | |
} | |
test { | |
useJUnitPlatform() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment