Skip to content

Instantly share code, notes, and snippets.

@DengYiping
Last active November 26, 2018 13:15
Show Gist options
  • Save DengYiping/41012b0a909be77ad6953e230679c300 to your computer and use it in GitHub Desktop.
Save DengYiping/41012b0a909be77ad6953e230679c300 to your computer and use it in GitHub Desktop.
Gradle file for Spring Application
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