-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82a41f7
commit 0a0d94f
Showing
7 changed files
with
200 additions
and
54 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
plugins { | ||
`java-library` | ||
kotlin("jvm") | ||
kotlin("plugin.serialization") | ||
} | ||
|
||
base { | ||
archivesName = "lavasrc" | ||
} | ||
|
||
java { | ||
withJavadocJar() | ||
withSourcesJar() | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
} | ||
|
||
dependencies { | ||
api("com.github.topi314.lavasearch:lavasearch:1.0.0") | ||
api("com.github.topi314.lavalyrics:lavalyrics:01bf4e7") | ||
compileOnly("dev.arbjerg:lavaplayer:2.0.4") | ||
implementation("org.jsoup:jsoup:1.15.3") | ||
implementation("commons-io:commons-io:2.7") | ||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1") | ||
implementation("org.jetbrains.kotlin:kotlin-annotations-jvm:1.9.0") | ||
implementation("com.auth0:java-jwt:4.4.0") | ||
compileOnly("org.slf4j:slf4j-api:2.0.7") | ||
|
||
lyricsDependency("protocol") | ||
lyricsDependency("client") | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("maven") { | ||
pom { | ||
artifactId = base.archivesName.get() | ||
from(components["java"]) | ||
} | ||
} | ||
} | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(11) | ||
} | ||
|
||
|
||
fun DependencyHandlerScope.lyricsDependency(module: String) { | ||
implementation("dev.schlaubi.lyrics", "$module-jvm", "2.2.2") { | ||
isTransitive = false | ||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
plugin/src/main/java/com/github/topi314/lavasrc/plugin/YouTubeConfig.java
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,19 @@ | ||
package com.github.topi314.lavasrc.plugin; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.stereotype.Component; | ||
|
||
@ConfigurationProperties(prefix = "plugins.lavasrc.youtube") | ||
@Component | ||
public class YouTubeConfig { | ||
|
||
private String countryCode; | ||
|
||
public String getCountryCode() { | ||
return countryCode; | ||
} | ||
|
||
public void setCountryCode(String countryCode) { | ||
this.countryCode = countryCode; | ||
} | ||
} |