-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add auto versioning via git * add version catalogue * rename lldevs to v2 * add `youtube-` prefix to built jars * add lavalink gradle plugin for plugin sub project & remove manual youtube.properties * update README.md with gradle usage * add github actions to build & publish
- Loading branch information
Showing
17 changed files
with
224 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Publish | ||
on: | ||
push: | ||
release: | ||
types: [ published ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_PASSWORD: ${{ vars.MAVEN_PASSWORD }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
cache: gradle | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Build and Publish | ||
run: ./gradlew build publish --no-daemon -PMAVEN_USERNAME=$MAVEN_USERNAME -PMAVEN_PASSWORD=$MAVEN_PASSWORD | ||
|
||
- name: Upload common Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: youtube-common.jar | ||
path: common/build/libs/youtube-common-*.jar | ||
|
||
|
||
- name: Upload lldevs Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: youtube-v2.jar | ||
path: v2/build/libs/youtube-v2-*.jar | ||
|
||
- name: Upload plugin Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: youtube-plugin.jar | ||
path: plugin/build/libs/youtube-plugin-*.jar | ||
|
||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download youtube-common Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: youtube-common.jar | ||
|
||
- name: Download youtube-v2 Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: youtube-v2.jar | ||
|
||
- name: Download youtube-plugin Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: youtube-plugin.jar | ||
|
||
- name: Upload Artifacts to GitHub Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: '*.jar' | ||
allowUpdates: true | ||
omitBodyDuringUpdate: true | ||
omitDraftDuringUpdate: true | ||
omitNameDuringUpdate: true | ||
omitPrereleaseDuringUpdate: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
plugin/src/main/resources/lavalink-plugins/youtube.properties
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
include("lldevs") | ||
rootProject.name = "youtube-source" | ||
|
||
include("v2") | ||
include("common") | ||
include("plugin") | ||
|
||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") | ||
|
||
dependencyResolutionManagement { | ||
versionCatalogs { | ||
create("libs") { | ||
version("lavaplayer-v1", "1.5.3") | ||
version("lavaplayer-v2", "2.1.1") | ||
|
||
library("lavaplayer-v1", "dev.arbjerg", "lavaplayer").versionRef("lavaplayer-v1") | ||
library("lavaplayer-v2", "dev.arbjerg", "lavaplayer").versionRef("lavaplayer-v2") | ||
|
||
version("lavalink", "3.7.11") | ||
library("lavalink-server", "dev.arbjerg.lavalink", "Lavalink-Server").versionRef("lavalink") | ||
library("lavaplayer-ext-youtube-rotator", "dev.arbjerg", "lavaplayer-ext-youtube-rotator").versionRef("lavaplayer-v1") | ||
|
||
plugin("lavalink-gradle-plugin", "dev.arbjerg.lavalink.gradle-plugin").version("1.0.15") | ||
|
||
val mavenPublishPlugin = version("maven-publish-plugin", "0.25.3") | ||
plugin("maven-publish", "com.vanniktech.maven.publish").versionRef(mavenPublishPlugin) | ||
plugin("maven-publish-base", "com.vanniktech.maven.publish.base").versionRef(mavenPublishPlugin) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.