From c0e25b8fd024a58105ab5799a8b47a6a8780e09b Mon Sep 17 00:00:00 2001 From: MrNavaStar Date: Wed, 14 Aug 2024 02:42:54 -0600 Subject: [PATCH] fix publish --- .github/workflows/publish.yml | 3 +++ build.gradle | 7 +++++-- gradle.properties | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 gradle.properties diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eda11bc..0ee30e5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: diff --git a/build.gradle b/build.gradle index 58a3607..031db54 100644 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,9 @@ plugins { id "maven-publish" } +version = project.version +group = project.group + tasks.withType(JavaCompile) { options.encoding = "UTF-8" } @@ -20,8 +23,8 @@ publishing { } publications { mavenJava(MavenPublication) { - groupId = "me.mrnavastar.R" - artifactId = project.name + groupId = "me.mrnavastar" + artifactId = "r" from components.java } } diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..5f6862d --- /dev/null +++ b/gradle.properties @@ -0,0 +1,5 @@ +org.gradle.jvmargs=-Xmx4G + +group=me.mrnavastar +archives_base_name=r +version=debug-build \ No newline at end of file