Skip to content

Commit

Permalink
build: fix build (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt authored Jan 20, 2025
1 parent 65f5d3c commit e63dcc4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@ jobs:
uses: eclipse-edc/.github/.github/workflows/codeql-analysis.yml@main
secrets: inherit

Checkstyle:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: eclipse-edc/.github/.github/actions/setup-build@main
- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest

Unit-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: eclipse-edc/.github/.github/actions/setup-build@main
- name: Run unit tests
run: ./gradlew test
- name: Build
run: ./gradlew build
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.eclipse.edc.plugins.autodoc.AutodocExtension;
import org.gradle.api.DefaultTask;
import org.gradle.api.artifacts.Dependency;
import org.gradle.api.tasks.Internal;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.api.tasks.TaskAction;
import org.gradle.api.tasks.options.Option;
Expand Down Expand Up @@ -82,6 +82,11 @@ public File getOutputFile() {
return downloadDirectory.toFile();
}

@Input
public Set<String> getExclusions() {
return Set.of();
}

/**
* Whether to consider a particular dependency for manifest resolution.
*
Expand All @@ -95,15 +100,8 @@ protected boolean includeDependency(Dependency dependency) {
/**
* Returns an {@link InputStream} that points to the physical location of the autodoc manifest file.
*/
@Internal //otherwise it would get interpreted as task input :/
protected abstract InputStream resolveManifest(DependencySource autodocManifest);

@Internal //otherwise it would get interpreted as task input :/
protected Set<String> getExclusions() {
return Set.of();
}

@Internal //otherwise it would get interpreted as task input :/
protected abstract Optional<DependencySource> createSource(Dependency dependency);

private void transferDependencyFile(DependencySource dependencySource, Path downloadDirectory) {
Expand Down

0 comments on commit e63dcc4

Please sign in to comment.