0

I have a class that does a lot of string manipulation that I originally wrote in Java. After playing around with Groovy, I think it would be easier to make this a seperate project that I write in Groovy and compile. I then want to upload it to the Maven repositoy and then include it back in the first project as a dependency in my POM file. This seems like it would be easier than trying to use the Bean Scripting Framework and keep everything in one project.

I know that you can compile Groovy code to a jar file (see this SO thread). After reading the Central Sync Requirements and the Guide to uploading artifacts to the central repository I haven't seen anything that said that it wouldn't work. However, I'd like to avoid starting down this path just to find out that it was a waste of time.

Community
  • 1
  • 1
j.jerrod.taylor
  • 1,120
  • 1
  • 13
  • 33

1 Answers1

0

Sure you can, there are already plenty of Groovy projects on Maven Central, like http-builder and of course, Groovy itself!

Dónal
  • 185,044
  • 174
  • 569
  • 824