@@ -7,69 +7,112 @@ buildscript {
77 classpath(" com.github.jengelman.gradle.plugins:shadow:5.2.0" )
88 }
99}
10+
1011plugins {
1112 id ' org.jetbrains.kotlin.jvm' version ' 1.4.10'
1213 id ' com.github.johnrengelman.shadow' version ' 5.2.0'
1314}
1415
16+ apply plugin : ' maven'
17+
1518group ' me.scoretwo'
16- version ' 0.11'
19+ version ' 1.0.1-SNAPSHOT'
20+ description ' FastScript is a Spigot plugin, which can run JavaScript-based scripts more efficiently.'
1721
1822defaultTasks ' clean' , ' build' , ' test' , ' shadowJar'
1923
2024repositories {
2125 jcenter()
2226 mavenCentral()
27+ maven {url ' https://jitpack.io' }
28+ maven {url ' http://repo.drnaylor.co.uk/artifactory/list/minecraft' }
29+ maven {url ' https://repo.velocitypowered.com/snapshots/' }
30+ maven {url ' https://raw.github.com/FabioZumbi12/UltimateChat/mvn-repo/' }
2331 maven {url ' https://repo.codemc.org/repository/maven-public' }
2432 maven {url ' https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
2533 maven {url ' https://oss.sonatype.org/content/repositories/snapshots' }
2634 maven {url ' https://repo.md-5.net/repository/public' }
2735 maven {url ' https://repo.extendedclip.com/content/repositories/placeholderapi/' }
2836 maven {url ' http://maven.aliyun.com/nexus/content/groups/public' }
37+ maven {url ' https://repo.spongepowered.org/maven' }
2938}
3039
3140dependencies {
32- compile " org.bstats:bstats-bukkit:1.7"
33- compile " commons-io:commons-io:2.7"
34- compile " com.alibaba:fastjson:1.2.9"
35- compile " org.jetbrains.kotlin:kotlin-stdlib"
36- compile " com.andreapivetta.kolor:kolor:1.0.0"
37- implementation " org.yaml:snakeyaml:1.27"
38- implementation " org.apache.commons:commons-lang3:3.10"
39- implementation " org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT"
40- implementation " net.md-5:bungeecord-api:1.16-R0.3"
41- implementation " me.clip:placeholderapi:2.10.9"
41+ // Other
42+ compile ' commons-io:commons-io:2.7'
43+ compile ' org.jetbrains.kotlin:kotlin-stdlib'
44+ implementation ' org.yaml:snakeyaml:1.27'
45+ implementation ' org.apache.commons:commons-lang3:3.10'
4246 implementation fileTree(dir : ' libs' , includes : [' *.jar' ])
47+
48+ // Sponge
49+ implementation ' org.spongepowered:spongeapi:7.2.0'
50+ implementation ' com.github.rojo8399:PlaceholderAPI:master-SNAPSHOT'
51+
52+ // Bukkit
53+ implementation ' org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT'
54+ implementation ' me.clip:placeholderapi:2.10.9'
55+ compile ' org.bstats:bstats-bukkit:1.7'
56+
57+ // Bungee
58+ implementation ' net.md-5:bungeecord-api:1.16-R0.3'
59+
60+ // Velocity
61+ implementation ' com.velocitypowered:velocity-api:1.0.11-SNAPSHOT'
4362}
4463
4564shadowJar {
4665 dependencies {
4766 include(dependency(' org.bstats:bstats-bukkit:1.7' ))
4867 include(dependency(' commons-io:commons-io:2.7' ))
49- include(dependency(' com.alibaba:fastjson:1.2.9' ))
5068 include(dependency(' org.jetbrains.kotlin:kotlin-stdlib' ))
5169 include(dependency(fileTree(dir : ' libs' , includes : [' *.jar' ])))
5270 }
53- relocate(" org.bstats" , " me.scoretwo.fastscript.libs .bstats" )
54- relocate(" org.apache" , " me.scoretwo.fastscript.libs. apache" )
71+ relocate(" org.bstats" , " me.scoretwo.utils .bstats" )
72+ relocate(" org.apache.commons.io " , " me.scoretwo.utils. apache.commons.io " )
5573 archiveFileName = " ${ project.name} -${ project.version} .jar"
5674}
5775
76+ artifacts {
77+ archives shadowJar
78+ }
79+
5880processResources {
5981 from(sourceSets. main. resources. srcDirs) {
6082 include ' plugin.yml'
6183 expand(
6284 ' name' : project. name,
63- ' main' : project. group + " ." + project. name. toLowerCase() + " .bukkit.BukkitSection " ,
85+ ' main' : project. group + " ." + project. name. toLowerCase() + " .bukkit.BukkitPlugin " ,
6486 ' version' : project. version,
87+ ' description' : project. description,
6588 )
6689 }
6790 from(sourceSets. main. resources. srcDirs) {
6891 include ' bungee.yml'
6992 expand(
7093 ' name' : project. name,
71- ' main' : project. group + " ." + project. name. toLowerCase() + " .bungee.BungeeSection" ,
94+ ' main' : project. group + " ." + project. name. toLowerCase() + " .bungee.BungeePlugin" ,
95+ ' version' : project. version,
96+ ' description' : project. description,
97+ )
98+ }
99+ from(sourceSets. main. resources. srcDirs) {
100+ include ' mcmod.info'
101+ expand(
102+ ' modid' : " fastscript" ,
103+ ' name' : project. name,
104+ ' version' : project. version,
105+ ' description' : project. description,
106+ )
107+ }
108+ from(sourceSets. main. resources. srcDirs) {
109+ include ' velocity-plugin.json'
110+ expand(
111+ ' modid' : " fastscript" ,
112+ ' name' : project. name,
113+ ' main' : project. group + " ." + project. name. toLowerCase() + " .veloity.VeloityPlugin" ,
72114 ' version' : project. version,
115+ ' description' : project. description,
73116 )
74117 }
75118}
0 commit comments