From dadd0ae840557c2287211b8bcf9edf0225261846 Mon Sep 17 00:00:00 2001 From: Adrian Kunz Date: Mon, 4 Mar 2024 13:27:18 +0100 Subject: [PATCH] build: Remove git versioning --- .github/workflows/java-ci-cd.yaml | 2 -- annotation-processor/build.gradle | 10 +--------- framework/build.gradle | 10 +--------- gradle.properties | 4 +++- 4 files changed, 5 insertions(+), 21 deletions(-) diff --git a/.github/workflows/java-ci-cd.yaml b/.github/workflows/java-ci-cd.yaml index 68038eb6..c0f7f839 100644 --- a/.github/workflows/java-ci-cd.yaml +++ b/.github/workflows/java-ci-cd.yaml @@ -25,8 +25,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-depth: 0 # for "git describe" - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v4 with: diff --git a/annotation-processor/build.gradle b/annotation-processor/build.gradle index f1a0eb46..a7dfd2b4 100644 --- a/annotation-processor/build.gradle +++ b/annotation-processor/build.gradle @@ -5,15 +5,7 @@ plugins { } group = projectGroup -version = project.findProperty('processorVersion') ?: getGitVersion() - -String getGitVersion() { - String output = 'git describe --tags --always'.execute([], rootDir).text.trim() - if (output.startsWith('v')) { - output = output.substring(1) - } - return output -} +version = processorVersion // ------------------- Dependencies ------------------- diff --git a/framework/build.gradle b/framework/build.gradle index 9ce3cf6a..e7042d4a 100644 --- a/framework/build.gradle +++ b/framework/build.gradle @@ -7,15 +7,7 @@ plugins { } group = projectGroup -version = project.findProperty('frameworkVersion') ?: getGitVersion() - -String getGitVersion() { - String output = 'git describe --tags --always'.execute([], rootDir).text.trim() - if (output.startsWith('v')) { - output = output.substring(1) - } - return output -} +version = frameworkVersion // ------------------- Dependencies ------------------- diff --git a/gradle.properties b/gradle.properties index c7ee6c50..4b306b08 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,8 @@ # Details about the project projectName = fulibFx -projectVersion = 1.0.0 +projectVersion = 0.0.0 +frameworkVersion = 0.1.0 +processorVersion = 0.1.0 # Gradle settings projectGroup = org.fulib