Skip to content
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

$ gradle check in the CI on GitHubAction failed #30

Open
kazurayam opened this issue Dec 16, 2022 · 3 comments
Open

$ gradle check in the CI on GitHubAction failed #30

kazurayam opened this issue Dec 16, 2022 · 3 comments

Comments

@kazurayam
Copy link
Owner

https://scans.gradle.com/s/iuprh6cyetr3e/tests/:functionalTest/com.kazurayam.inspectus.gradle.KatalonDriverPluginFunctionalTest/test%20drivers%20task?top-execution=1

* What went wrong: |  
-- | --
  | Execution failed for task ':drivers'. |  
  | > Could not resolve all files for configuration ':Inspectus'. |  
  | > Could not find com.kazurayam:inspectus:0.8.1. |  
  | Searched in the following locations: |  
  | - https://repo.maven.apache.org/maven2/com/kazurayam/inspectus/0.8.1/inspectus-0.8.1.pom |  
  | - file:/home/runner/.m2/repository/com/kazurayam/inspectus/0.8.1/inspectus-0.8.1.pom |  
  | Required by: |  
  | project :

In the CI environment, the inspectus4katalon Gradle plugin can not find the inspectus-0.8.1 either in

  • Maven Central
  • Maven Local

Well, I haven't published the inspectus-0.8.1 to the Maven Centrol. So, it is understandable that the insputus4katalon plugin can not find the inspectus-0.8.1.

@kazurayam
Copy link
Owner Author

kazurayam commented Dec 16, 2022

I have publishted the inspectus-0.8.1 to GitHub Packages. It is available at

However, the inspectus4katalon plugin can not access to the repository on GitHub Package.

Why?

Because as, the source code https://github.com/kazurayam/inspectus4katalon-gradle-plugin/blob/master/src/main/groovy/com/kazurayam/inspectus/gradle/KatalonDriversPlugin.groovy shows, the plugin only refers to

  • Maven Central
  • Mevan Local

but not

  • my Maven repos on GitHub Packages
        project.repositories({
            mavenCentral()
            mavenLocal()
        })

@kazurayam
Copy link
Owner Author

The only solution seem to be publishing the inspectus 0.8.1 to the Maven Central repository.

@kazurayam
Copy link
Owner Author

Or, it might be a poor idea to test a Custom Gradle plugin in the CI environment of GitHub Actions.

Just stop testing it on GitHub Actions.

Then the difficulty vanishes, doesn't it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant