new g2dgl module

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

new g2dgl module

Brandon Borkholder
What's the process for getting the new glg2d (https://github.com/brandonborkholder/glg2d/) module in JOGL?  It looks like all the modules sit on github, but I'm sure there are some issues with setting up my project so it packages like other jogamp modules.
Reply | Threaded
Open this post in threaded view
|

Re: new g2dgl module

Sven Gothel
Administrator
On 02/15/2012 07:22 PM, Brandon Borkholder [via jogamp] wrote:
>
>
> What's the process for getting the new glg2d (
> https://github.com/brandonborkholder/glg2d/
> https://github.com/brandonborkholder/glg2d/ ) module in JOGL?  It looks like
> all the modules sit on github, but I'm sure there are some issues with
> setting up my project so it packages like other jogamp modules.

Hmm, right - I haven't written a recipe for that yet.
Looking at JOAL may help (all the environment variables etc, artifacts,
resulting 7z files) etc.

If you could give it a try to mimic eg JOAL's build convention
- that would help a lot.

Otherwise, I would need to do that :(
:)

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: new g2dgl module

Brandon Borkholder
Since my library doesn't have any native libs, I guess there are 4
different artifacts that I should produce.
 * compiled jar
 * demos jar
 * source jar
 * javadoc jar

That shouldn't be too hard, although I'll have to figure out all the
different ways things are bundled.  I'll take a look this weekend.

Is there an effort to start publishing maven artifacts?  Every now and
then I see someone ask or volunteer, but it never seems to go up on
Maven central.
Reply | Threaded
Open this post in threaded view
|

Re: new g2dgl module

Sven Gothel
Administrator
On 02/17/2012 05:21 PM, Brandon Borkholder [via jogamp] wrote:

>
>
> Since my library doesn't have any native libs, I guess there are 4
> different artifacts that I should produce.
>  * compiled jar
>  * demos jar
>  * source jar
>  * javadoc jar
>
> That shouldn't be too hard, although I'll have to figure out all the
> different ways things are bundled.  I'll take a look this weekend.
Thank you. I hope I will be available to help you out here.

Maybe you like to update your website a bit .. then we can publish your module
on 'jogl projects' as well.

>
> Is there an effort to start publishing maven artifacts?  Every now and
> then I see someone ask or volunteer, but it never seems to go up on
> Maven central.

You are right .. and I have hesitated too long getting into it.
All I have read now and know is we have some scripts to create some pom
dependencies and it might be possible to push them to maven central.

Do I need a special account ? Do you know how to do it best ?
Seems like it would make life easier for application developers indeed.
Will further dig into this matter this weekend.

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: new g2dgl module

Brandon Borkholder
I wrote a pom for Eclipse SWT for my company not too long ago.  SWT is similar to JOGL 2.x.  Since it has different jars for each platform, you want to be able to depend on a single pom and have the correct native library dependency pulled in.  I wrote a single pom that used profiles to determine which platform jar you needed.  Then each platform has a pom also.

You can either depend on a specific platform pom, or just the generic SWT pom and it get the right jar for your platform.  I can show you an example if you're interested.

And yes, my website needs some significant updating :)
Reply | Threaded
Open this post in threaded view
|

Re: new g2dgl module

Sven Gothel
Administrator
On 02/17/2012 05:43 PM, Brandon Borkholder [via jogamp] wrote:

>
>
> I wrote a pom for Eclipse SWT for my company not too long ago.  SWT is
> similar to JOGL 2.x.  Since it has different jars for each platform, you
> want to be able to depend on a single pom and have the correct native
> library dependency pulled in.  I wrote a single pom that used profiles to
> determine which platform jar you needed.  Then each platform has a pom also.
>
> You can either depend on a specific platform pom, or just the generic SWT
> pom and it get the right jar for your platform.  I can show you an example
> if you're interested.
Yes please ..
I also read a bit about having an 'external' repository (eg. jogamp's server)
or the maven central. So I would like to offer both.
The bleeding edge from our server .. and the RC's (SNAPSHOT) and actual later
release on maven central. Advise ?

>
> And yes, my website needs some significant updating :)

Maybe a snapshot and updated description :)

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: new g2dgl module

Brandon Borkholder
> I wrote a pom for Eclipse SWT for my company not too long ago.  SWT is
> similar to JOGL 2.x.  Since it has different jars for each platform, you
> want to be able to depend on a single pom and have the correct native
> library dependency pulled in.  I wrote a single pom that used profiles to
> determine which platform jar you needed.  Then each platform has a pom also.
>
> You can either depend on a specific platform pom, or just the generic SWT
> pom and it get the right jar for your platform.  I can show you an example
> if you're interested.
Yes please ..
I also read a bit about having an 'external' repository (eg. jogamp's server)
or the maven central. So I would like to offer both.
The bleeding edge from our server .. and the RC's (SNAPSHOT) and actual later
release on maven central. Advise ?

I think that's a good idea.  It gives you more control over the snapshots, but makes the releases easier to download for the public.

I attached two files.  One is the main SWT pom that refers to all the platform-specific poms.  The other is an example of a platform-specific pom.

swt-3.6.2.pom (5K) Download Attachment
swt-win32-win32-x86-3.6.2.pom (536 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: new g2dgl module

Brandon Borkholder
In reply to this post by Sven Gothel
Ok, I spent some time this weekend and updated my site (http://brandonborkholder.github.com/glg2d/).  I also updated the maven configuration to get as close to the JOAL build as I could.  It was hard to follow the build, but since I'm not building any native libs, I just had 3 artifacts to output:
  • binary jar
  • source archive
  • javadoc jar
The manifest looks like this
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: borkholder
Build-Jdk: 1.7.0
Implementation-Branch: master
Implementation-Commit: 7378f76f4e2c79d5a4682e6e72028543e477e522
Implementation-Title: GLG2D
Implementation-URL: http://brandonborkholder.github.com/glg2d/
Implementation-Vendor: JogAmp Community
Implementation-Vendor-Id: com.jogamp
Implementation-Version: 0.1-SNAPSHOT
 
All the jars are automatically built with maven.

Reply | Threaded
Open this post in threaded view
|

Re: new g2dgl module

Sven Gothel
Administrator
On 02/20/2012 09:57 PM, Brandon Borkholder [via jogamp] wrote:

>
>
> Ok, I spent some time this weekend and updated my site (
> http://brandonborkholder.github.com/glg2d/)<http://brandonborkholder.github.com/glg2d/>.
> I also updated the maven configuration to get as close to the JOAL build as
> I could.  It was hard to follow the build, but since I'm not building any
> native libs, I just had 3 artifacts to output:
>
>    - binary jar
>    - source archive
>    - javadoc jar
>
> The manifest looks like this
>
>> Manifest-Version: 1.0
>> Archiver-Version: Plexus Archiver
>> Created-By: Apache Maven
>> Built-By: borkholder
>> Build-Jdk: 1.7.0
>> Implementation-Branch: master
>> Implementation-Commit: 7378f76f4e2c79d5a4682e6e72028543e477e522
>> Implementation-Title: GLG2D
>> Implementation-URL: http://brandonborkholder.github.com/glg2d/
>> Implementation-Vendor: JogAmp Community
>> Implementation-Vendor-Id: com.jogamp
>> Implementation-Version: 0.1-SNAPSHOT
>>
>
Awesome, thank you very much Brandon.


> All the jars are automatically built with maven.

I will look into it as soon the new pandaboard goes online (jenkins).

Looks like maven is next :) .. good stuff.

~Sven


signature.asc (910 bytes) Download Attachment