mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-19 07:29:14 +08:00
37 lines
786 B
Plaintext
37 lines
786 B
Plaintext
![]() |
buildscript {
|
||
|
ext {
|
||
|
springBootVersion = '1.2.3.RELEASE'
|
||
|
}
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
dependencies {
|
||
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||
|
classpath('io.spring.gradle:dependency-management-plugin:0.5.1.RELEASE')
|
||
|
}
|
||
|
}
|
||
|
|
||
|
apply plugin: 'java'
|
||
|
apply plugin: 'eclipse'
|
||
|
apply plugin: 'spring-boot'
|
||
|
apply plugin: 'io.spring.dependency-management'
|
||
|
|
||
|
jar {
|
||
|
baseName = 'demo'
|
||
|
version = '0.0.1-SNAPSHOT'
|
||
|
}
|
||
|
sourceCompatibility = 1.8
|
||
|
targetCompatibility = 1.8
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
|
||
|
dependencies {
|
||
|
compile('org.springframework.boot:spring-boot-starter-data-jpa')
|
||
|
compile('org.springframework.boot:spring-boot-starter-web')
|
||
|
compileOnly('org.acme:foo')
|
||
|
testCompile('org.springframework.boot:spring-boot-starter-test')
|
||
|
}
|