gradle: Update deps, format files (#1316)

* gradle: Update dependencies

Also made the version numbers global to make updating easier, also this
way we can't have mismatches where different projects use diffrent
versions of a dep

* cache: Fix TitleDumper test

* gradle: Format build files

* httpserviceplus: Remove unneeded deps
This commit is contained in:
Owain van Brakel
2019-08-14 03:02:45 +02:00
committed by Ganom
parent ae2305f8d0
commit bd621269a6
21 changed files with 296 additions and 196 deletions

34
cache/build.gradle vendored
View File

@@ -7,23 +7,23 @@ plugins {
description = 'Cache'
dependencies {
api project(':http-api')
implementation group: 'com.google.guava', name: 'guava', version: '28.0-jre'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.26'
implementation group: 'org.apache.commons', name: 'commons-compress', version: '1.18'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
implementation group: 'io.netty', name: 'netty-buffer', version: '4.1.37.Final'
implementation group: 'org.antlr', name: 'antlr4-runtime', version: '4.7.2'
implementation group: 'commons-cli', name: 'commons-cli', version: '1.4'
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.26'
testImplementation group: 'net.runelite.rs', name: 'cache', version: '165'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.8'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.8'
}
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombok
test {
exclude '**/TitleDumper*'
api project(':http-api')
compileOnly group: 'org.projectlombok', name: 'lombok', version: lombok
implementation group: 'com.google.code.gson', name: 'gson', version: gson
implementation group: 'com.google.guava', name: 'guava', version: guava
implementation group: 'commons-cli', name: 'commons-cli', version: commonsCli
implementation group: 'io.netty', name: 'netty-buffer', version: netty
implementation group: 'org.antlr', name: 'antlr4-runtime', version: antlr
implementation group: 'org.apache.commons', name: 'commons-compress', version: apacheCommonsCompress
implementation group: 'org.slf4j', name: 'slf4j-api', version: slf4j
testImplementation group: 'junit', name: 'junit', version: junit
testImplementation group: 'net.runelite.rs', name: 'cache', version: cacheversion
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: slf4j
}
processTestResources {
@@ -33,4 +33,4 @@ processTestResources {
"cache.version": cacheversion.toString()
])
}
}
}

View File

@@ -47,8 +47,8 @@ public class TitleDumper
@Test
public void extract() throws IOException
{
File base = StoreLocation.LOCATION,
outFile = folder.newFolder();
File base = StoreLocation.LOCATION;
File outFile = folder.newFile();
try (Store store = new Store(base))
{