Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Matocolotoe committed Oct 9, 2020
1 parent db583a3 commit 4c21121
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ task checkAliases {

doLast {
def aliasFolder = new File('skript-aliases')
if (!aliasFolder.exists()) {
throw new Exception("Aliases do not exist. Maybe update submodules using `git submodule update --init`?")
if (!aliasFolder.exists() || aliasFolder.listFiles().length == 0) {
throw new InvalidUserDataException("Aliases are missing from 'skript-aliases' folder. Consider fetching submodules with 'git submodule update --init'.")
}
}
}

build.dependsOn(checkAliases)
jar.dependsOn checkAliases

task sourceJar(type: Jar) {
from sourceSets.main.allJava
Expand Down Expand Up @@ -165,7 +165,6 @@ publishing {
}
}


// Set compile encoding to UTF-8 (#850)
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
Expand Down

0 comments on commit 4c21121

Please # to comment.