Skip to content

Commit 1929be7

Browse files
damianmomotgooglecopybara-github
authored andcommitted
build: add adk.build.directory property to relocate build output
Introduce an adk.build.directory property (default ${project.basedir}/target) used as the build output directory, so the location can be relocated with -Dadk.build.directory=... without changing the default. PiperOrigin-RevId: 962178122
1 parent faa3482 commit 1929be7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎pom.xml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
<java.version>17</java.version>
4343
<maven.compiler.release>${java.version}</maven.compiler.release>
4444
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45+
<!-- Build output root; override to relocate build output (e.g. onto local
46+
disk when the checkout is on a slow filesystem). -->
47+
<adk.build.directory>${project.basedir}/target</adk.build.directory>
4548
<maven.checkstyle.plugin.version>3.6.0</maven.checkstyle.plugin.version>
4649

4750
<auto-value.version>1.11.1</auto-value.version>
@@ -299,6 +302,7 @@
299302
<version>2.2.4</version>
300303
</extension>
301304
</extensions>
305+
<directory>${adk.build.directory}</directory>
302306
<pluginManagement>
303307
<plugins>
304308
<plugin>

0 commit comments

Comments
 (0)