diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 921bec7..233322e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: - name: Build Java Application run: | chmod +x gradlew - ./gradlew clean build shadowJar + ./gradlew clean build - name: Publish Release to Maven Central if: "contains(github.event.head_commit.message, '--release') && contains(github.ref, 'master')" @@ -82,17 +82,6 @@ jobs: asset_name: MCCoroutine-Bukkit-Core.jar asset_content_type: application/jar - - name: Upload Bukkit Sampe Plugin to Github - if: "contains(github.event.head_commit.message, '--release') && contains(github.ref, 'master')" - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: /home/runner/work/MCCoroutine/MCCoroutine/mccoroutine-bukkit-sample/build/libs/mccoroutine-bukkit-sample-${{ env.RELEASE_VERSION }}.jar - asset_name: MCCoroutine-Bukkit-Plugin-Sample.jar - asset_content_type: application/jar - - name: Upload Sponge Api to Github if: "contains(github.event.head_commit.message, '--release') && contains(github.ref, 'master')" uses: actions/upload-release-asset@v1 @@ -115,17 +104,6 @@ jobs: asset_name: MCCoroutine-Sponge-Core.jar asset_content_type: application/jar - - name: Upload Sponge Sample Plugin to Github - if: "contains(github.event.head_commit.message, '--release') && contains(github.ref, 'master')" - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: /home/runner/work/MCCoroutine/MCCoroutine/mccoroutine-sponge-sample/build/libs/mccoroutine-sponge-sample-${{ env.RELEASE_VERSION }}.jar - asset_name: MCCoroutine-Sponge-Plugin-Sample.jar - asset_content_type: application/jar - - name: Upload BungeeCord Api to Github if: "contains(github.event.head_commit.message, '--release') && contains(github.ref, 'master')" uses: actions/upload-release-asset@v1 @@ -148,17 +126,6 @@ jobs: asset_name: MCCoroutine-BungeeCord-Core.jar asset_content_type: application/jar - - name: Upload BungeeCord Sample Plugin to Github - if: "contains(github.event.head_commit.message, '--release') && contains(github.ref, 'master')" - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: /home/runner/work/MCCoroutine/MCCoroutine/mccoroutine-bungeecord-sample/build/libs/mccoroutine-bungeecord-sample-${{ env.RELEASE_VERSION }}.jar - asset_name: MCCoroutine-BungeeCord-Plugin-Sample.jar - asset_content_type: application/jar - - name: Upload Velocity Api to Github if: "contains(github.event.head_commit.message, '--release') && contains(github.ref, 'master')" uses: actions/upload-release-asset@v1 diff --git a/mccoroutine-bukkit-sample/build.gradle.kts b/mccoroutine-bukkit-sample/build.gradle.kts index 728ad47..7efcdf9 100644 --- a/mccoroutine-bukkit-sample/build.gradle.kts +++ b/mccoroutine-bukkit-sample/build.gradle.kts @@ -4,12 +4,6 @@ plugins { id("com.github.johnrengelman.shadow") version ("8.1.1") } -publishing { - publications { - (findByName("mavenJava") as MavenPublication).artifact(tasks.findByName("shadowJar")!!) - } -} - tasks.withType { dependsOn("jar") archiveClassifier.set("shadowJar") diff --git a/mccoroutine-bungeecord-sample/build.gradle.kts b/mccoroutine-bungeecord-sample/build.gradle.kts index 7f47165..558119f 100644 --- a/mccoroutine-bungeecord-sample/build.gradle.kts +++ b/mccoroutine-bungeecord-sample/build.gradle.kts @@ -4,12 +4,6 @@ plugins { id("com.github.johnrengelman.shadow") version ("8.1.1") } -publishing { - publications { - (findByName("mavenJava") as MavenPublication).artifact(tasks.findByName("shadowJar")!!) - } -} - java { toolchain { languageVersion.set(JavaLanguageVersion.of(8)) diff --git a/mccoroutine-folia-sample/build.gradle.kts b/mccoroutine-folia-sample/build.gradle.kts index 2d10d06..ce64e9d 100644 --- a/mccoroutine-folia-sample/build.gradle.kts +++ b/mccoroutine-folia-sample/build.gradle.kts @@ -5,12 +5,6 @@ plugins { id("com.github.johnrengelman.shadow") version ("8.1.1") } -publishing { - publications { - (findByName("mavenJava") as MavenPublication).artifact(tasks.findByName("shadowJar")!!) - } -} - java { toolchain { languageVersion.set(JavaLanguageVersion.of(17)) diff --git a/mccoroutine-sponge-sample/build.gradle.kts b/mccoroutine-sponge-sample/build.gradle.kts index cb16a9a..8078fff 100644 --- a/mccoroutine-sponge-sample/build.gradle.kts +++ b/mccoroutine-sponge-sample/build.gradle.kts @@ -4,12 +4,6 @@ plugins { id("com.github.johnrengelman.shadow") version ("8.1.1") } -publishing { - publications { - (findByName("mavenJava") as MavenPublication).artifact(tasks.findByName("shadowJar")!!) - } -} - tasks.withType { dependsOn("jar") archiveClassifier.set("shadowJar")