Skip to content

Commit

Permalink
Use tag name as version and clean publication
Browse files Browse the repository at this point in the history
  • Loading branch information
oluiscabral committed Dec 12, 2024
1 parent 5b1ea61 commit 229b48f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ jobs:
run: gradle publish
working-directory: ./java
env:
RELEASE_VERSION: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ buildscript {
dependencies {
classpath libs.gradle
classpath libs.rust.android
classpath libs.axion.release.plugin
}
}

Expand Down
2 changes: 0 additions & 2 deletions java/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
gradle = "8.7.3"
rustAndroid = "0.9.4"
junitJupiterApi = "5.11.3"
axionReleasePlugin = "1.17.0"

[libraries]
gradle = { module = "com.android.tools.build:gradle", version.ref = "gradle" }
rust-android = { module = "org.mozilla.rust-android-gradle:plugin", version.ref = "rustAndroid" }
junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junitJupiterApi" }
junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junitJupiterApi" }
axion-release-plugin = { module = "pl.allegro.tech.build:axion-release-plugin", version.ref = "axionReleasePlugin" }
6 changes: 2 additions & 4 deletions java/lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apply plugin: 'maven-publish'
apply plugin: 'com.android.library'
apply plugin: 'pl.allegro.tech.build.axion-release'
apply plugin: 'org.mozilla.rust-android-gradle.rust-android'

android {
Expand Down Expand Up @@ -62,13 +61,12 @@ tasks.configureEach { task ->
}
}

def libVersion = scmVersion.version
publishing {
publications {
release(MavenPublication) {
groupId = 'dev.arkbuilders'
artifactId = 'core'
version = libVersion
groupId = 'dev.arkbuilders'
version = System.getenv('RELEASE_VERSION')
afterEvaluate {
from components.release
}
Expand Down

0 comments on commit 229b48f

Please sign in to comment.