Skip to content

Commit

Permalink
- Upgrade Java Version to 17
Browse files Browse the repository at this point in the history
- Upgrade Gradle to 8.8
- Added a GitHub Actions workflow
  • Loading branch information
jmigueprieto committed Jun 28, 2024
1 parent b18e84c commit f6864d0
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 10 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI Build

on:
push:
branches:
- '**'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'zulu'

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build with Gradle
run: ./gradlew build
27 changes: 18 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,21 @@ repositories {
mavenCentral()
}

dependencies {
def conductorVersion = "3.13.8"
def conductorClientVersion = "2.0.7"
def log4jVersion = "2.17.2!!"
def jacksonVersion = "2.13.2!!"
ext {
conductorVersion = '3.13.8'
conductorClientVersion = '2.0.7'
log4jVersion = '2.17.2!!'
jacksonVersion = '2.13.2!!'
lombokVersion = '1.18.28'
junitVersion = '5.8.1'
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

dependencies {
implementation "com.netflix.conductor:conductor-client:${conductorVersion}"
implementation "com.netflix.conductor:conductor-common:${conductorVersion}"
implementation "io.orkes.conductor:orkes-conductor-client:${conductorClientVersion}"
Expand All @@ -33,11 +42,11 @@ dependencies {
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}"

compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation "org.junit.jupiter:junit-jupiter-api:${lombokVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${lombokVersion}"
}

test {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit f6864d0

Please sign in to comment.