Skip to content

Commit

Permalink
更新仓库地址
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Mar 7, 2020
1 parent 407e237 commit 15f42fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/io/izzel/taboolib/loader/ScalaLoader.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
package io.izzel.taboolib.loader;

import io.izzel.taboolib.module.dependency.Dependency;
import io.izzel.taboolib.module.dependency.TDependency;
import org.yaml.snakeyaml.Yaml;

import java.io.InputStream;
import java.lang.reflect.Field;
import java.util.Map;

@Dependency(maven = "org.scala-lang:scala-library:2.13.1", mavenRepo = "https://maven.aliyun.com/repository/central")
public class ScalaLoader extends BasePlugin {

private ScalaPluginInterface scalaMain;

@Override
public void onLoading() {
TDependency.requestLib("org.scala-lang:scala-library:2.13.1",TDependency.MAVEN_REPO,"");
InputStream stream = getClass().getResourceAsStream("/plugin.yml");
Object load = new Yaml().load(stream);
String main = (String) ((Map<?, ?>) load).get("scalaMain");
Expand Down

0 comments on commit 15f42fb

Please sign in to comment.