Skip to content

Commit

Permalink
build: Remove git versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Mar 4, 2024
1 parent 0ceab82 commit dadd0ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/java-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 1 addition & 9 deletions annotation-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 -------------------

Expand Down
10 changes: 1 addition & 9 deletions framework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 -------------------

Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit dadd0ae

Please sign in to comment.