This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git
The following commit(s) were added to refs/heads/master by this push:
new 0e07a384 Add configuration to send build scans to
https://ge.apache.org (#810)
0e07a384 is described below
commit 0e07a384c4ff1e7f467f5f873166d56bbc0f2558
Author: Clay Johnson <[email protected]>
AuthorDate: Sun Jun 11 13:30:10 2023 -0500
Add configuration to send build scans to https://ge.apache.org (#810)
* Add configuration to send build scans to https://ge.apache.org
* Add `.mvn` directories to IT tests projects that lack one
Some of the integration tests to do not have `.mvn` directories and
search up the project structure until they find the `.mvn` directory
of the root project.
This change adds `.mvn` directories with empty `maven.config` files so
that the sample projects in VCS will be as close as possible to those
executed during integration testing
---
.gitignore | 5 +++-
.mvn/extensions.xml | 14 +++++++++++
.mvn/gradle-enterprise.xml | 28 ++++++++++++++++++++++
.../mvndaemon/mvnd/junit/MvndTestExtension.java | 5 ++++
.../src/test/projects/maven-conf/.mvn/maven.config | 0
.../parent-with-property/.mvn/maven.config | 0
.../test/projects/raw-streams/.mvn/maven.config | 0
7 files changed, 51 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index b25ebb84..335a899a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,4 +28,7 @@ nb-configuration.xml
.vscode/
# formatter-maven-plugin
-.cache/
\ No newline at end of file
+.cache/
+
+# https://ge.apache.org
+.mvn/.gradle-enterprise
\ No newline at end of file
diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml
new file mode 100644
index 00000000..c89d1f3b
--- /dev/null
+++ b/.mvn/extensions.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<extensions>
+ <extension>
+ <groupId>com.gradle</groupId>
+ <artifactId>gradle-enterprise-maven-extension</artifactId>
+ <version>1.17.3</version>
+ </extension>
+ <extension>
+ <groupId>com.gradle</groupId>
+ <artifactId>common-custom-user-data-maven-extension</artifactId>
+ <version>1.12</version>
+ </extension>
+</extensions>
diff --git a/.mvn/gradle-enterprise.xml b/.mvn/gradle-enterprise.xml
new file mode 100644
index 00000000..46d8253b
--- /dev/null
+++ b/.mvn/gradle-enterprise.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+
+<gradleEnterprise
+ xmlns="https://www.gradle.com/gradle-enterprise-maven"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven
https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
+ <server>
+ <url>https://ge.apache.org</url>
+ </server>
+ <buildScan>
+ <capture>
+ <goalInputFiles>true</goalInputFiles>
+ </capture>
+ <obfuscation>
+ <ipAddresses>0.0.0.0</ipAddresses>
+ </obfuscation>
+ <publish>ALWAYS</publish>
+ <publishIfAuthenticated>true</publishIfAuthenticated>
+
<backgroundBuildScanUpload>#{isFalse(env['GITHUB_ACTIONS'])}</backgroundBuildScanUpload>
+ </buildScan>
+ <buildCache>
+ <local>
+ <enabled>#{isFalse(env['GITHUB_ACTIONS'])}</enabled>
+ </local>
+ <remote>
+ <enabled>false</enabled>
+ </remote>
+ </buildCache>
+</gradleEnterprise>
diff --git
a/integration-tests/src/test/java/org/mvndaemon/mvnd/junit/MvndTestExtension.java
b/integration-tests/src/test/java/org/mvndaemon/mvnd/junit/MvndTestExtension.java
index a303a927..d4295d74 100644
---
a/integration-tests/src/test/java/org/mvndaemon/mvnd/junit/MvndTestExtension.java
+++
b/integration-tests/src/test/java/org/mvndaemon/mvnd/junit/MvndTestExtension.java
@@ -204,6 +204,11 @@ public class MvndTestExtension implements
BeforeAllCallback, BeforeEachCallback,
}
});
}
+
+ final Path dotMvn = testExecutionDir.resolve(".mvn");
+ if (!Files.exists(dotMvn)) {
+ Files.createDirectories(dotMvn);
+ }
}
final Path multiModuleProjectDirectory =
Paths.get(DaemonParameters.findDefaultMultimoduleProjectDirectory(testExecutionDir));
diff --git a/integration-tests/src/test/projects/maven-conf/.mvn/maven.config
b/integration-tests/src/test/projects/maven-conf/.mvn/maven.config
new file mode 100644
index 00000000..e69de29b
diff --git
a/integration-tests/src/test/projects/parent-with-property/.mvn/maven.config
b/integration-tests/src/test/projects/parent-with-property/.mvn/maven.config
new file mode 100644
index 00000000..e69de29b
diff --git a/integration-tests/src/test/projects/raw-streams/.mvn/maven.config
b/integration-tests/src/test/projects/raw-streams/.mvn/maven.config
new file mode 100644
index 00000000..e69de29b