Skip to content

Commit cbab404

Browse files
committed
Gradle 7 & Java 11 Upgrade
1 parent b785991 commit cbab404

File tree

1 file changed

+29
-22
lines changed

1 file changed

+29
-22
lines changed

build.gradle

+29-22
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
buildscript {
2+
ext {
3+
springBootVersion = '2.5.6'
4+
}
5+
26
repositories {
3-
maven { url "https://repo.spring.io/libs-release" }
47
mavenLocal()
58
mavenCentral()
69
jcenter()
710
}
8-
dependencies {
9-
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.1.5.RELEASE',
10-
'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
11-
}
11+
12+
13+
}
14+
15+
plugins {
16+
id 'org.springframework.boot' version '2.5.6'
17+
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
18+
id 'java'
19+
id 'idea'
20+
id 'eclipse'
21+
id "com.github.hierynomus.license" version "0.15.0"
1222
}
1323

14-
apply plugin: 'java'
15-
apply plugin: 'idea'
16-
apply plugin: 'eclipse'
17-
apply plugin: 'spring-boot'
18-
apply plugin: 'license'
24+
25+
sourceCompatibility = '11'
1926

2027
if (project.hasProperty('profile')
2128
&& project.getProperty('profile') == 'deployable') {
@@ -43,18 +50,18 @@ task licenseFormatBuildScripts (type:nl.javadude.gradle.plugins.license.License)
4350
licenseFormat.dependsOn licenseFormatBuildScripts
4451

4552
dependencies {
46-
compile("org.springframework.boot:spring-boot-starter-web")
47-
compile("org.springframework.boot:spring-boot-starter-actuator")
48-
compile("org.springframework.boot:spring-boot-starter-data-jpa")
49-
compile("org.flywaydb:flyway-core")
50-
compile('org.apache.velocity:velocity:1.7')
51-
compile('com.squareup.okhttp:okhttp:2.0.0')
52-
compile('com.squareup.okhttp:okhttp-urlconnection:2.0.0')
53-
compile('com.squareup.retrofit:retrofit:1.6.1')
54-
compile('com.twilio.sdk:twilio:7.1.0')
55-
compile('org.drizzle.jdbc:drizzle-jdbc:1.3')
56-
compile('com.infobip:infobip-api-java-client:1.1.0')
57-
testCompile("org.springframework.boot:spring-boot-starter-test")
53+
implementation("org.springframework.boot:spring-boot-starter-web")
54+
implementation("org.springframework.boot:spring-boot-starter-actuator")
55+
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
56+
implementation("org.flywaydb:flyway-core")
57+
implementation('org.apache.velocity:velocity:1.7')
58+
implementation('com.squareup.okhttp:okhttp:2.0.0')
59+
implementation('com.squareup.okhttp:okhttp-urlconnection:2.0.0')
60+
implementation('com.squareup.retrofit:retrofit:1.6.1')
61+
implementation('com.twilio.sdk:twilio:7.1.0')
62+
implementation('org.drizzle.jdbc:drizzle-jdbc:1.3')
63+
implementation('com.infobip:infobip-api-java-client:1.1.0')
64+
testImplementation("org.springframework.boot:spring-boot-starter-test")
5865

5966
}
6067

0 commit comments

Comments
 (0)