Archived
0

gradle: правка сборки

(cherry picked from commit 0dddfc39cf)
This commit is contained in:
2019-01-29 16:33:58 +03:00
parent 3e9a86e97f
commit b3fd91c614

View File

@@ -24,6 +24,13 @@ plugins {
}
allprojects {
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/groups/public/' }
}
}
subprojects {
apply plugin: 'java'
compileJava {
@@ -32,13 +39,6 @@ allprojects {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/groups/public/' }
}
}
subprojects {
group 'mc'
ext {
@@ -110,7 +110,7 @@ subprojects {
Files.copy(jar.archivePath.toPath(), target)
}
def libsDir = System.getProperty("libs", deployDir+File.separator+"libs")
def libsDir = System.getProperty("libs", deployDir + File.separator + "libs")
if (Files.notExists(Paths.get(libsDir))) {
(new File(libsDir)).mkdirs()
}
@@ -127,7 +127,7 @@ subprojects {
if (Boolean.valueOf(System.getProperty("createRunScript", "false"))) {
def runnerSh = new File(deployDir, "run.sh")
runnerSh.write "java -cp \"${project(':core').jar.archiveName};"
runnerSh << "./libs/*;./log-impl/*\" mc.core.Main\n"
runnerSh << "${libsDir}/*;./log-impl/*\" mc.core.Main\n"
}
}
}