Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Jan 9, 2025
1 parent 91f9de8 commit 3453294
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ jobs:
distribution: "temurin"
java-version: 11

- name: Install protoc (protobuf)
uses: arduino/setup-protoc@v3
with:
version: "29.1"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build java artifact
working-directory: ./java
run: |
Expand Down
5 changes: 4 additions & 1 deletion java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ subprojects {
// finalizedBy jacocoTestReport, jacocoTestCoverageVerification
}

ext.failedTests = []
ext {
defaultReleaseVersion = "255.255.255"
failedTests = []
}

tasks.withType(Test) {
afterTest { TestDescriptor descriptor, TestResult result ->
Expand Down
4 changes: 1 addition & 3 deletions java/client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,6 @@ tasks.register('copyNativeLib', Copy) {
into sourceSets.main.output.resourcesDir
}

def defaultReleaseVersion = "255.255.255";

delombok.dependsOn('compileJava')
jar.dependsOn('copyNativeLib')
javadoc.dependsOn('copyNativeLib')
Expand Down Expand Up @@ -170,7 +168,7 @@ publishing {
from components.java
groupId = 'io.valkey'
artifactId = 'valkey-glide'
version = System.getenv("GLIDE_RELEASE_VERSION") ?: defaultReleaseVersion;
version = System.getenv("GLIDE_RELEASE_VERSION") ?: project.ext.defaultReleaseVersion
pom {
name = 'valkey-glide'
description = 'General Language Independent Driver for the Enterprise (GLIDE) for Valkey'
Expand Down
2 changes: 1 addition & 1 deletion java/integTest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repositories {

dependencies {
// client
implementation group: 'io.valkey', name: 'valkey-glide', version: '255.255.255', classifier: osdetector.classifier
implementation group: 'io.valkey', name: 'valkey-glide', version: project.ext.defaultReleaseVersion, classifier: osdetector.classifier

implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.13.0'
implementation 'com.google.code.gson:gson:2.10.1'
Expand Down

0 comments on commit 3453294

Please sign in to comment.