Skip to content

Commit fbb8946

Browse files
committed
rest
1 parent 78e547b commit fbb8946

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
FROM env/jvmdev
1+
FROM ubuntu:artful
22
ARG JAR
33
ENV JAR ${JAR}
4-
RUN apt-get update && apt-get install -y openjdk-8-jdk axel maven jq nodejs npm gradle groovy2 && apt clean
4+
RUN apt-get update && apt-get install -y openjdk-8-jdk groovy
55
ENV TERM xterm
66
RUN mkdir -p /opt/kvdn/{bin,lib}
77
ADD $JAR /opt/kvdn.jar
88
ADD Client /opt/kvdn/lib/Client
9+
ADD examples/config /opt/kvdn/config
910
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk
1011
CMD java -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -jar /opt/kvdn.jar

build.gradle

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ plugins {
2424
id "net.ltgt.apt" version "0.6"
2525
}
2626
def strict = false
27-
if(System.getenv("STRICT_TYPECHECKING") != null)
27+
if(System.getenv("STRICT_TYPECHECKING") != null) {
2828
strict = true
29-
29+
println "COMPILE STATIC & TYPECHECKED"
30+
}
3031
compileGroovy {
3132
groovyOptions.javaAnnotationProcessing = true
3233
if(strict)
@@ -38,11 +39,22 @@ compileGroovy {
3839
apply plugin: "co.riiid.gradle"
3940
apply plugin: 'distribution'
4041
apply plugin: 'idea'
41-
42+
apply plugin: 'java'
43+
apply plugin: 'groovy'
4244

4345
def libversion = '3.5.0'
4446
if(System.getenv("VERTX_VERSION") != null)
4547
libversion = System.getenv("VERTX_VERSION")
48+
sourceSets{
49+
main{
50+
groovy{
51+
exclude "net/iowntheinter/kvdn/storage/lock/*"
52+
exclude "net/iowntheinter/kvdn/storage/queue/*"
53+
exclude "net/iowntheinter/kvdn/storage/counter/*"
54+
55+
}
56+
}
57+
}
4658

4759
version = "$libversion-${new File('src/main/resources/_KVDN_VERSION.txt').text.trim()}"
4860
println("version $version")

buildfresh.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
./gradlew clean util:jar util:publish;DISABLE_EXTENSIONS=true ./gradlew clean shadowJar publish test && echo built base &&
1+
./gradlew clean util:jar util:publish;DISABLE_EXTENSIONS=true ./gradlew --info clean shadowJar publish test && echo built base &&
22
./gradlew service-proxy:generateserviceproxy service-proxy:shadowJar service-proxy:publish && echo built proxy &&
33
./gradlew extensions/mapdb:shadowJar publish &&
44
./gradlew server:clean server:shadowJar server:publish

gradle/config.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import groovy.transform.CompileStatic
22
import groovy.transform.TypeChecked
33

44
withConfig(configuration) {
5-
//ast(CompileStatic)
5+
ast(CompileStatic)
66
ast(TypeChecked)
77
}

run-mapdb.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
java -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -jar extensions/mapdb/build/libs/extensions/mapdb-3.5.0-1.9.5-b2-fat.jar --conf '{"kvdn":{"data_implementation":"net.iowntheinter.kvdn.mapdb.impl.mapdbDataImpl","key_provider":"net.iowntheinter.kvdn.mapdb.impl.mapdbKeyProvider","mapdb":{"dbPath":"/core/datasets/vr/dev/mapdb.db"}}}'
1+
java -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -jar extensions/mapdb/build/libs/extensions/mapdb-*-fat.jar --conf '{"kvdn":{"data_implementation":"net.iowntheinter.kvdn.mapdb.impl.MapdbDataImpl","key_provider":"net.iowntheinter.kvdn.mapdb.impl.MapdbKeyProvider","mapdb":{"dbPath":"/core/datasets/vr/dev/mapdb.db"}}}' 2>&1

0 commit comments

Comments
 (0)