publish GreptimeDB protobuf for Java using jitpack.io (#4)
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<groupId>io.greptime</groupId>
|
||||||
|
<artifactId>greptimedb-proto</artifactId>
|
||||||
|
<version>0.1.0</version>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
|
<maven.compiler.target>8</maven.compiler.target>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<protobuf.version>3.21.12</protobuf.version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.protobuf</groupId>
|
||||||
|
<artifactId>protobuf-java</artifactId>
|
||||||
|
<version>${protobuf.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PROTO_ROOT=../../../../proto
|
||||||
|
|
||||||
|
protoc -I=${PROTO_ROOT} --java_out=../java/ \
|
||||||
|
${PROTO_ROOT}/greptime/v1/column.proto \
|
||||||
|
${PROTO_ROOT}/greptime/v1/ddl.proto \
|
||||||
|
${PROTO_ROOT}/greptime/v1/database.proto
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
jdk:
|
||||||
|
- openjdk8
|
||||||
|
install:
|
||||||
|
- cd java
|
||||||
|
- mvn install -DskipTests
|
||||||
@@ -2,6 +2,9 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package greptime.v1;
|
package greptime.v1;
|
||||||
|
|
||||||
|
option java_package="io.greptime.v1";
|
||||||
|
option java_outer_classname = "Columns";
|
||||||
|
|
||||||
message Column {
|
message Column {
|
||||||
string column_name = 1;
|
string column_name = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package greptime.v1;
|
package greptime.v1;
|
||||||
|
|
||||||
|
option java_package = "io.greptime.v1";
|
||||||
|
option java_outer_classname = "Database";
|
||||||
|
|
||||||
import "greptime/v1/ddl.proto";
|
import "greptime/v1/ddl.proto";
|
||||||
import "greptime/v1/column.proto";
|
import "greptime/v1/column.proto";
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package greptime.v1;
|
package greptime.v1;
|
||||||
|
|
||||||
|
option java_package = "io.greptime.v1";
|
||||||
|
option java_outer_classname = "Ddl";
|
||||||
|
|
||||||
import "greptime/v1/column.proto";
|
import "greptime/v1/column.proto";
|
||||||
|
|
||||||
// "Data Definition Language" requests, that create, modify or delete the database structures but not the data.
|
// "Data Definition Language" requests, that create, modify or delete the database structures but not the data.
|
||||||
|
|||||||
Reference in New Issue
Block a user