Migrate CRLF file endings to LF

This commit is contained in:
2021-02-10 17:16:37 +01:00
parent 98ac49cca0
commit e60add30c5
141 changed files with 4973 additions and 4978 deletions

88
proto/build.gradle Executable file → Normal file
View 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
View 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
View 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;
}