Skip to content

Commit

Permalink
Merge branch 'build-with-plugin' of https://github.com/kurtraschke/on…
Browse files Browse the repository at this point in the history
…ebusaway-gtfs-realtime-api into kurtraschke-build-with-plugin
  • Loading branch information
sheldonabrown committed Sep 21, 2020
2 parents a4e477e + f3da47a commit addbaa4
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 13,323 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,3 @@ For bleeding-edge users, see the latest SNAPSHOT documentation:

http://developer.onebusaway.org/modules/onebusaway-gtfs-realtime-api/current-SNAPSHOT/

To regenerate the Java source-code, use the following command from the
root of the project:

~~~
% protoc \
-Isrc/main/resources \
--java_out=src/main/java/ \
src/main/resources/com/google/transit/realtime/gtfs-realtime-NYCT.proto \
src/main/resources/com/google/transit/realtime/gtfs-realtime-OneBusAway.proto
~~~

Note: you will need to add back a copyright-license header to each source file after regeneration.
44 changes: 43 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<description>Java classes for OBA-specific extensions to the GTFS-realtime protocol buffer specification.</description>
<url>https://github.com/OneBusAway/onebusaway-gtfs-realtime-api/wiki/</url>

<properties>
<protobuf.version>3.12.4</protobuf.version>
</properties>

<repositories>
<repository>
<id>repo.camsys-apps.com</id>
Expand Down Expand Up @@ -58,6 +62,44 @@
</site>
</distributionManagement>

<build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.6.2</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>
<!--
We don't actually want to build gtfs-realtime.proto, since it's included in
io.mobilitydata.transit:gtfs-realtime-bindings, but we do need it to be available for the extension
.proto files to import. Thus, it is excluded here.
-->
com/google/transit/realtime/gtfs-realtime.proto
</exclude>
</excludes>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>

<dependencyManagement>
<dependencies>
<dependency>
Expand All @@ -79,7 +121,7 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.11.4</version>
<version>${protobuf.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
Loading

0 comments on commit addbaa4

Please sign in to comment.