diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-03-21 10:34:32 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-03-21 10:34:32 +0000 |
| commit | 985db8a456f1db471e3a3aaac0deeb5bffcdb7eb (patch) | |
| tree | d32fcded54c7f78537ea028f3a12487c21b9f18f | |
| parent | c68f3b9d45e66c5b7b14b31c1343dcd3de8e9037 (diff) | |
Move generated code to src/gen
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | makefile | 5 | ||||
| -rw-r--r-- | pom.xml | 19 |
3 files changed, 23 insertions, 4 deletions
@@ -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 @@ -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 @@ -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> |
