Skip to content

Commit afda386

Browse files
authored
chore(spanner): update executor build to thin jar (googleapis#3316)
* chore(spanner): update executor config to build thin jar * chore(spanner): update executor config to build thin jar * chore(spanner): update executor config to build thin jar
1 parent a860498 commit afda386

File tree

2 files changed

+46
-42
lines changed

2 files changed

+46
-42
lines changed

google-cloud-spanner-executor/assembly-descriptor.xml

Lines changed: 0 additions & 27 deletions
This file was deleted.

google-cloud-spanner-executor/pom.xml

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -160,30 +160,61 @@
160160

161161
</dependencies>
162162
<build>
163-
<finalName>google-spanner-cloud-executor</finalName>
164163
<plugins>
165164
<plugin>
166-
<artifactId>maven-assembly-plugin</artifactId>
167-
<version>3.7.1</version>
165+
<artifactId>maven-resources-plugin</artifactId>
166+
<executions>
167+
<execution>
168+
<id>copy-resources</id>
169+
<phase>validate</phase>
170+
<goals>
171+
<goal>copy-resources</goal>
172+
</goals>
173+
<configuration>
174+
<outputDirectory>${project.build.directory}/spanner-executor</outputDirectory>
175+
<resources>
176+
<resource>
177+
<directory>resources</directory>
178+
<filtering>true</filtering>
179+
</resource>
180+
</resources>
181+
</configuration>
182+
</execution>
183+
</executions>
184+
</plugin>
185+
<plugin>
186+
<groupId>org.apache.maven.plugins</groupId>
187+
<artifactId>maven-dependency-plugin</artifactId>
188+
<executions>
189+
<execution>
190+
<id>copy-dependencies</id>
191+
<phase>prepare-package</phase>
192+
<goals>
193+
<goal>copy-dependencies</goal>
194+
</goals>
195+
<configuration>
196+
<outputDirectory>${project.build.directory}/spanner-executor/lib</outputDirectory>
197+
<overWriteReleases>false</overWriteReleases>
198+
<overWriteSnapshots>false</overWriteSnapshots>
199+
<overWriteIfNewer>true</overWriteIfNewer>
200+
</configuration>
201+
</execution>
202+
</executions>
203+
</plugin>
204+
<plugin>
205+
<groupId>org.apache.maven.plugins</groupId>
206+
<artifactId>maven-jar-plugin</artifactId>
168207
<configuration>
169-
<descriptors>
170-
<descriptor>assembly-descriptor.xml</descriptor>
171-
</descriptors>
208+
<finalName>spanner-executor/google-spanner-cloud-executor</finalName>
172209
<archive>
210+
<index>false</index>
173211
<manifest>
174212
<mainClass>com.google.cloud.executor.spanner.WorkerProxy</mainClass>
213+
<addClasspath>true</addClasspath>
214+
<classpathPrefix>lib/</classpathPrefix>
175215
</manifest>
176216
</archive>
177217
</configuration>
178-
<executions>
179-
<execution>
180-
<id>make-assembly</id>
181-
<phase>package</phase>
182-
<goals>
183-
<goal>single</goal>
184-
</goals>
185-
</execution>
186-
</executions>
187218
</plugin>
188219
<plugin>
189220
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)