Created
May 2, 2020 11:28
-
-
Save progval/c15f897fc2b23389fdae93ec9d0894a2 to your computer and use it in GitHub Desktop.
run apache wave
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pst/build.gradle b/pst/build.gradle | |
index 9b4dc857..9eb8aa44 100644 | |
--- a/pst/build.gradle | |
+++ b/pst/build.gradle | |
@@ -109,7 +109,7 @@ checkstyleMain.source = "src/main/java" // only checks the manually written java | |
//============================================================================= | |
protobuf { | |
protoc { | |
- artifact = 'com.google.protobuf:protoc:2.6.1' | |
+ path = '/home/wave-sandbox/.local/bin/protoc' | |
} | |
generatedFilesBaseDir = "$projectDir/generated" | |
} | |
@@ -226,4 +226,4 @@ task createDist() { | |
} | |
} | |
-createDist.dependsOn createDistSource, createDistBin | |
\ No newline at end of file | |
+createDist.dependsOn createDistSource, createDistBin | |
diff --git a/wave/build.gradle b/wave/build.gradle | |
index 32583b84..2db24445 100644 | |
--- a/wave/build.gradle | |
+++ b/wave/build.gradle | |
@@ -172,9 +172,9 @@ dependencies { | |
[group: "javax.inject", name: "javax.inject", version: "1"], // [?, ?] | |
[group: "javax.servlet", name: "javax.servlet-api", version: "3.1.0"], // [?, ?] | |
[group: "javax.jdo", name: "jdo2-api", version: "2.1"], // [?, ?] | |
- [group: "net.oauth.core", name: "oauth-provider", version: "20100601-atlassian-2"], // [11/2016, depreciate] | |
- [group: "net.oauth.core", name: "oauth", version: "20100601-atlassian-2"], // [11/2016, depreciate] | |
- [group: "net.oauth.core", name: "oauth-consumer", version: "20100601-atlassian-2"], // [11/2016, depreciate] | |
+ [group: "net.oauth.core", name: "oauth-provider", version: "20100601-atlassian-5"], // [11/2016, depreciate] | |
+ [group: "net.oauth.core", name: "oauth", version: "20100601-atlassian-5"], // [11/2016, depreciate] | |
+ [group: "net.oauth.core", name: "oauth-consumer", version: "20100601-atlassian-5"], // [11/2016, depreciate] | |
) | |
compile fileTree(dir: '../pst/build/libs', include: '**/*.jar') // [?, ?] | |
generateGXP ( | |
@@ -208,7 +208,7 @@ checkstyleMain.source = "src/main/java" // only checks the manually written java | |
//============================================================================= | |
protobuf { | |
protoc { | |
- artifact = 'com.google.protobuf:protoc:2.6.1' | |
+ path = "/home/wave-sandbox/.local/bin/protoc" | |
} | |
generatedFilesBaseDir = "$projectDir/generated" | |
} | |
@@ -225,14 +225,14 @@ task generateMessages { | |
outputs.dir outputDir | |
doLast { | |
List<String> proto_classes = [ | |
- "build/classes/proto/org/waveprotocol/box/common/comms/WaveClientRpc.class", | |
- "build/classes/proto/org/waveprotocol/box/search/SearchProto.class", | |
- "build/classes/proto/org/waveprotocol/box/profile/ProfilesProto.class", | |
- "build/classes/proto/org/waveprotocol/box/server/rpc/Rpc.class", | |
- "build/classes/proto/org/waveprotocol/box/attachment/AttachmentProto.class", | |
- "build/classes/proto/org/waveprotocol/wave/federation/Proto.class", | |
- "build/classes/proto/org/waveprotocol/wave/concurrencycontrol/ClientServer.class", | |
- "build/classes/proto/org/waveprotocol/wave/diff/Diff.class" | |
+ "build/classes/java/proto/org/waveprotocol/box/common/comms/WaveClientRpc.class", | |
+ "build/classes/java/proto/org/waveprotocol/box/search/SearchProto.class", | |
+ "build/classes/java/proto/org/waveprotocol/box/profile/ProfilesProto.class", | |
+ "build/classes/java/proto/org/waveprotocol/box/server/rpc/Rpc.class", | |
+ "build/classes/java/proto/org/waveprotocol/box/attachment/AttachmentProto.class", | |
+ "build/classes/java/proto/org/waveprotocol/wave/federation/Proto.class", | |
+ "build/classes/java/proto/org/waveprotocol/wave/concurrencycontrol/ClientServer.class", | |
+ "build/classes/java/proto/org/waveprotocol/wave/diff/Diff.class" | |
] | |
List<String> templates = [ | |
"src/main/java/org/waveprotocol/pst/templates/api/api.st", | |
diff --git a/wave/src/main/java/org/waveprotocol/box/server/ServerMain.java b/wave/src/main/java/org/waveprotocol/box/server/ServerMain.java | |
index ce5bb5ed..05b7993a 100644 | |
--- a/wave/src/main/java/org/waveprotocol/box/server/ServerMain.java | |
+++ b/wave/src/main/java/org/waveprotocol/box/server/ServerMain.java | |
@@ -64,6 +64,7 @@ import org.waveprotocol.wave.federation.noop.NoOpFederationModule; | |
import org.waveprotocol.wave.model.version.HashedVersionFactory; | |
import org.waveprotocol.wave.model.wave.ParticipantIdUtil; | |
import org.waveprotocol.wave.util.logging.Log; | |
+import com.google.inject.Module; | |
import java.io.File; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first, install openjdk 8, and run: | |
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-arm64/ # replace arm64 with your architecture | |
# protobuf v2.6.1 (newer versions don't work) | |
cd | |
git clone https://github.com/protocolbuffers/protobuf | |
cd protobuf | |
git checkout v2.6.1 | |
./configure --prefix=$HOME/.local/ | |
make -j 4 | |
make install | |
# compile apache-wave | |
cd | |
git clone https://github.com/apache/incubator-retired-wave.git | |
cd incubator-retired-wave/ | |
# apply fix-apache-wave.patch (replace /home/wave-sandbox/ with your home dir) | |
gradle build | |
# unpack | |
cd | |
tar -xf ~/incubator-retired-wave/wave/build/distributions/wave-0.4.2.tbz2 | |
cd wave-0.4.2 | |
# edit config/reference.conf | |
./bin/wave |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment