<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Google Api auth libraries problem</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111239449" />
  <subtitle>Google Api auth libraries problem</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111239449</id>
  <updated>2026-04-05T20:45:13Z</updated>
  <dc:date>2026-04-05T20:45:13Z</dc:date>
  <entry>
    <title>RE: Google Api auth libraries problem</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112117365" />
    <author>
      <name>Asier Hernández</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112117365</id>
    <updated>2019-01-24T11:50:44Z</updated>
    <published>2019-01-24T11:50:44Z</published>
    <summary type="html">&lt;p&gt;Hi there, &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am also having problems with this library inside my portlet:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;span style="color: rgb(0,0,255);"&gt;
    &lt;em&gt;compileInclude group: 'com.google.oauth-client', name:
      'google-oauth-client-jetty', version: '1.24.1'&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Could you solve this conflict with Liferay?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;</summary>
    <dc:creator>Asier Hernández</dc:creator>
    <dc:date>2019-01-24T11:50:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Google Api auth libraries problem</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111275970" />
    <author>
      <name>Raffaele Guasco</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111275970</id>
    <updated>2018-10-22T15:56:46Z</updated>
    <published>2018-10-22T15:56:46Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Tomas,&lt;br&gt;&lt;br&gt;many thanks for your suggestion.&lt;br&gt;&lt;br&gt;Unfortunately, it doesn't work.&lt;br&gt;I'm really thinking that the problem could&amp;nbsp;be any conflict with all the libraries that I 'm using.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;dependencies {
   compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
   compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
   compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0"
   compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"
   compileOnly group: "jstl", name: "jstl", version: "1.2"
   compileOnly group: "org.osgi", name: "osgi.cmpn", version: "6.0.0"
   compileOnly group: 'org.apache.servicemix.bundles', name: 'org.apache.servicemix.bundles.javax.mail', version: '1.4.1_5'


   // https://mvnrepository.com/artifact/com.google.apis/google-api-services-oauth2
   compileInclude group: 'com.google.apis', name: 'google-api-services-oauth2', version: 'v2-rev131-1.23.0'

   // https://mvnrepository.com/artifact/com.google.oauth-client/google-oauth-client-jetty
   compileInclude group: 'com.google.oauth-client', name: 'google-oauth-client-jetty', version: '1.25.0'

}&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Raffaele Guasco</dc:creator>
    <dc:date>2018-10-22T15:56:46Z</dc:date>
  </entry>
  <entry>
    <title>RE: Google Api auth libraries problem</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111273374" />
    <author>
      <name>Tomáš Polešovský</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111273374</id>
    <updated>2018-10-22T13:08:21Z</updated>
    <published>2018-10-22T13:08:21Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;by saying &amp;#34;compileOnly&amp;#34; you make the dependencies compile only. It means you expect them to be present in the runtime, provided by someone else.&lt;br /&gt;&lt;br /&gt;I think portal doesn&amp;#39;t provide those libraries OOTB. Try to use &amp;#34;compileInclude&amp;#34; to package the libraries into your project.&lt;br /&gt;&lt;br /&gt;​​​​​​​-- tom +</summary>
    <dc:creator>Tomáš Polešovský</dc:creator>
    <dc:date>2018-10-22T13:08:21Z</dc:date>
  </entry>
  <entry>
    <title>Google Api auth libraries problem</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111239448" />
    <author>
      <name>Raffaele Guasco</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111239448</id>
    <updated>2018-10-18T16:53:51Z</updated>
    <published>2018-10-18T16:53:51Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi to all,&lt;br&gt;&lt;br&gt;I'm developing a home page that tries to access the portal using the Google authorization.&lt;br&gt;Unfortunately, I'm having a problem&amp;nbsp;with the libraries.&amp;nbsp;&lt;br&gt;in the specific (in gradle)&lt;br&gt;these&amp;nbsp;are&amp;nbsp;&lt;pre&gt;&lt;code&gt;    // https://mvnrepository.com/artifact/com.google.apis/google-api-services-oauth2
   compileOnly group: 'com.google.apis', name: 'google-api-services-oauth2', version: 'v2-rev131-1.23.0'

// https://mvnrepository.com/artifact/com.google.oauth-client/google-oauth-client-jetty
   compileOnly group: 'com.google.oauth-client', name: 'google-oauth-client-jetty', version: '1.25.0'&lt;/code&gt;&lt;/pre&gt; The problem is that I can't deploy(probably they are not compliant with osgi&amp;nbsp;module).&lt;br&gt;Does someone know how can I solve this problem?&lt;br&gt;Are there any alternative libraries?&lt;br&gt;The Liferay&amp;nbsp;version is 7.0&lt;br&gt;&lt;br&gt;Many thanks.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Raffaele Guasco</dc:creator>
    <dc:date>2018-10-18T16:53:51Z</dc:date>
  </entry>
</feed>
