Skip to content

Instantly share code, notes, and snippets.

View cristianovagos's full-sized avatar
🤙
What's up?

Cristiano Vagos cristianovagos

🤙
What's up?
View GitHub Profile
syntax = "proto3";
package com.todos.v1;
option go_package = "protocols/todos/v1";
option java_multiple_files = true;
option java_outer_classname = "TodosServiceV1";
option java_package = "com.todos.v1";
import "google/api/annotations.proto";
@cristianovagos
cristianovagos / .gitlab-ci.yml
Created September 26, 2019 11:37
GitLab CI/CD file for Protobuf Golang/Java generation
stages:
- build
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
build:go:
stage: build
image:
name: namely/protoc-all
@cristianovagos
cristianovagos / build.gradle
Created September 26, 2019 11:22
Gradle build file to generate Java jar with Protobuf generated files
apply plugin: 'java'
apply plugin: "com.google.protobuf"
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }