mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-06-27 19:30:47 +00:00
Update for recent changes in mvn build
This commit is contained in:
parent
4df621b41e
commit
f0155739c3
2 changed files with 9 additions and 29 deletions
36
build.gradle
36
build.gradle
|
@ -1,29 +1,21 @@
|
|||
buildscript {
|
||||
dependencies {
|
||||
classpath 'ro.isdc.wro4j.gradle:wro4j-gradle-plugin:1.8.0.Beta4'
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'org.springframework.boot' version '2.4.5'
|
||||
id 'org.springframework.boot' version '2.6.1'
|
||||
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'
|
||||
version = '2.6.0'
|
||||
sourceCompatibility = '11'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
ext.webjarsJqueryVersion = "2.2.4"
|
||||
ext.webjarsJqueryUiVersion = "1.11.4"
|
||||
ext.webjarsBootstrapVersion = "3.3.6"
|
||||
ext.webjarsFontawesomeVersion = "4.7.0"
|
||||
ext.webjarsBootstrapVersion = "5.1.3"
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-cache'
|
||||
|
@ -32,14 +24,13 @@ dependencies {
|
|||
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.webjars:webjars-locator-core'
|
||||
runtimeOnly "org.webjars.npm:bootstrap:${webjarsBootstrapVersion}"
|
||||
runtimeOnly "org.webjars.npm:font-awesome:${webjarsFontawesomeVersion}"
|
||||
runtimeOnly 'org.ehcache:ehcache'
|
||||
runtimeOnly 'com.h2database:h2'
|
||||
runtimeOnly 'mysql:mysql-connector-java'
|
||||
runtimeOnly 'org.postgresql:postgresql'
|
||||
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
}
|
||||
|
@ -47,14 +38,3 @@ dependencies {
|
|||
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'
|
||||
}
|
||||
}
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
Loading…
Reference in a new issue