gradle: Format build files

This commit is contained in:
Owain van Brakel
2019-07-24 22:49:38 +02:00
parent da159fd765
commit e911effeed
20 changed files with 224 additions and 239 deletions

View File

@@ -27,7 +27,7 @@ subprojects {
checkstyle {
toolVersion = '6.4.1'
sourceSets = [sourceSets.main]
configFile = rootProject.file("./checkstyle/checkstyle.xml");
configFile = rootProject.file("./checkstyle/checkstyle.xml")
showViolations = true
ignoreFailures = false
}
@@ -36,11 +36,9 @@ subprojects {
wrapper {
gradleVersion = '5.5.1'
def jvmOpts = "-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
inputs.property("jvmOpts", jvmOpts)
doLast {
def optsEnvVar = "DEFAULT_JVM_OPTS"
scriptFile.write scriptFile.text.replace("$optsEnvVar='\"-Xmx64m\" \"-Xms64m\"'", "$optsEnvVar='\"$jvmOpts\"'")
batchScript.write batchScript.text.replace("set $optsEnvVar=\"-Xmx64m\" \"-Xms64m\"", "set $optsEnvVar=\"$jvmOpts\"")
scriptFile.write scriptFile.text.replace("$optsEnvVar='\"-Xmx64m\" \"-Xms64m\"'", "$optsEnvVar='\"-Xmx4g\" \"-Xms2g\" \"-Dfile.encoding=UTF-8\"'")
batchScript.write batchScript.text.replace("set $optsEnvVar=\"-Xmx64m\" \"-Xms64m\"", "set $optsEnvVar=\"-Xmx4g\" \"-Xms2g\" \"-Dfile.encoding=UTF-8\"")
}
}

View File

@@ -1,4 +1,3 @@
description = 'Cache Client'
dependencies {
compile project(':cache')

View File

@@ -1,4 +1,3 @@
description = 'Cache Updater'
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter', version: '1.5.6.RELEASE'

1
cache/build.gradle vendored
View File

@@ -1,4 +1,3 @@
description = 'Cache'
dependencies {
compile project(':http-api')

View File

@@ -1,4 +1,3 @@
description = 'Deobfuscator'
dependencies {
compile project(':runelite-api')

2
gradlew vendored
View File

@@ -44,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"'
DEFAULT_JVM_OPTS='"-Xmx4g" "-Xms2g" "-Dfile.encoding=UTF-8"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

2
gradlew.bat vendored
View File

@@ -30,7 +30,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
set DEFAULT_JVM_OPTS="-Xmx4g" "-Xms2g" "-Dfile.encoding=UTF-8"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

View File

@@ -1,4 +1,3 @@
description = 'Web API'
dependencies {
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.14.0'

View File

@@ -1,4 +1,3 @@
apply plugin: 'war'
description = 'Web Service'

View File

@@ -1,4 +1,3 @@
description = 'Injected Client'
dependencies {
compile project(':rs-client')

View File

@@ -1,4 +1,3 @@
description = 'Protocol API'
dependencies {
compile project(':runelite-api')

View File

@@ -1,4 +1,3 @@
description = 'Protocol'
dependencies {
compile project(':protocol-api')

View File

@@ -1,4 +1,3 @@
description = 'RuneLite API'
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'

View File

@@ -1,4 +1,3 @@
description = 'RuneLite Mixins'
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'

View File

@@ -1,2 +1 @@
description = 'RuneLite Plugin Archetype'

View File

@@ -1,4 +1,3 @@
description = 'Script Assembler Plugin'
dependencies {
compile project(':cache')