mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-28 15:56:11 +00:00
up
This commit is contained in:
1 parent
b54c87685a
commit
6078c3db54
10 files changed
+48
-42
No files matched your search
+22
-36
@@ -2,46 +2,14 @@ plugins {
|
||||
id 'java'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
|
||||
}
|
||||
|
||||
// Version strings used for CI
|
||||
// Note the spaces before and after the equals sign
|
||||
ext.majorVersion = 0
|
||||
ext.minorVersion = 1
|
||||
ext.minecraftVersion = "1.15.1"
|
||||
version = "1.13.1"
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
|
||||
ext.mavenDirectory = System.env.MAVEN_DIR == null ? "$projectDir/repo" : "$System.env.MAVEN_DIR"
|
||||
|
||||
// Search for spigot nms jar file
|
||||
String spigotNmsPath = "";
|
||||
if (System.env.NMS_JAR != null) {
|
||||
// use NMS_JAR if it's explicitly specified
|
||||
spigotNmsPath = "$System.env.NMS_JAR"
|
||||
if (new File(spigotNmsPath).exists()) {
|
||||
logger.warn("NMS jar is set manually: ${spigotNmsPath}")
|
||||
} else {
|
||||
throw new GradleException("NMS jar not found: ${spigotNmsPath}")
|
||||
}
|
||||
} else if (new File("${mavenDirectory}/spigot-${minecraftVersion}-latest.jar").exists()) {
|
||||
// ci environment
|
||||
spigotNmsPath = "${mavenDirectory}/spigot-${minecraftVersion}-latest.jar"
|
||||
} else {
|
||||
// check local dir (dev environment)
|
||||
spigotNmsPath = "${projectDir}/../nms_binaries/spigot-${minecraftVersion}.jar"
|
||||
if (!(new File(spigotNmsPath).exists())) {
|
||||
// nms not found, download from nyaaci
|
||||
def f = new File(spigotNmsPath)
|
||||
println "Downloading spigot-${minecraftVersion}.jar"
|
||||
f.getParentFile().mkdirs();
|
||||
new URL("https://ci.nyaacat.com/maven/spigot-${minecraftVersion}-latest.jar").withInputStream{ i -> f.withOutputStream{ it << i }}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
|
||||
@@ -49,9 +17,6 @@ repositories {
|
||||
name 'Spigot'
|
||||
url 'https://hub.spigotmc.org/nexus/content/groups/public'
|
||||
}
|
||||
maven {
|
||||
name 'NyaaCat';
|
||||
url 'https://ci.nyaacat.com/maven/' }
|
||||
maven {
|
||||
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
|
||||
}
|
||||
@@ -81,4 +46,25 @@ publishing {
|
||||
}
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
processResources {
|
||||
// this will ensure that this task is redone when the versions change.
|
||||
inputs.property "version", project.version
|
||||
|
||||
// replace stuff in mcmod.info, nothing else
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
include 'bungee.yml'
|
||||
include 'plugin.yml'
|
||||
include 'config_BC.json'
|
||||
// replace version and mcversion
|
||||
expand 'version':project.version
|
||||
}
|
||||
|
||||
// copy everything else except the mcmod.info
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
exclude 'bungee.yml'
|
||||
exclude 'plugin.yml'
|
||||
exclude 'config_BC.json'
|
||||
}
|
||||
}
|
||||
@@ -5,9 +5,7 @@ import Color_yr.ALLMusic.MusicAPI.IMusic;
|
||||
import Color_yr.ALLMusic.MusicAPI.MusicAPI1.API1;
|
||||
import Color_yr.ALLMusic.MusicAPI.MusicAPI2.API2;
|
||||
import Color_yr.ALLMusic.MusicAPI.MusicAPI3.API3;
|
||||
import Color_yr.ALLMusic.MusicAPI.SongInfo.SongInfo;
|
||||
import Color_yr.ALLMusic.MusicAPI.SongSearch.SearchPage;
|
||||
import Color_yr.ALLMusic.MusicPlay.PlayMusic;
|
||||
import Color_yr.ALLMusic.Side.ISide;
|
||||
import Color_yr.ALLMusic.Side.SideBukkit.VVGet;
|
||||
import com.google.gson.Gson;
|
||||
@@ -22,7 +20,7 @@ import java.util.logging.Logger;
|
||||
|
||||
public class ALLMusic {
|
||||
public static final String channel = "allmusic:channel";
|
||||
public static final String Version = "1.13.0";
|
||||
public static final String Version = "1.13.1";
|
||||
|
||||
private static final Map<String, SearchPage> SearchSave = new HashMap<>();
|
||||
private static final List<String> VotePlayer = new ArrayList<>();
|
||||
|
||||
@@ -5,6 +5,8 @@ import Color_yr.ALLMusic.MusicAPI.SongLyric.Lyric;
|
||||
public class LyricOBJ implements Lyric {
|
||||
private lrc lrc;
|
||||
private tlyric tlyric;
|
||||
private boolean nolyric;
|
||||
private boolean uncollected;
|
||||
|
||||
public boolean isok() {
|
||||
return lrc != null;
|
||||
@@ -17,6 +19,10 @@ public class LyricOBJ implements Lyric {
|
||||
public String getTlyric() {
|
||||
return tlyric.getLyric();
|
||||
}
|
||||
|
||||
public boolean isNone() {
|
||||
return nolyric || uncollected;
|
||||
}
|
||||
}
|
||||
|
||||
class lrc {
|
||||
|
||||
@@ -5,6 +5,8 @@ import Color_yr.ALLMusic.MusicAPI.SongLyric.Lyric;
|
||||
public class LyricOBJ implements Lyric {
|
||||
private lrc lrc;
|
||||
private tlyric tlyric;
|
||||
private boolean nolyric;
|
||||
private boolean uncollected;
|
||||
|
||||
public boolean isok() {
|
||||
return lrc != null;
|
||||
@@ -17,6 +19,10 @@ public class LyricOBJ implements Lyric {
|
||||
public String getTlyric() {
|
||||
return tlyric.getLyric();
|
||||
}
|
||||
|
||||
public boolean isNone() {
|
||||
return nolyric || uncollected;
|
||||
}
|
||||
}
|
||||
|
||||
class lrc {
|
||||
|
||||
@@ -5,6 +5,8 @@ import Color_yr.ALLMusic.MusicAPI.SongLyric.Lyric;
|
||||
public class LyricOBJ implements Lyric {
|
||||
private lrc lrc;
|
||||
private tlyric tlyric;
|
||||
private boolean nolyric;
|
||||
private boolean uncollected;
|
||||
|
||||
public boolean isok() {
|
||||
return lrc != null;
|
||||
@@ -17,6 +19,10 @@ public class LyricOBJ implements Lyric {
|
||||
public String getTlyric() {
|
||||
return tlyric.getLyric();
|
||||
}
|
||||
|
||||
public boolean isNone() {
|
||||
return nolyric || uncollected;
|
||||
}
|
||||
}
|
||||
|
||||
class lrc {
|
||||
|
||||
@@ -6,4 +6,6 @@ public interface Lyric {
|
||||
String getLyric();
|
||||
|
||||
String getTlyric();
|
||||
|
||||
boolean isNone();
|
||||
}
|
||||
@@ -19,6 +19,8 @@ public class LyricDo {
|
||||
boolean haveT = false;
|
||||
if (!obj.isok())
|
||||
return true;
|
||||
else if (obj.isNone())
|
||||
return false;
|
||||
lyric = obj.getLyric().split("\n");
|
||||
List<String> Tlyric = new ArrayList<>();
|
||||
if (obj.getTlyric() != null) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: ALLMusic
|
||||
main: Color_yr.ALLMusic.ALLMusicBC
|
||||
author: Color_yr
|
||||
version: 1.12.1
|
||||
version: ${version}
|
||||
@@ -16,5 +16,5 @@
|
||||
"SendLyric": true,
|
||||
"NeedPermission": false,
|
||||
"VVSave": {},
|
||||
"Version": "1.12.1"
|
||||
"Version": "${version}"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
name: ALLMusic
|
||||
main: Color_yr.ALLMusic.ALLMusicBukkit
|
||||
author: Color_yr
|
||||
version: 1.12.1
|
||||
version: ${version}
|
||||
loadbefore: [vexview, PlaceholderAPI]
|
||||
softdepend: [vexview, PlaceholderAPI]
|
||||
|
||||
|
||||
Reference in new issue
Block a user