diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..82639f4 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/build.gradle b/build.gradle index bc5a51c..3dbdef4 100644 --- a/build.gradle +++ b/build.gradle @@ -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}" @@ -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 { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 41dfb87..0d18421 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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