Skip to content

Commit 935b46e

Browse files
committed
Update commons.
1 parent ae070c2 commit 935b46e

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ dependencies {
4848

4949
### Links
5050

51-
[<img src="http://mc3.roselle.vip:602/icons/github.svg" width="64" height="64"/>](https://github.com/Score2/FastScript)  [<img src="http://mc3.roselle.vip:602/icons/wiki.svg" width="64" height="64"/>](https://github.com/Score2/FastScript/wiki)  [<img src="http://mc3.roselle.vip:602/icons/discord.svg" width="64" height="64"/>](https://discord.gg/GVM6vx9)
51+
[<img src="http://mc3.roselle.vip:602/icons/github.svg" width="64" height="64"/>](https://github.com/Score2/FastScript)  
52+
[<img src="http://mc3.roselle.vip:602/icons/wiki.svg" width="64" height="64"/>](https://github.com/Score2/FastScript/wiki)  
53+
[<img src="http://mc3.roselle.vip:602/icons/discord.svg" width="64" height="64"/>](https://discord.gg/GVM6vx9)

build.gradle

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ plugins {
1414
}
1515

1616
apply plugin: 'maven'
17+
apply plugin: 'maven-publish'
1718

1819
group 'me.scoretwo'
1920
version '1.0.1-SNAPSHOT'
@@ -46,8 +47,8 @@ dependencies {
4647
implementation 'org.yaml:snakeyaml:1.27'
4748
implementation 'org.apache.commons:commons-lang3:3.10'
4849
implementation 'com.google.code.gson:gson:2.8.6'
49-
implementation 'me.scoretwo:commons-language:1.0-SNAPSHOT'
50-
implementation 'me.scoretwo:commons-configuration:1.0-SNAPSHOT'
50+
implementation 'me.scoretwo:commons-syntaxes:1.2-SNAPSHOT'
51+
implementation 'me.scoretwo:commons-configuration:1.2-SNAPSHOT'
5152

5253
// Sponge
5354
implementation 'org.spongepowered:spongeapi:7.2.0'
@@ -68,6 +69,8 @@ dependencies {
6869

6970
shadowJar {
7071
dependencies {
72+
include(dependency('me.scoretwo:commons-syntaxes:1.2-SNAPSHOT'))
73+
include(dependency('me.scoretwo:commons-configuration:1.2-SNAPSHOT'))
7174
include(dependency('org.bstats:bstats-bukkit:1.7'))
7275
include(dependency('commons-io:commons-io:2.7'))
7376
include(dependency('net.md-5:bungeecord-chat:1.16-R0.4'))
@@ -79,9 +82,13 @@ shadowJar {
7982
archiveFileName = "${project.name}-${project.version}.jar"
8083
}
8184

82-
/*artifacts {
83-
archives shadowJar
84-
}*/
85+
publishing {
86+
publications {
87+
shadow(MavenPublication) { publication ->
88+
project.shadow.component(publication)
89+
}
90+
}
91+
}
8592

8693
processResources {
8794
from(sourceSets.main.resources.srcDirs) {

src/main/kotlin/me/scoretwo/fastscript/commands/SubCommand.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ abstract class SubCommand(val name: String, val sendLimit: SendLimit = SendLimit
99
}
1010

1111
companion object {
12-
enum class SendLimit {
13-
PLAYER, CONSOLE, ALL, PERMISSION
14-
}
12+
enum class SendLimit { PLAYER, CONSOLE, ALL, PERMISSION }
1513

1614

1715
}

0 commit comments

Comments
 (0)