File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/scala/io/izzel/taboolib/loader Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
package io .izzel .taboolib .loader ;
2
2
3
+ import io .izzel .taboolib .module .dependency .Dependency ;
3
4
import io .izzel .taboolib .module .dependency .TDependency ;
4
5
import org .yaml .snakeyaml .Yaml ;
5
6
6
7
import java .io .InputStream ;
7
8
import java .lang .reflect .Field ;
8
9
import java .util .Map ;
9
10
11
+ @ Dependency (maven = "org.scala-lang:scala-library:2.13.1" , mavenRepo = "https://maven.aliyun.com/repository/central" )
10
12
public class ScalaLoader extends BasePlugin {
11
13
12
14
private ScalaPluginInterface scalaMain ;
13
15
14
16
@ Override
15
17
public void onLoading () {
16
- TDependency .requestLib ("org.scala-lang:scala-library:2.13.1" ,TDependency .MAVEN_REPO ,"" );
17
18
InputStream stream = getClass ().getResourceAsStream ("/plugin.yml" );
18
19
Object load = new Yaml ().load (stream );
19
20
String main = (String ) ((Map <?, ?>) load ).get ("scalaMain" );
You can’t perform that action at this time.
0 commit comments