Skip to content
This repository was archived by the owner on Nov 26, 2023. It is now read-only.

Commit d08d139

Browse files
committed
Upgrade lavaplayer
1 parent a94d0fb commit d08d139

13 files changed

Lines changed: 165 additions & 190 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

.github/workflows/01-build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Build library
5+
6+
on:
7+
push:
8+
branches-ignore: [ master ]
9+
pull_request:
10+
branches-ignore: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 11
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
- name: Build with Gradle
26+
run: ./gradlew build

.github/workflows/02-publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Publish package
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
path: './'
19+
fetch-depth: 0
20+
- name: Set up JDK 11
21+
uses: actions/setup-java@v1
22+
with:
23+
java-version: 11
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x gradlew
26+
- name: Build with Gradle
27+
run: ./gradlew --no-daemon build
28+
- name: Upload to github
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: ./gradlew --no-daemon githubRelease

build.gradle.kts

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,17 @@
1515
*/
1616

1717
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType
18-
import com.jfrog.bintray.gradle.BintrayExtension
19-
import com.jfrog.bintray.gradle.tasks.BintrayUploadTask
20-
import java.util.*
2118

2219
plugins {
2320
idea
2421
`java-library`
2522
`maven-publish`
2623

27-
id("com.jfrog.bintray") version "1.8.1"
24+
id("com.github.breadmoirai.github-release") version "2.2.12"
2825
}
2926

3027
project.group = "com.dunctebot"
31-
project.version = "1.4.0"
28+
project.version = "1.5.0"
3229
val archivesBaseName = "sourcemanagers"
3330

3431
repositories {
@@ -41,8 +38,8 @@ repositories {
4138

4239
dependencies {
4340
// build override for age-restricted videos
44-
implementation(group = "com.github.duncte123", name = "lavaplayer", version = "be6e364")
45-
// api(group = "com.sedmelluq", name = "lavaplayer", version = "1.3.33")
41+
// implementation(group = "com.github.duncte123", name = "lavaplayer", version = "be6e364")
42+
implementation(group = "com.sedmelluq", name = "lavaplayer", version = "1.3.67")
4643
implementation(group = "io.sentry", name = "sentry-logback", version = "1.7.17")
4744

4845
implementation(group = "com.google.code.findbugs", name = "jsr305", version = "3.0.2")
@@ -55,10 +52,9 @@ configure<JavaPluginConvention> {
5552

5653
tasks.withType<Wrapper> {
5754
distributionType = DistributionType.ALL
58-
gradleVersion = "5.6.3"
55+
gradleVersion = "6.8"
5956
}
6057

61-
val bintrayUpload: BintrayUploadTask by tasks
6258
val jar: Jar by tasks
6359
val build: Task by tasks
6460
val clean: Task by tasks
@@ -77,40 +73,50 @@ build.apply {
7773
sourcesJar.mustRunAfter(jar)
7874
}
7975

80-
bintrayUpload.apply {
81-
dependsOn(build)
82-
83-
onlyIf { System.getenv("BINTRAY_USER") != null }
84-
onlyIf { System.getenv("BINTRAY_KEY") != null }
85-
}
86-
8776
publishing {
8877
publications {
89-
register("BintrayRelease", MavenPublication::class) {
78+
create<MavenPublication>("mavenJava") {
79+
pom {
80+
name.set(archivesBaseName)
81+
description.set("Source managers for skybot")
82+
url.set("https://github.com/DuncteBot/skybot-source-managers")
83+
licenses {
84+
license {
85+
name.set("Apache-2.0")
86+
url.set("https://www.apache.org/licenses/LICENSE-2.0")
87+
}
88+
}
89+
developers {
90+
developer {
91+
id.set("duncte123")
92+
name.set("Duncan Sterken")
93+
email.set("contact@duncte123.me")
94+
}
95+
}
96+
scm {
97+
connection.set("scm:git:git://github.com/DuncteBot/skybot-source-managers.git")
98+
developerConnection.set("scm:git:ssh://git@github.com:DuncteBot/skybot-source-managers.git")
99+
url.set("https://github.com/DuncteBot/skybot-source-managers")
100+
}
101+
}
102+
90103
from(components["java"])
91-
artifact(sourcesJar)
92104

93105
artifactId = archivesBaseName
94106
groupId = project.group as String
95107
version = project.version as String
108+
109+
artifact(sourcesJar)
96110
}
97111
}
98112
}
99113

100-
bintray {
101-
user = System.getenv("BINTRAY_USER")
102-
key = System.getenv("BINTRAY_KEY")
103-
setPublications("BintrayRelease")
104-
pkg(delegateClosureOf<BintrayExtension.PackageConfig> {
105-
repo = "maven"
106-
name = "sourcemanagers"
107-
setLicenses("Apache-2.0")
108-
vcsUrl = "https://github.com/dunctebot/skybot-source-managers.git"
109-
publish = true
110-
version(delegateClosureOf<BintrayExtension.VersionConfig> {
111-
name = project.version as String
112-
released = Date().toString()
113-
})
114-
})
114+
githubRelease {
115+
token(System.getenv("GITHUB_TOKEN"))
116+
owner("DuncteBot")
117+
repo("skybot-source-managers")
118+
tagName(project.version as String)
119+
overwrite(false)
120+
prerelease(false)
121+
body(changelog())
115122
}
116-

gradle/wrapper/gradle-wrapper.jar

3.92 KB
Binary file not shown.
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
1-
#
2-
# Copyright 2020 Duncan "duncte123" Sterken
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
16-
171
distributionBase=GRADLE_USER_HOME
182
distributionPath=wrapper/dists
19-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-all.zip
204
zipStoreBase=GRADLE_USER_HOME
215
zipStorePath=wrapper/dists

gradlew

Lines changed: 33 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)