libgdx / gdx-jnigen

jnigen is a small library that can be used with or without libGDX which allows C/C++ code to be written inline with Java source code.
Apache License 2.0
59 stars 26 forks source link

Add marker artifact to gradle plugin #59

Closed fourlastor closed 5 months ago

fourlastor commented 5 months ago

Closes #58

This PR adds the java-gradle-plugin to the project, and sets up an ID for the plugin (I put something I thought might make sense, but I'm happy to change it to whatever).

As a side effect, this will add an extra publication in the form of a gradle marker artifact which will allow using this plugin by referring to its ID.


plugins {
  id 'com.badlogicgames.gdx.gdx-jnigen'
}

The plugin properties file has been removed as the java-gradle-plugin plugin already generates it.

I tested this only using publishToMavenLocal and it created all the publications for me - not sure how to test it elsewhere:

image