Jannyboy11 / ScalaPluginLoader

PluginLoader for Bukkit that provides Scala runtime classes and enhanced APIs.
https://www.spigotmc.org/resources/scalaloader.59568/
GNU Lesser General Public License v3.0
26 stars 10 forks source link

Towards a plugin.yml-less future - provide build definition properties to the source code. #9

Open Jannyboy11 opened 3 years ago

Jannyboy11 commented 3 years ago

As mentioned in https://github.com/Jannyboy11/ScalaPluginLoader/issues/7#issue-941167547, If the plugin.yml is to be replaced by a better plugin definition system in the code, then at least the project properties from the build files (such as pom.xml, build.sbt) should be available to the source code. (e.g. ${project.version}) This is best done using plugins for those buildsystems. For SBT there is https://github.com/sbt/sbt-buildinfo, but for Maven I'm not aware of such a plugin (I haven't really searched a lot either tbf..). Either I need to find such a Maven plugin or create one myself. There is one more feature that needs to be addressed, which is library loading, which currently can't be done any other way than in the plugin.yml. For a detailed explaination of what this system should be able to do, please refer to https://github.com/Jannyboy11/ScalaPluginLoader/issues/4#issuecomment-800145058 It would be very cool if these extra thirdparty library definitions could also be read from the build definition.