-
Notifications
You must be signed in to change notification settings - Fork 23
Move build summary extraction logic out #487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I left some comments for polishing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks, Sorin.
aa746ec
to
77b69fc
Compare
77b69fc
to
48d7169
Compare
Successfully ran the below experiments at commit 0e2028a.
|
0e2028a
to
8721a55
Compare
When I invoke a script I get this right at the start: Message: /Users/eric/Projects/gradle/gradle-enterprise-gradle-build-validation/local/lib/scripts/exit-code.sh: line 3: SUCCESS: readonly variable To reproduce it, just run: ./01-validate-incremental-building.sh \
-r git@github.com:gradle/gradle-build-scan-quickstart.git \
-c 710a21dad423192a0ea2d9aea77f381f40eb8a6a \
-t 'build' \
-s https://ge.solutions-team.gradle.com |
Fixed in 9fadce5 |
Resolve build scan summary dependencies
Co-authored-by: Eric Haag <ehaag@gradle.com> Signed-off-by: Sorin Florea <sorin.florea.v@gmail.com>
Did some testing and all looks good up to this point. Each distribution has their respective license and scripts are working as expected. |
Co-authored-by: Eric Haag <ehaag@gradle.com> Signed-off-by: Jim Hurne <jhurne@gradle.com>
* origin/main: Bump com.google.guava:guava from 33.2.0-jre to 33.2.1-jre Bump Gradle Wrapper from 8.7 to 8.8 Bump org.apache.maven:maven-core from 3.9.6 to 3.9.7 Bump com.gradle.develocity from 3.17.3 to 3.17.4 Bump com.gradle.develocity from 3.17.2 to 3.17.3
The Develocity Maven Extension is covered by the same terms of use as the fetch-build-scans utility is, so we want it to be in the same directory.
From the perspective of this project, it's a third-party open source dependency.
The Gradle Enterprise Maven Extension was renamed to the Develocity Maven Extension in version 1.21. The API was also updated for the product name change. Unfortunately, this broke compatibility with the Build Validation Scripts. This commit fixes the incompatibility. The fix works by updating the configure-gradle-enterprise-maven-extension to define and register two listeners: a GradleEnterpriseListener and a DevelocityListener. If an older version of the Gradle Enterprise Maven Extension is used, it will load the GradleEnterpriseListener. If a newer version of the Develocity Maven Extension is used, then it will load the DevelocityListener. The Develocity Maven Extension Adapters are used to eliminate duplication between the two different listeners. This commit also creates a "fat jar" so that the develocity-maven-extention-adapters jar does not have to be manually added to the classpath. The project compiles agianst an older version of Maven to ensure compatibility with projects using an older version of Maven. **Remove unused variables and suppress deprecation warnings** Unused warnings were previously suppressed because the main classes aren't used directly. However, this suppressed other unused warnings and hid a few things that are not actually used. So this commit un-supresses unused warnings and removes the unused variables and parameters. The attempt to suppress deprecation warnings on the ConfigureGradleEnterprise class wasn't working because the deprecated classes are referenced in import statements. The class was updated to use the fully qualified name of the deprecated classes. --------- Signed-off-by: Jim Hurne <jhurne@gradle.com> Co-authored-by: Eric Haag <ehaag@gradle.com> Co-authored-by: Brian Demers <brian.demers@gmail.com>
9c8ed3c
to
b51d887
Compare
* origin/main: Add support for the renamed Develocity Maven Extension (#624)
Sync is slightly better because it effectively resets the output directory before copying. That way, old files that shouldn't be included anymore are not included (and avoids having to run ./gradlew clean).
* origin/main: Bump github/combine-prs from 5.0.0 to 5.1.0 Bump Gradle Wrapper from 8.8 to 8.9 Migrated to gradle/actions/setup-gradle@v3 and removed info logging from build-verification Migrated github actions gradle executions to accessToken auth and renamed the secret to develocity naming
This PR moves the build scan summary logic into a separate jar file that is built externally to the build validation scripts.
It also restructures the final distribution.
New Gradle scripts distribution layout:
New Maven scripts distribution layout: