forked from DevFW-CICD/spring-petclinic
Make build work with Gradle
This commit is contained in:
parent
ce626da705
commit
4df621b41e
7 changed files with 342 additions and 0 deletions
60
build.gradle
Normal file
60
build.gradle
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
buildscript {
|
||||
dependencies {
|
||||
classpath 'ro.isdc.wro4j.gradle:wro4j-gradle-plugin:1.8.0.Beta4'
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'org.springframework.boot' version '2.4.5'
|
||||
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
||||
id 'java'
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'wro4j'
|
||||
|
||||
group = 'org.springframework.samples'
|
||||
version = '2.4.5'
|
||||
sourceCompatibility = '11'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
ext.webjarsJqueryVersion = "2.2.4"
|
||||
ext.webjarsJqueryUiVersion = "1.11.4"
|
||||
ext.webjarsBootstrapVersion = "3.3.6"
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-cache'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
||||
implementation 'javax.cache:cache-api'
|
||||
webjarsRuntime 'org.webjars:webjars-locator-core'
|
||||
webjarsRuntime "org.webjars:jquery:${webjarsJqueryVersion}"
|
||||
webjarsRuntime "org.webjars:jquery-ui:${webjarsJqueryUiVersion}"
|
||||
webjarsRuntime "org.webjars:bootstrap:${webjarsBootstrapVersion}"
|
||||
webjarsRuntime "org.webjars:bootstrap:${webjarsBootstrapVersion}"
|
||||
runtimeOnly 'org.ehcache:ehcache'
|
||||
runtimeOnly 'com.h2database:h2'
|
||||
runtimeOnly 'mysql:mysql-connector-java'
|
||||
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
webResources {
|
||||
srcMainDir = layout.projectDirectory.dir('src/main').asFile
|
||||
dstStaticFolder = 'static/resources/css'
|
||||
bundle ('petclinic') {
|
||||
css 'webjars/bootstrap/3.3.6/less/bootstrap.less'
|
||||
css 'less/petclinic.less'
|
||||
preProcessor 'lessCssImport'
|
||||
postProcessor 'less4j'
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue