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

ci: shared config to use Airlock #1133

Closed
wants to merge 10 commits into from
Closed

Conversation

suztomo
Copy link
Member

@suztomo suztomo commented Dec 20, 2024

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Dec 20, 2024
Failed during checkstyle configuration: cannot initialize module TreeWalker - TreeWalker is not allowed as a parent of LineLength Please review 'Parent Module' section

Change-Id: I4dd3533872c0250959cb4bdcdc8f1858fb407415
Change-Id: I68942e23f895ac236d29618127355bb69bd6a84b
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Dec 20, 2024
@suztomo
Copy link
Member Author

suztomo commented Dec 20, 2024

[INFO] --- maven-bundle-plugin:5.1.8:manifest (bundle-manifest) @ google-oauth-client ---
Error:  Manifest com.google.oauth-client:google-oauth-client:jar:1.37.0 : ${version}, is not understood. too few arguments, for cmd: version, arguments; [version]
Error:  Error(s) found in manifest configuration

Command: mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true

I was getting this error after setting the shared config:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:3.3.1:jar (source-jar) on project google-oauth-client: Presumably you have configured maven-source-plugin to execute twice in your build. You have to configure a classifier for at least one of them.

Change-Id: I1affd2c6172636d17b9070283a64c0e39692190c
@suztomo
Copy link
Member Author

suztomo commented Dec 23, 2024

This approach didn't work. Output of ~/google-oauth-java-client $ mvn -X -pl google-oauth-client test -B -ntp -Dclirr.skip=true -Denforcer.skip=true for future reference:

[DEBUG] BND Manifest:
#-----------------------------------------------------------------------
Manifest-Version: 1.0
artifactId: google-oauth-client
Automatic-Module-Name: com.google.api.client.auth
Bnd-LastModified: 1734965605320
Build-Jdk-Spec: 1.8
Bundle-Description: Google OAuth Client Library for Java. Functionality 
 that works on all supported Java platforms,    including Java 7 (or hig
 her) desktop (SE) and web (EE), Android, and Google App Engine.
Bundle-DocURL: https://www.google.com/
Bundle-License: https://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-ManifestVersion: 2
Bundle-Name: Google OAuth Client Library for Java
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-SymbolicName: com.google.oauth-client
Bundle-Vendor: Google
Bundle-Version: 1.37.0
Created-By: 1.8.0_432 (Azul Systems, Inc.)
Export-Package: 
 com.google.api.client.auth.oauth;version="1.37.0";uses:="com.google.api
 .client.http,com.google.api.client.util",
 com.google.api.client.auth.oauth2;version="1.37.0";uses:="com.google.ap
 i.client.http,com.google.api.client.json,com.google.api.client.util,com
 .google.api.client.util.store",
 com.google.api.client.auth.openidconnect;version="1.37.0";uses:="com.go
 ogle.api.client.auth.oauth2,com.google.api.client.http,com.google.api.c
 lient.json,com.google.api.client.json.webtoken,com.google.api.client.ut
 il"
groupId: com.google.oauth-client
Implementation-Title: Google OAuth Client Library for Java
Implementation-Vendor: Google
Implementation-Version: 1.37.0
Import-Package: 
 com.google.api.client.auth.oauth2;version="[1.37,2)",
 com.google.api.client.http;version="[1.43,2)",
 com.google.api.client.http.javanet;version="[1.43,2)",
 com.google.api.client.json;version="[1.43,2)",
 com.google.api.client.json.gson,
 com.google.api.client.json.webtoken;version="[1.43,2)",
 com.google.api.client.util;version="[1.43,2)",
 com.google.api.client.util.escape;version="[1.43,2)",
 com.google.api.client.util.store;version="[1.43,2)",
 com.google.common.base;version="[31.1,32)",
 com.google.common.cache;version="[31.1,32)",
 com.google.common.collect;version="[31.1,32)",
 com.google.common.io;version="[31.1,32)",
 com.google.common.util.concurrent;version="[31.1,32)",
 javax.crypto,
 javax.crypto.spec
Originally-Created-By: Apache Maven Bundle Plugin 5.1.8
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.7))"
Specification-Title: Google OAuth Client Library for Java
Specification-Vendor: Google
Specification-Version: 1.37
Tool: Bnd-6.3.1.202206071316
version: 1.37.0
#-----------------------------------------------------------------------

[DEBUG] Final Manifest:
#-----------------------------------------------------------------------
Manifest-Version: 1.0
artifactId: google-oauth-client
Automatic-Module-Name: com.google.api.client.auth
Bnd-LastModified: 1734965605320
Build-Jdk-Spec: 1.8
Bundle-Description: Google OAuth Client Library for Java. Functionality 
 that works on all supported Java platforms,    including Java 7 (or hig
 her) desktop (SE) and web (EE), Android, and Google App Engine.
Bundle-DocURL: https://www.google.com/
Bundle-License: https://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-ManifestVersion: 2
Bundle-Name: Google OAuth Client Library for Java
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-SymbolicName: com.google.oauth-client
Bundle-Vendor: Google
Bundle-Version: 1.37.0
Created-By: Apache Maven Bundle Plugin 5.1.9
Export-Package: 
 com.google.api.client.auth.oauth;version="1.37.0";uses:="com.google.api
 .client.http,com.google.api.client.util",
 com.google.api.client.auth.oauth2;version="1.37.0";uses:="com.google.ap
 i.client.http,com.google.api.client.json,com.google.api.client.util,com
 .google.api.client.util.store",
 com.google.api.client.auth.openidconnect;version="1.37.0";uses:="com.go
 ogle.api.client.auth.oauth2,com.google.api.client.http,com.google.api.c
 lient.json,com.google.api.client.json.webtoken,com.google.api.client.ut
 il"
groupId: com.google.oauth-client
Implementation-Title: Google OAuth Client Library for Java
Implementation-Vendor: Google
Implementation-Version: 1.37.0
Import-Package: 
 com.google.api.client.auth.oauth2;version="[1.37,2)",
 com.google.api.client.http;version="[1.43,2)",
 com.google.api.client.http.javanet;version="[1.43,2)",
 com.google.api.client.json;version="[1.43,2)",
 com.google.api.client.json.gson,
 com.google.api.client.json.webtoken;version="[1.43,2)",
 com.google.api.client.util;version="[1.43,2)",
 com.google.api.client.util.escape;version="[1.43,2)",
 com.google.api.client.util.store;version="[1.43,2)",
 com.google.common.base;version="[31.1,32)",
 com.google.common.cache;version="[31.1,32)",
 com.google.common.collect;version="[31.1,32)",
 com.google.common.io;version="[31.1,32)",
 com.google.common.util.concurrent;version="[31.1,32)",
 javax.crypto,
 javax.crypto.spec
Originally-Created-By: Apache Maven Bundle Plugin 5.1.8
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.7))"
Specification-Title: Google OAuth Client Library for Java
Specification-Vendor: Google
Specification-Version: 1.37
Tool: Bnd-6.3.1.202206071316
version: 1.37.0
#-----------------------------------------------------------------------

[ERROR] Manifest com.google.oauth-client:google-oauth-client:jar:1.37.0 : ${version}, is not understood. too few arguments, for cmd: version, arguments; [version]
[ERROR] Error(s) found in manifest configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant