Last active
November 26, 2018 13:15
-
-
Save DengYiping/41012b0a909be77ad6953e230679c300 to your computer and use it in GitHub Desktop.
Gradle file for Spring Application
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
buildscript { | |
ext { | |
springBootVersion = '2.1.0.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
apply plugin: 'org.springframework.boot' | |
apply plugin: 'io.spring.dependency-management' | |
group = 'com.billboard' | |
version = '0.0.1-SNAPSHOT' | |
sourceCompatibility = 1.8 | |
repositories { | |
mavenCentral() | |
maven { | |
url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' | |
} | |
} | |
String springfoxVersion = '3.0.0-SNAPSHOT' | |
dependencies { | |
implementation('org.springframework.boot:spring-boot-starter-data-jpa') | |
implementation('org.springframework.boot:spring-boot-starter-data-rest') | |
implementation('org.springframework.boot:spring-boot-starter-web') | |
implementation('org.mariadb.jdbc:mariadb-java-client:2.2.6') | |
implementation('io.springfox:springfox-swagger2:' + springfoxVersion) | |
implementation('io.springfox:springfox-swagger-ui:' + springfoxVersion) | |
implementation('io.springfox:springfox-data-rest:' + springfoxVersion) | |
runtimeOnly('org.springframework.boot:spring-boot-devtools') | |
testImplementation('org.springframework.boot:spring-boot-starter-test') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment