kopia lustrzana https://github.com/onthegomap/planetiler
Generate protobuf during build (#310)
rodzic
88c7f5650f
commit
7fa51c1c02
|
@ -19,6 +19,7 @@
|
|||
<geotools.version>27.1</geotools.version>
|
||||
<log4j.version>2.18.0</log4j.version>
|
||||
<prometheus.version>0.16.0</prometheus.version>
|
||||
<protobuf.version>3.21.4</protobuf.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
@ -35,7 +36,7 @@
|
|||
<dependency>
|
||||
<groupId>com.google.protobuf</groupId>
|
||||
<artifactId>protobuf-java</artifactId>
|
||||
<version>3.21.3</version>
|
||||
<version>${protobuf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.jnr</groupId>
|
||||
|
@ -172,6 +173,14 @@
|
|||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>kr.motd.maven</groupId>
|
||||
<artifactId>os-maven-plugin</artifactId>
|
||||
<version>1.7.0</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
|
@ -183,6 +192,22 @@
|
|||
<groupId>io.github.zlika</groupId>
|
||||
<artifactId>reproducible-build-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<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>
|
||||
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
Plik diff jest za duży
Load Diff
Plik binarny nie jest wyświetlany.
Plik diff jest za duży
Load Diff
Plik binarny nie jest wyświetlany.
Plik diff jest za duży
Load Diff
Plik binarny nie jest wyświetlany.
6
pom.xml
6
pom.xml
|
@ -26,11 +26,7 @@
|
|||
<sonar.organization>onthegomap</sonar.organization>
|
||||
<sonar.projectKey>onthegomap_planetiler</sonar.projectKey>
|
||||
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
|
||||
<sonar.exclusions>
|
||||
planetiler-benchmarks/**/*, **/VectorTileProto.java, **/crosby/binary/*.java,
|
||||
**/generated/*.java
|
||||
, planetiler-openmaptiles/**/*
|
||||
</sonar.exclusions>
|
||||
<sonar.exclusions>planetiler-benchmarks/**/*, planetiler-openmaptiles/**/*</sonar.exclusions>
|
||||
</properties>
|
||||
|
||||
<scm>
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
echo "Regenerating..."
|
||||
protoc --java_out=annotate_code:planetiler-core/src/main/java/ planetiler-core/src/main/resources/vector_tile_proto.proto
|
||||
protoc --java_out=annotate_code:planetiler-core/src/main/java/ planetiler-core/src/main/resources/fileformat.proto
|
||||
protoc --java_out=annotate_code:planetiler-core/src/main/java/ planetiler-core/src/main/resources/osmformat.proto
|
||||
|
||||
echo "Formatting..."
|
||||
./scripts/format.sh
|
Ładowanie…
Reference in New Issue