File tree Expand file tree Collapse file tree 10 files changed +35
-30
lines changed Expand file tree Collapse file tree 10 files changed +35
-30
lines changed Original file line number Diff line number Diff line change 7
7
run :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - uses : actions/checkout@v3
11
- - uses : actions/setup-java@v3
10
+ - uses : actions/checkout@v4
11
+ - uses : actions/setup-java@v4
12
12
with :
13
13
distribution : ' temurin'
14
14
java-version : ' 17'
15
15
- name : Setup Gradle
16
- uses : gradle/gradle-build-action@v2
16
+ uses : gradle/actions/setup-gradle@v4
17
17
- name : Compile Plugin and check example
18
18
working-directory : example
19
19
# building the example also builds the plugin
31
31
run : ./gradlew publish publishPlugins
32
32
- name : Release
33
33
if : startsWith(github.ref, 'refs/tags/')
34
- uses : softprops/action-gh-release@v1
34
+ uses : softprops/action-gh-release@v2
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
5
5
}
6
6
7
7
group = " dev.arbjerg"
8
- version = " 1.0.18 "
8
+ version = " 1.0.19 "
9
9
10
10
repositories {
11
11
mavenCentral()
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ version = "1.0.0"
9
9
dependencies {
10
10
// Only here to test dependency handling
11
11
// And Kotlin is best dependency <3
12
- implementation(kotlin(" stdlib" , " 1.9 .21" ))
13
- implementation(" org.jetbrains.kotlinx" , " kotlinx-serialization-json" , " 1.6.2 " )
12
+ implementation(kotlin(" stdlib" , " 2.0 .21" ))
13
+ implementation(" org.jetbrains.kotlinx" , " kotlinx-serialization-json" , " 1.7.3 " )
14
14
}
15
15
16
16
java {
20
20
}
21
21
22
22
lavalinkPlugin {
23
- apiVersion = " 4.0.0 "
24
- serverVersion = " 4.0.0 "
23
+ apiVersion = " 4.0.8 "
24
+ serverVersion = " 4.0.8 "
25
25
}
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.5 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10.2 -bin.zip
4
4
networkTimeout =10000
5
5
validateDistributionUrl =true
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 1
1
[plugins ]
2
- gradle-publish = { id = " com.gradle.plugin-publish" , version = " 1.2.1 " }
2
+ gradle-publish = { id = " com.gradle.plugin-publish" , version = " 1.3.0 " }
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.5 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10.2 -bin.zip
4
4
networkTimeout =10000
5
5
validateDistributionUrl =true
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 15
15
# See the License for the specific language governing permissions and
16
16
# limitations under the License.
17
17
#
18
+ # SPDX-License-Identifier: Apache-2.0
19
+ #
18
20
19
21
# #############################################################################
20
22
#
55
57
# Darwin, MinGW, and NonStop.
56
58
#
57
59
# (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/ plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60
+ # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/ plugins-application /src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
61
# within the Gradle project.
60
62
#
61
63
# You can find Gradle at https://github.com/gradle/gradle/.
84
86
# shellcheck disable=SC2034
85
87
APP_BASE_NAME=${0##*/ }
86
88
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
- APP_HOME=$( cd " ${APP_HOME:- ./ } " > /dev/null && pwd -P ) || exit
89
+ APP_HOME=$( cd -P " ${APP_HOME:- ./ } " > /dev/null && printf ' %s
90
+ ' " $PWD " ) || exit
88
91
89
92
# Use the maximum available, or set MAX_FD != -1 to use that value.
90
93
MAX_FD=maximum
Original file line number Diff line number Diff line change 13
13
@ rem See the License for the specific language governing permissions and
14
14
@ rem limitations under the License.
15
15
@ rem
16
+ @ rem SPDX-License-Identifier: Apache-2.0
17
+ @ rem
16
18
17
19
@ if " %DEBUG% " == " " @ echo off
18
20
@ rem ##########################################################################
@@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
43
45
%JAVA_EXE% -version > NUL 2 >& 1
44
46
if %ERRORLEVEL% equ 0 goto execute
45
47
46
- echo .
47
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48
- echo .
49
- echo Please set the JAVA_HOME variable in your environment to match the
50
- echo location of your Java installation.
48
+ echo . 1 >& 2
49
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1 >& 2
50
+ echo . 1 >& 2
51
+ echo Please set the JAVA_HOME variable in your environment to match the 1 >& 2
52
+ echo location of your Java installation. 1 >& 2
51
53
52
54
goto fail
53
55
@@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
59
58
60
if exist " %JAVA_EXE% " goto execute
59
61
60
- echo .
61
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62
- echo .
63
- echo Please set the JAVA_HOME variable in your environment to match the
64
- echo location of your Java installation.
62
+ echo . 1 >& 2
63
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1 >& 2
64
+ echo . 1 >& 2
65
+ echo Please set the JAVA_HOME variable in your environment to match the 1 >& 2
66
+ echo location of your Java installation. 1 >& 2
65
67
66
68
goto fail
67
69
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import org.gradle.api.Plugin
5
5
import org.gradle.api.Project
6
6
import org.gradle.api.artifacts.Dependency
7
7
import org.gradle.api.artifacts.ProjectDependency
8
+ import org.gradle.api.artifacts.component.ProjectComponentIdentifier
8
9
import org.gradle.api.provider.Provider
9
10
import org.gradle.api.publish.PublishingExtension
10
11
import org.gradle.api.publish.maven.MavenPublication
@@ -53,9 +54,7 @@ private fun Project.configureDependencies(): Provider<Dependency> {
53
54
// Required for runtime
54
55
maven(" https://maven.lavalink.dev/releases" )
55
56
maven(" https://maven.lavalink.dev/snapshots" )
56
- // Required for Lavalink Dependencies
57
- @Suppress(" DEPRECATION" )
58
- jcenter()
57
+
59
58
}
60
59
61
60
dependencies {
@@ -104,9 +103,10 @@ private fun Project.configureTasks(serverDependency: Provider<Dependency>) {
104
103
105
104
val jar = named<Jar >(" jar" ) {
106
105
configurations.getByName(" runtimeClasspath" )
107
- .fileCollection {
108
- it !is ProjectDependency
109
- }
106
+ .incoming
107
+ .artifactView {
108
+ componentFilter { it is ProjectComponentIdentifier }
109
+ }.artifacts
110
110
.forEach {
111
111
from(zipTree(it)) {
112
112
exclude(" META-INF/**" )
You can’t perform that action at this time.
0 commit comments