-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from gsmet/everything
Move the last pieces of cache infrastructure to the extension
- Loading branch information
Showing
19 changed files
with
356 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/main/java/io/quarkus/develocity/project/normalization/Normalization.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package io.quarkus.develocity.project.normalization; | ||
|
||
import java.nio.file.Path; | ||
|
||
import com.gradle.maven.extension.api.cache.BuildCacheApi; | ||
|
||
import io.quarkus.develocity.project.util.Matchers; | ||
|
||
public final class Normalization { | ||
|
||
private Normalization() { | ||
} | ||
|
||
public static void configureNormalization(BuildCacheApi buildCacheApi) { | ||
// System properties | ||
buildCacheApi.registerNormalizationProvider( | ||
context -> context.configureSystemPropertiesNormalization(s -> { | ||
s.addIgnoredKeys("maven.repo.local", "maven.settings"); | ||
|
||
if (Matchers.directory(context, Path.of("docs"))) { | ||
s.addIgnoredKeys("vale.dir", "git.dir"); | ||
} | ||
|
||
if (Matchers.directory(context, Path.of("independent-projects", "arc", "tcks", "cdi-tck-runner"))) { | ||
s.addIgnoredKeys("org.jboss.cdi.tck.libraryDirectory"); | ||
} | ||
|
||
if (Matchers.directory(context, Path.of("integration-tests"))) { | ||
s.addIgnoredKeys("native.image.path", "quarkus.kubernetes-service-binding.root"); | ||
} | ||
|
||
if (Matchers.module(context, "quarkus-integration-test-rest-client")) { | ||
s.addIgnoredKeys("javax.net.ssl.trustStore", "rest-client.trustStore"); | ||
} | ||
|
||
if (Matchers.module(context, "quarkus-integration-test-test-extension")) { | ||
s.addIgnoredKeys("classpathEntriesRecordingFile"); | ||
} | ||
})); | ||
|
||
// Application.properties | ||
buildCacheApi.registerNormalizationProvider( | ||
context -> context.configureRuntimeClasspathNormalization(c -> { | ||
c.addIgnoredFiles("META-INF/ide-deps/**"); | ||
|
||
if (Matchers.module(context, "quarkus-integration-test-rest-client-reactive")) { | ||
c.addPropertiesNormalization("application.properties", "quarkus.rest-client.self-signed.trust-store", | ||
"quarkus.rest-client.wrong-host.trust-store", | ||
"quarkus.rest-client.wrong-host-rejected.trust-store"); | ||
} | ||
|
||
if (Matchers.module(context, "quarkus-integration-test-oidc-client-reactive")) { | ||
c.addPropertiesNormalization("application.properties", "quarkus.keycloak.devservices.realm-path"); | ||
} | ||
|
||
if (Matchers.module(context, "quarkus-integration-test-test-extension")) { | ||
c.addPropertiesNormalization("application.properties", "quarkus.bt.classpath-recording.record-file", | ||
"%test.quarkus.bt.classpath-recording.record-file"); | ||
} | ||
|
||
if (Matchers.module(context, "quarkus-integration-test-gradle-plugin")) { | ||
c.addIgnoredFiles(".quarkus/config.yml"); | ||
} | ||
})); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...oject/goals/CompilerConfiguredPlugin.java → ...ect/plugins/CompilerConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...oject/goals/EnforcerConfiguredPlugin.java → ...ect/plugins/EnforcerConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...oject/goals/FailsafeConfiguredPlugin.java → ...ect/plugins/FailsafeConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ject/goals/FormatterConfiguredPlugin.java → ...ct/plugins/FormatterConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...roject/goals/ImpsortConfiguredPlugin.java → ...ject/plugins/ImpsortConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...project/goals/KotlinConfiguredPlugin.java → ...oject/plugins/KotlinConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...roject/goals/QuarkusConfiguredPlugin.java → ...ject/plugins/QuarkusConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...als/QuarkusExtensionConfiguredPlugin.java → ...ins/QuarkusExtensionConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...project/goals/SourceConfiguredPlugin.java → ...oject/plugins/SourceConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...oject/goals/SpotlessConfiguredPlugin.java → ...ect/plugins/SpotlessConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...oject/goals/SurefireConfiguredPlugin.java → ...ect/plugins/SurefireConfiguredPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.