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