Skip to content

Commit

Permalink
fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed Aug 14, 2024
1 parent eb53dae commit c0e25b8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Set Version
run: sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' gradle.properties

- name: Build & Publish
run: ./gradlew build publish
env:
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ plugins {
id "maven-publish"
}

version = project.version
group = project.group

tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
Expand All @@ -20,8 +23,8 @@ publishing {
}
publications {
mavenJava(MavenPublication) {
groupId = "me.mrnavastar.R"
artifactId = project.name
groupId = "me.mrnavastar"
artifactId = "r"
from components.java
}
}
Expand Down
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
org.gradle.jvmargs=-Xmx4G

group=me.mrnavastar
archives_base_name=r
version=debug-build

0 comments on commit c0e25b8

Please sign in to comment.