GoogleCloudPlatform / ide-login

The plugins-login-common library for authenticating with the Google Cloud Platform shared by several IDE plugins including Google Cloud Tools for Eclipse, Google Cloud Tools for IntelliJ, and Android Studio.
Apache License 2.0
2 stars 9 forks source link

Add OSGi metadata for use within Eclipse/OSGi #12

Closed briandealwis closed 8 years ago

briandealwis commented 8 years ago

Use the Felix maven-bundle-plugin to generate OSGi metadata to allow the jar to be treated as a bundle.

PTAL @elharo

googlebot commented 8 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


briandealwis commented 8 years ago

I signed it!

googlebot commented 8 years ago

CLAs look good, thanks!

briandealwis commented 8 years ago

Generated META-INF/MANIFEST.MF (sorted for clarity):

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Login Support for Google Cloud Tools
Bundle-SymbolicName: com.google.cloud.tools.ide.login
Bundle-Version: 0.0.0.SNAPSHOT
Export-Package: com.google.cloud.tools.ide.login;uses:="com.google.api.client.auth.oauth2,com.google.api.client.googleapis.auth.oauth2,com.google.api.client.http,javax.annotation";version="0.0.0"
Import-Package: com.google.api.client.auth.oauth2,
  com.google.api.client.googleapis.auth.oauth2,
  com.google.api.client.http,
  com.google.api.client.http.javanet,
  com.google.api.client.json,
  com.google.api.client.json.jackson,
  com.google.common.collect;version="[19.0,20)",
  javax.annotation
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.5))"
Tool: Bnd-3.0.0.201509101326
Created-By: Apache Maven Bundle Plugin
Build-Jdk: 1.8.0_74
Archiver-Version: Plexus Archiver
Built-By: bsd
Bnd-LastModified: 1458678086990

Hmm, now that I think about it, I think it would be better to explicitly generate a Bundle-RequireExecutionEnvironment header too.

briandealwis commented 8 years ago

MANIFEST.MF now looks like:

Manifest-Version: 1.0
Bundle-Name: Login Support for Google Cloud Tools
Bundle-SymbolicName: com.google.cloud.tools.ide.login
Bundle-Version: 0.0.0.SNAPSHOT
Bundle-ManifestVersion: 2
Export-Package: com.google.cloud.tools.ide.login;version="0.0.0";uses:="com.google.api.client.auth.oauth2,com.google.api.client.googleapis.auth.oauth2,com.google.api.client.http,javax.annotation"
Import-Package: com.google.api.client.auth.oauth2,
  com.google.api.client.googleapis.auth.oauth2,
  com.google.api.client.http,
  com.google.api.client.http.javanet,
  com.google.api.client.json,
  com.google.api.client.json.jackson,
  com.google.common.collect;version="[19.0,20)",
  javax.annotation
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.5))"
Created-By: Apache Maven Bundle Plugin
Build-Jdk: 1.8.0_74
Archiver-Version: Plexus Archiver
Built-By: bsd
Originally-Created-By: Apache Maven Bundle Plugin
Tool: Bnd-3.0.0.201509101326
Bnd-LastModified: 1458679108447
elharo commented 8 years ago

LGTM

briandealwis commented 8 years ago

Are we squashing commits on ide-login?

elharo commented 8 years ago

Yes, we squash commits everywhere.

On Tue, Mar 22, 2016 at 7:13 PM, Brian de Alwis notifications@github.com wrote:

Are we squashing commits on die-login?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/GoogleCloudPlatform/ide-login/pull/12#issuecomment-200073804

Elliotte Rusty Harold elharo@macfaq.com