Migrate CRLF file endings to LF
This commit is contained in:
88
proto/build.gradle
Executable file → Normal file
88
proto/build.gradle
Executable file → Normal file
@@ -1,45 +1,45 @@
|
||||
plugins {
|
||||
id 'java-library'
|
||||
id "com.google.protobuf" version "$protobufPluginVersion"
|
||||
}
|
||||
|
||||
group 'com.bartlomiejpluta.base'
|
||||
version 'unspecified'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api "com.google.protobuf:protobuf-java:$protobufVersion"
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDirs "$projectDir/build/proto/main/java"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protobuf {
|
||||
// Fetch protoc compiler
|
||||
protoc {
|
||||
artifact = "com.google.protobuf:protoc:$protobufVersion"
|
||||
}
|
||||
|
||||
generatedFilesBaseDir = "$projectDir/build/proto/"
|
||||
|
||||
// Enable compiling proto files to Java
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.builtins {
|
||||
java { }
|
||||
}
|
||||
}
|
||||
}
|
||||
plugins {
|
||||
id 'java-library'
|
||||
id "com.google.protobuf" version "$protobufPluginVersion"
|
||||
}
|
||||
|
||||
group 'com.bartlomiejpluta.base'
|
||||
version 'unspecified'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api "com.google.protobuf:protobuf-java:$protobufVersion"
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDirs "$projectDir/build/proto/main/java"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protobuf {
|
||||
// Fetch protoc compiler
|
||||
protoc {
|
||||
artifact = "com.google.protobuf:protoc:$protobufVersion"
|
||||
}
|
||||
|
||||
generatedFilesBaseDir = "$projectDir/build/proto/"
|
||||
|
||||
// Enable compiling proto files to Java
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.builtins {
|
||||
java { }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
44
proto/src/main/proto/map.proto
Executable file → Normal file
44
proto/src/main/proto/map.proto
Executable file → Normal file
@@ -1,23 +1,23 @@
|
||||
package com.bartlomiejpluta.base.proto;
|
||||
|
||||
option java_package = "com.bartlomiejpluta.base.proto";
|
||||
option java_outer_classname = "GameMapProto";
|
||||
|
||||
message GameMap {
|
||||
required string name = 1;
|
||||
required uint32 rows = 2;
|
||||
required uint32 columns = 3;
|
||||
repeated Layer layers = 4;
|
||||
}
|
||||
|
||||
message Layer {
|
||||
required string name = 1;
|
||||
|
||||
oneof layer {
|
||||
TileLayer tileLayer = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message TileLayer {
|
||||
repeated uint32 tiles = 1;
|
||||
package com.bartlomiejpluta.base.proto;
|
||||
|
||||
option java_package = "com.bartlomiejpluta.base.proto";
|
||||
option java_outer_classname = "GameMapProto";
|
||||
|
||||
message GameMap {
|
||||
required string name = 1;
|
||||
required uint32 rows = 2;
|
||||
required uint32 columns = 3;
|
||||
repeated Layer layers = 4;
|
||||
}
|
||||
|
||||
message Layer {
|
||||
required string name = 1;
|
||||
|
||||
oneof layer {
|
||||
TileLayer tileLayer = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message TileLayer {
|
||||
repeated uint32 tiles = 1;
|
||||
}
|
||||
14
proto/src/main/proto/project.proto
Executable file → Normal file
14
proto/src/main/proto/project.proto
Executable file → Normal file
@@ -1,8 +1,8 @@
|
||||
package com.bartlomiejpluta.base.proto;
|
||||
|
||||
option java_package = "com.bartlomiejpluta.base.proto";
|
||||
option java_outer_classname = "ProjectProto";
|
||||
|
||||
message Project {
|
||||
required string name = 1;
|
||||
package com.bartlomiejpluta.base.proto;
|
||||
|
||||
option java_package = "com.bartlomiejpluta.base.proto";
|
||||
option java_outer_classname = "ProjectProto";
|
||||
|
||||
message Project {
|
||||
required string name = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user