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 { checkstyle {
toolVersion = '6.4.1' toolVersion = '6.4.1'
sourceSets = [sourceSets.main] sourceSets = [sourceSets.main]
configFile = rootProject.file("./checkstyle/checkstyle.xml"); configFile = rootProject.file("./checkstyle/checkstyle.xml")
showViolations = true showViolations = true
ignoreFailures = false ignoreFailures = false
} }
@@ -36,11 +36,9 @@ subprojects {
wrapper { wrapper {
gradleVersion = '5.5.1' gradleVersion = '5.5.1'
def jvmOpts = "-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
inputs.property("jvmOpts", jvmOpts)
doLast { doLast {
def optsEnvVar = "DEFAULT_JVM_OPTS" def optsEnvVar = "DEFAULT_JVM_OPTS"
scriptFile.write scriptFile.text.replace("$optsEnvVar='\"-Xmx64m\" \"-Xms64m\"'", "$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=\"$jvmOpts\"") 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' description = 'Cache Client'
dependencies { dependencies {
compile project(':cache') compile project(':cache')

View File

@@ -1,4 +1,3 @@
description = 'Cache Updater' description = 'Cache Updater'
dependencies { dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter', version: '1.5.6.RELEASE' 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' description = 'Cache'
dependencies { dependencies {
compile project(':http-api') compile project(':http-api')

View File

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

2
gradlew vendored
View File

@@ -44,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"` 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. # 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. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum" MAX_FD="maximum"

2
gradlew.bat vendored
View File

@@ -30,7 +30,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% 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. @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 @rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome if defined JAVA_HOME goto findJavaFromJavaHome

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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