Skip to content

Commit

Permalink
Generate GtfsRealtime from protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
otbutz committed Dec 13, 2024
1 parent d3df3f8 commit a36fe9f
Show file tree
Hide file tree
Showing 3 changed files with 1,228 additions and 16 deletions.
12 changes: 0 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,6 @@
<artifactId>mapdb</artifactId>
<version>1.0.8</version>
</dependency>
<dependency>
<groupId>io.mobilitydata.transit</groupId>
<artifactId>gtfs-realtime-bindings</artifactId>
<version>0.0.5</version>
<exclusions>
<exclusion>
<!-- use newer protobuf version -->
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
Expand Down
19 changes: 15 additions & 4 deletions reader-gtfs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>io.mobilitydata.transit</groupId>
<artifactId>gtfs-realtime-bindings</artifactId>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
Expand Down Expand Up @@ -77,6 +73,21 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.github.ascopes</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<sourceDirectory>${project.basedir}/src/main/protobuf</sourceDirectory>
<outputDirectory>${project.build.directory}/generated-sources/protobuf</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
Loading

0 comments on commit a36fe9f

Please sign in to comment.