From b1015510fd3f21c924895ea1e1adf9813ab63515 Mon Sep 17 00:00:00 2001 From: Vankka Date: Fri, 5 Jul 2024 23:17:32 +0300 Subject: [PATCH] 1.0.0 --- .github/workflows/deploy.yaml | 2 +- README.md | 29 +++++++++++++++++++++++++++-- build.gradle | 27 ++++++++++++++++----------- 3 files changed, 44 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 9cd9766..8a8acd3 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -17,7 +17,7 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - name: Deploy with Gradle - run: ./gradlew publish --no-daemon + run: ./gradlew publishToSonatype --no-daemon env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} diff --git a/README.md b/README.md index a161565..0868047 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,36 @@ # MinecraftDependencyDownload -**Not yet released** - Minecraft implementations for [DependencyDownload](https://github.com/Vankka/DependencyDownload) Heavily inspired by [LuckPerms](https://github.com/lucko/LuckPerms)' dependency management system +## Dependency +```groovy +repositories { + mavenCentral() +} + +dependencies { + implementation 'dev.vankka:minecraftdependencydownload-:1.0.0' +} +``` + +
+ Snapshots + +```groovy +repositories { + maven { + url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + } +} + +dependencies { + implementation 'dev.vankka:minecraftdependencydownload-:1.0.1-SNAPSHOT' +} +``` +
+ ## How to use it? The [Wiki](https://github.com/Vankka/MinecraftDependencyDownload/wiki) has guides for the following platforms: diff --git a/build.gradle b/build.gradle index 8165108..86db608 100644 --- a/build.gradle +++ b/build.gradle @@ -3,16 +3,8 @@ plugins { id 'io.github.gradle-nexus.publish-plugin' version '2.0.0' } -version '1.0.0-SNAPSHOT' - -nexusPublishing { - repositories { - sonatype { - nexusUrl.set(uri('https://s01.oss.sonatype.org/service/local/')) - snapshotRepositoryUrl.set(uri('https://s01.oss.sonatype.org/content/repositories/snapshots/')) - } - } -} +version '1.0.0' +group = 'dev.vankka' subprojects { apply plugin: 'java' @@ -28,7 +20,7 @@ subprojects { dependencyDownloadVersion = '1.3.1' } - group = 'dev.vankka' + group = rootProject.group version = rootProject.version repositories { @@ -39,6 +31,10 @@ subprojects { } } + java { + withSourcesJar() + withJavadocJar() + } indraSpotlessLicenser { licenseHeaderFile(rootProject.file('LICENSE_HEADER')) @@ -94,3 +90,12 @@ subprojects { } } +nexusPublishing { + repositories { + sonatype { + nexusUrl.set(uri('https://s01.oss.sonatype.org/service/local/')) + snapshotRepositoryUrl.set(uri('https://s01.oss.sonatype.org/content/repositories/snapshots/')) + packageGroup = rootProject.group + } + } +}