Hello Guest

[FIXED] Deploying lwjgl to maven central repo

  • 35 Replies
  • 35912 Views
Re: [RFE] Deploying lwjgl to maven central repo
« Reply #15 on: February 23, 2011, 23:52:01 »

*

Offline Endolf

  • ***
  • 101
    • http://www.computerbooth.com/
Re: [RFE] Deploying lwjgl to maven central repo
« Reply #16 on: February 23, 2011, 23:55:11 »
Hi

Seeing as JInput already has a maven target in it's build, would it not have been better to modify that?

Endolf

Re: [RFE] Deploying lwjgl to maven central repo
« Reply #17 on: February 24, 2011, 00:01:22 »
yes if you want I will modify that target, seeing that there was some differences like classifier of the natives and using jars instead of zips and as I didn't know if you were using the maven stuff in your projects right now I didn't want to break anything.

any other comment?

*

Offline Endolf

  • ***
  • 101
    • http://www.computerbooth.com/
Re: [RFE] Deploying lwjgl to maven central repo
« Reply #18 on: February 24, 2011, 00:03:13 »
Nope, not looked at it other than that yet :), I would suggest adding the jutils stuff to the jutils project, then removing those classes from the jinput.jar file. Rather than mixing the two. The jutils jar only ends up in jinput to make distribution easier.

Endolf

*

Offline Endolf

  • ***
  • 101
    • http://www.computerbooth.com/
Re: [RFE] Deploying lwjgl to maven central repo
« Reply #19 on: February 24, 2011, 00:09:44 »
I am using the jinput maven build in a project of mine, but I can change things if that makes sense. I would probably use net.java.games.input as the groupid as that is the package name.

Re: [RFE] Deploying lwjgl to maven central repo
« Reply #20 on: February 24, 2011, 00:16:05 »
I uses the other groupId because it matches the domain of the project in the rules for inclusion to maven central they say

the groupId of your Maven project, it must match your domain name, so com.googlecode.myprj is valid one but myprj is not

not sure if it won't be a problem to use another groupId but I have no personal problem with either one

*

Offline Endolf

  • ***
  • 101
    • http://www.computerbooth.com/
Re: [RFE] Deploying lwjgl to maven central repo
« Reply #21 on: February 24, 2011, 00:17:33 »
Ok, that makes sense.

Re: [RFE] Deploying lwjgl to maven central repo
« Reply #22 on: February 24, 2011, 21:13:26 »
Well this is attempt number 2 at the jinput patch

now the build is integrated into build.xml

the targets are
mvninstall - to install to the local repo
mvndeploy - to sign (with gpg) and deploy to a repo (currently to /tmp/m2repo)
mvndeploy-old - this allows to deploy using scp (couldn't replicate this with the new method) shouldn't be needed for the sync to maven central

Endolf it would be great if you could start creating a user and requesting access for the oss sonatype repo as explained here it will allow us to start testing snapshot deployment and deploy to the staging repo before asking for sync to maven central (requesting access takes a couple of days for them to enable it).

thanks

Re: [RFE] Deploying lwjgl to maven central repo
« Reply #23 on: February 24, 2011, 23:36:38 »
This is me again :-)

This time I have a patch for the jutils dependency of jinput to try and get that to maven central as well

it has the targets mvninstall and mvndeploy

because this project doesn't have the ant tasks included you have to add that (and the extra config to the build.xml) or add the ant tasks to .ant/lib in your home dir(in linux)


*

Offline Endolf

  • ***
  • 101
    • http://www.computerbooth.com/
Re: [RFE] Deploying lwjgl to maven central repo
« Reply #24 on: February 25, 2011, 07:27:17 »
Hi

I'll start looking at this next week hopefully. I'm helping fun a festival this weekend and it's all about to kick off :)

Cheers

Endolf

Re: [RFE] Deploying lwjgl to maven central repo
« Reply #25 on: April 27, 2011, 22:33:35 »
Mazon: would you mind applying the patch I attached in that post: http://lwjgl.org/forum/index.php/topic,3707.msg20794.html#msg20794
we talked about it some time ago, you weren't sure because it requires jdk 1.6 for the scripting, I asked endolf and he said that the build farm has jdk 1.6 and the requirement would only apply when building the maven version.

This patch would also prevent stuff like this http://lwjgl.org/forum/index.php/topic,3953.0.html from happening

and would allow me to send you the next changes needed to use the jinput version that endolf got into maven central.

thanks

*

Offline Matzon

  • *****
  • 2242
Re: [RFE] Deploying lwjgl to maven central repo
« Reply #26 on: April 28, 2011, 04:28:40 »
ok, will do this tonight CEST

*

Offline Matzon

  • *****
  • 2242
Re: [RFE] Deploying lwjgl to maven central repo
« Reply #27 on: April 28, 2011, 17:55:32 »
fixed in r3519

Re: [RFE] Deploying lwjgl to maven central repo
« Reply #28 on: September 07, 2011, 22:04:54 »
I made a new patch that should get us closer to having lwjgl in maven central ;D

This new patch:
  • uses jinput from maven central, instead of deploying
  • compares the jinput jar version with the declared maven version and aborts the build if they are different (the check can be overridden by a command line parameter)
  • changes the naming convention of how native jars declare the OS to match the ones used in jinput on maven central
  • supports install to local repo, deploy to repo, and deploy with gpg signing (needed to deploy to maven central)

One issue remaining is that the MappedObject feature in lwjgl_utils is using a version of asm that isn't released yet, and isn't in maven central, so for now it doesn't add asm as a declared dependency. This means that if someone wants to use the ljwgl maven release, and use MappedObjects, they have to add the asm library to their project.

With this patch applied, we could start talking about deploying snapshot artifacts so that people can check the nightlies using maven in an easy way, and also start talking about releasing lwjgl into maven central  :)

thanks

Re: [RFE] Deploying lwjgl to maven central repo
« Reply #29 on: September 28, 2011, 21:42:37 »
Created new patch, that adds to the build a flag -Dsnapshot=true that transform the lwjgl.version into a maven snapshot version, this would enable the hudson build server to build snapshot versions without having to specify the maven version in the hudson job config, it would just say -Dsnapshot=true and the ant build would make the transformation itself.

Also added some better logging for when there is a difference in the jinput version between the one used for the regular ant build, and the declared maven dependency.

thanks