Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Commit

Permalink
Cleanup distributions and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam Korlam committed Oct 20, 2016
1 parent 6ac5dbc commit b16af4f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ An implementation of [Buck's HTTP Cache API](https://buckbuild.com/concept/http_
To run this code, clone the repository, package the server with Maven, and run the output.

```
git clone gitolite@code.uber.internal:mobile/infra/buck-cache-server buck-cache-server
cd buck-cache-server
./gradlew oneJar
java -jar cache/build/libs/cache-1.0.0-standalone.jar server
git clone https://github.com/uber/buck-http-cache.git
cd buck-http-cache
./run_buck_cache_client.sh
```

This starts a server, using port `8080`, with an embedded Hazelcast server, which is ideal for testing. To use this
Expand Down
9 changes: 5 additions & 4 deletions cache/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apply plugin: 'java'
apply plugin: 'gradle-one-jar'
apply plugin: 'distribution'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'cobertura'

group = 'com.uber.buck'
group = 'com.uber'
version = '1.0.0'

sourceCompatibility = 1.8
Expand All @@ -23,17 +24,17 @@ dependencies {
compile deps.external.statsdClient
}

task oneJar(type: OneJar) {
task distJar(type: OneJar) {
mainClass = mainClassName
additionalDir = file('src/main/resources/')
}

artifacts {
oneJar
distJar
}

run {
args 'server', './src/dist/config/development.yml'
}

build.dependsOn oneJar
build.dependsOn distJar
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip
1 change: 1 addition & 0 deletions run_buck_cache_client.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash

./gradlew distJar
$JAVA_HOME/bin/java -Xms8G -Xmx8G -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:MaxDirectMemorySize=40g -Dlog.home=/var/log/buck-cache-client/logs -jar cache/build/libs/cache-1.0.0-standalone.jar server cache/src/dist/config/sjc1.yml

0 comments on commit b16af4f

Please sign in to comment.