aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--build.gradle1
-rw-r--r--pom.xml6
3 files changed, 3 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index c005ef9e4..f2672aada 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@ nbactions.xml
.gradle
out
build
+src/main/java/org/traccar/protobuf
diff --git a/build.gradle b/build.gradle
index 6229a96c3..7ee6b7a95 100644
--- a/build.gradle
+++ b/build.gradle
@@ -25,6 +25,7 @@ checkstyle {
}
protobuf {
+ generatedFilesBaseDir = "$projectDir/src"
protoc {
artifact = "com.google.protobuf:protoc:$protobufVersion"
}
diff --git a/pom.xml b/pom.xml
index d12c0ec70..1b405aa4c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -364,11 +364,7 @@
<inputDirectories>
<include>src/main/proto</include>
</inputDirectories>
- <outputTargets>
- <outputTarget>
- <type>java</type>
- </outputTarget>
- </outputTargets>
+ <outputDirectory>src/main/java</outputDirectory>
</configuration>
</execution>
</executions>