aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-03-21 10:34:32 +0000
committerMichael Williamson <mike@zwobble.org>2026-03-21 10:34:32 +0000
commit985db8a456f1db471e3a3aaac0deeb5bffcdb7eb (patch)
treed32fcded54c7f78537ea028f3a12487c21b9f18f
parentc68f3b9d45e66c5b7b14b31c1343dcd3de8e9037 (diff)
Move generated code to src/gen
-rw-r--r--.gitignore3
-rw-r--r--makefile5
-rw-r--r--pom.xml19
3 files changed, 23 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 0e74e26a..1250c9e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,8 +3,7 @@
/examples-perf/*/target/
/projects/*/target/
/runtime/target/
-/src/main/java/org/shedlang/compiler/patio/protobuf/PatioProtobuf.java
-/src/main/java/org/shedlang/compiler/sources/protobuf/SourcesProtobuf.java
+/src/gen/
/target
/tests-tmp
*.snap.debug
diff --git a/makefile b/makefile
index 4b4090c3..758ce034 100644
--- a/makefile
+++ b/makefile
@@ -26,5 +26,6 @@ build-runtime:
.PHONY: protobuf
protobuf:
- protoc -I protobuf --java_out src/main/java protobuf/patio.proto
- protoc -I protobuf --java_out src/main/java protobuf/sources.proto
+ mkdir -p src/gen/java
+ protoc -I protobuf --java_out src/gen/java protobuf/patio.proto
+ protoc -I protobuf --java_out src/gen/java protobuf/sources.proto
diff --git a/pom.xml b/pom.xml
index abde4c54..60b5da79 100644
--- a/pom.xml
+++ b/pom.xml
@@ -113,6 +113,25 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>3.6.1</version>
+ <executions>
+ <execution>
+ <id>add-source</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>src/gen/java</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>