Skip to content

Commit

Permalink
Take into account quarkus-*-dependencies.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Jun 27, 2024
1 parent b966165 commit be41f09
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ protected Map<String, GoalMetadataProvider> getGoalMetadataProviders() {

private static void configureIntegrationTest(MojoMetadataProvider.Context context) {
context.inputs(inputs -> {
inputs.fileSet("dependency-checksums", context.getProject().getBuild().getDirectory(), fs -> fs
inputs.fileSet("quarkus-dependencies", context.getProject().getBuild().getDirectory(), fs -> fs
.include("quarkus-*-dependencies.txt").normalizationStrategy(NormalizationStrategy.CLASSPATH));
// for compatibility with older versions but this is deprecated
inputs.fileSet("quarkus-dependency-checksums", context.getProject().getBuild().getDirectory(), fs -> fs
.include("quarkus-*-dependency-checksums.txt").normalizationStrategy(NormalizationStrategy.RELATIVE_PATH));

if (Matchers.directory(context, Path.of("integration-tests"))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ protected Map<String, GoalMetadataProvider> getGoalMetadataProviders() {

private static void configureBuild(MojoMetadataProvider.Context context) {
context.inputs(inputs -> {
inputs.fileSet("dependency-checksums", context.getProject().getBuild().getDirectory(), fs -> fs
inputs.fileSet("quarkus-dependencies", context.getProject().getBuild().getDirectory(), fs -> fs
.include("quarkus-*-dependencies.txt").normalizationStrategy(NormalizationStrategy.CLASSPATH));
// for compatibility with older versions but this is deprecated
inputs.fileSet("quarkus-dependency-checksums", context.getProject().getBuild().getDirectory(), fs -> fs
.include("quarkus-*-dependency-checksums.txt").normalizationStrategy(NormalizationStrategy.RELATIVE_PATH));
});
});
}

private static void configureGenerateCode(MojoMetadataProvider.Context context) {
Expand All @@ -48,7 +51,10 @@ private static void configureCommonGeneratedCode(MojoMetadataProvider.Context co
dependsOnJavaVersion(inputs);

inputs.properties("skipSourceGeneration", "mode", "properties", "bootstrapId");
inputs.fileSet("dependency-checksums", context.getProject().getBuild().getDirectory(), fileSet -> fileSet
inputs.fileSet("quarkus-dependencies", context.getProject().getBuild().getDirectory(), fs -> fs
.include("quarkus-*-dependencies.txt").normalizationStrategy(NormalizationStrategy.CLASSPATH));
// for compatibility with older versions but this is deprecated
inputs.fileSet("quarkus-dependency-checksums", context.getProject().getBuild().getDirectory(), fs -> fs
.include("quarkus-*-dependency-checksums.txt").normalizationStrategy(NormalizationStrategy.RELATIVE_PATH));
inputs.fileSet("resources", context.getProject().getResources().stream().map(r -> r.getDirectory())
.collect(Collectors.toList()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ protected Map<String, GoalMetadataProvider> getGoalMetadataProviders() {

private static void configureTest(MojoMetadataProvider.Context context) {
context.inputs(inputs -> {
inputs.fileSet("dependency-checksums", context.getProject().getBuild().getDirectory(), fs -> fs
inputs.fileSet("quarkus-dependencies", context.getProject().getBuild().getDirectory(), fs -> fs
.include("quarkus-*-dependencies.txt").normalizationStrategy(NormalizationStrategy.CLASSPATH));
// for compatibility with older versions but this is deprecated
inputs.fileSet("quarkus-dependency-checksums", context.getProject().getBuild().getDirectory(), fs -> fs
.include("quarkus-*-dependency-checksums.txt").normalizationStrategy(NormalizationStrategy.RELATIVE_PATH));
});

Expand Down

0 comments on commit be41f09

Please sign in to comment.