Skip to content

Commit 1eead5d

Browse files
authored
Merge pull request #81 from conorheffron/bot-upgrade
JDK & Gradle Upgrade
2 parents e6a243f + 5d5d3c6 commit 1eead5d

File tree

4 files changed

+31
-35
lines changed

4 files changed

+31
-35
lines changed

.github/workflows/codacy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ name: Codacy Security Scan
1515

1616
on:
1717
push:
18-
branches: [ "dev", "release" ]
18+
branches: [ "main" ]
1919
pull_request:
2020
# The branches below must be a subset of the branches above
21-
branches: [ "dev" ]
21+
branches: [ "main" ]
2222
schedule:
2323
- cron: '15 13 * * 5'
2424

.github/workflows/docker-image.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Docker Image CI
22

33
on:
44
push:
5-
branches: [ "dev" ]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: [ "dev" ]
7+
branches: [ "main" ]
88

99
jobs:
1010

.github/workflows/gradle.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ name: Java CI with Gradle
99

1010
on:
1111
push:
12-
branches: [ "dev", "release" ]
12+
branches: [ "main" ]
1313
pull_request:
14-
branches: [ "dev", "release" ]
14+
branches: [ "main" ]
1515

1616
jobs:
1717
build:
@@ -22,20 +22,20 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@v4
25-
- name: Set up JDK 8
25+
- name: Set up JDK 17
2626
uses: actions/setup-java@v4
2727
with:
28-
java-version: '8'
28+
java-version: '17'
2929
distribution: 'temurin'
3030

3131
- name: Setup Gradle
3232
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
3333
with:
34-
gradle-version: '4.7'
34+
gradle-version: '7.3'
3535
dependency-graph: download-and-submit
3636
cache-disabled: true
3737

38-
- name: Build with Gradle 4.7
38+
- name: Build with Gradle 7.3
3939
run: gradle build
4040

4141
dependency-submission:
@@ -46,9 +46,9 @@ jobs:
4646

4747
steps:
4848
- uses: actions/checkout@v4
49-
- name: Set up JDK 8
49+
- name: Set up JDK 17
5050
uses: actions/setup-java@v4
5151
with:
52-
java-version: '8'
52+
java-version: '17'
5353
distribution: 'temurin'
54-
gradle-version: 4.7
54+
gradle-version: 7.3

build.gradle

+18-22
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,23 @@ buildscript {
33
mavenCentral()
44
}
55
dependencies {
6-
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.22.RELEASE")
6+
classpath("org.springframework.boot:spring-boot-gradle-plugin:3.2.4")
77
classpath('se.transmode.gradle:gradle-docker:1.2')
88
}
99
}
1010

1111
apply plugin: 'java'
1212
apply plugin: 'eclipse'
1313
apply plugin: 'idea'
14-
apply plugin: 'org.springframework.boot'
1514
apply plugin: 'docker'
1615
apply plugin: 'war'
17-
apply plugin: 'maven'
1816

1917
group = 'conorheffron'
20-
version = '2.4.0'
18+
version = '3.1.0'
2119
description = "Sample Data Manager"
2220

23-
sourceCompatibility = 1.8
24-
targetCompatibility = 1.8
21+
sourceCompatibility = 17
22+
targetCompatibility = 17
2523
tasks.withType(JavaCompile) {
2624
options.encoding = 'UTF-8'
2725
}
@@ -32,24 +30,22 @@ repositories {
3230

3331
dependencies {
3432
implementation group: 'org.springframework.boot', name: 'spring-boot-maven-plugin', version: '3.2.4'
35-
compile group: 'com.rabbitmq', name: 'amqp-client', version:'5.21.0'
36-
compile group: 'io.searchbox', name: 'jest', version:'6.3.1'
37-
compile group: 'org.elasticsearch', name: 'elasticsearch', version:'8.13.2'
38-
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version:'1.5.22.RELEASE'
39-
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version:'1.5.22.RELEASE'
40-
compile group: 'mysql', name: 'mysql-connector-java', version:'8.0.33'
41-
compile group: 'com.sparkpost', name: 'sparkpost-lib', version:'0.27'
42-
compile group: 'com.h2database', name: 'h2', version:'2.2.224'
43-
compile group: 'org.apache.maven.reporting', name: 'maven-reporting-api', version:'3.1.1'
44-
compile group: 'org.jacoco', name: 'jacoco-maven-plugin', version:'0.8.12'
45-
46-
compile group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version:'3.2.4'
47-
compile group: 'org.apache.tomcat.embed', name: 'tomcat-embed-jasper', version:'10.1.20'
48-
// compile group: 'javax.servlet', name: 'jstl', version:'1.2'
49-
compile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
33+
implementation group: 'com.rabbitmq', name: 'amqp-client', version: '5.18.0'
34+
implementation group: 'io.searchbox', name: 'jest', version:'6.3.1'
35+
implementation group: 'org.elasticsearch', name: 'elasticsearch', version:'8.13.2'
36+
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version:'1.5.22.RELEASE'
37+
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version:'1.5.22.RELEASE'
38+
implementation group: 'mysql', name: 'mysql-connector-java', version:'8.0.33'
39+
implementation group: 'com.sparkpost', name: 'sparkpost-lib', version:'0.27'
40+
implementation group: 'com.h2database', name: 'h2', version:'2.2.224'
41+
implementation group: 'org.apache.maven.reporting', name: 'maven-reporting-api', version:'3.1.1'
42+
implementation group: 'org.jacoco', name: 'jacoco-maven-plugin', version:'0.8.12'
43+
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version:'3.2.4'
44+
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-jasper', version:'10.1.20'
45+
implementation group: 'javax.servlet', name: 'servlet-api', version: '2.5'
5046

5147
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
52-
testCompile(group: 'org.springframework.boot', name: 'spring-boot-starter-test', version:'3.2.4') {
48+
testImplementation(group: 'org.springframework.boot', name: 'spring-boot-starter-test', version:'3.2.4') {
5349
exclude(module: 'commons-logging')
5450
}
5551
}

0 commit comments

Comments
 (0)