diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..ca5a761 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "build_utils"] + path = build_utils + url = git@github.com:rbkmoney/build_utils.git + branch = master diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..c11bf55 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,26 @@ +#!groovy +// -*- mode: groovy -*- + +build('fraudbusters-warehouse-proto', 'docker-host') { + checkoutRepo() + loadBuildUtils() + + def pipeDefault + def gitUtils + runStage('load pipeline') { + env.JENKINS_LIB = "build_utils/jenkins_lib" + pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy") + pipeJavaProto = load("${env.JENKINS_LIB}/pipeJavaProto.groovy") + gitUtils = load("${env.JENKINS_LIB}/gitUtils.groovy") + } + + pipeDefault() { + + runStage('compile') { + sh "make wc_compile" + } + + env.skipSonar = 'true' + pipeJavaProto() + } +} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..548cbe4 --- /dev/null +++ b/Makefile @@ -0,0 +1,42 @@ +THRIFT = $(or $(shell which thrift), $(error "`thrift' executable missing")) +REBAR = $(shell which rebar3 2>/dev/null || which ./rebar3) +SUBMODULES = build_utils +SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES)) + +UTILS_PATH := build_utils +TEMPLATES_PATH := . + +# Name of the service +SERVICE_NAME := fraudbusters-warehouse-proto + +# Build image tag to be used +BUILD_IMAGE_TAG := b04c5291d101132e53e578d96e1628d2e6dab0c0 +CALL_ANYWHERE := \ + all submodules compile clean distclean + +CALL_W_CONTAINER := $(CALL_ANYWHERE) + +all: compile + +-include $(UTILS_PATH)/make_lib/utils_container.mk + +.PHONY: $(CALL_W_CONTAINER) + +# CALL_ANYWHERE +$(SUBTARGETS): %/.git: % + git submodule update --init $< + touch $@ + +submodules: $(SUBTARGETS) + +compile: + $(REBAR) compile + +clean: + $(REBAR) clean + +distclean: + $(REBAR) clean -a + rm -rfv _build + +include $(UTILS_PATH)/make_lib/java_proto.mk diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..36b17ce --- /dev/null +++ b/pom.xml @@ -0,0 +1,98 @@ + + + 4.0.0 + + + com.rbkmoney + parent + 1.0.5 + + + fraudbusters-warehouse-proto + 1.0.0 + jar + + + Fraudbusters Warehouse + Generates jar artifact containing compiled thrift classes based on generated thrift IDL files + https://github.com/rbkmoney/fraudbusters-warehouse-proto.git + + + + RBK.money + https://rbk.money + + + + + scm:git:git://github.com/rbkmoney/fraudbusters-warehouse-proto.git + scm:git:ssh://github.com/rbkmoney/fraudbusters-warehouse-proto.git + https://github.com/rbkmoney/fraudbusters-warehouse-proto/tree/master + + + + UTF-8 + + + + + + com.rbkmoney.woody + woody-thrift + 1.1.22 + provided + + + + + ${project.artifactId} + + + + org.apache.thrift + thrift-maven-plugin + 0.10.0 + + java:fullcamel + ${project.basedir}/proto + + + + + thrift-sources + generate-sources + + compile + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.0.0 + + + package + + shade + + + + + com.rbkmoney.damsel + com.rbkmoney.damsel.v${commit.number} + + + true + v${commit.number} + + + + + + + +