GithubHelp home page GithubHelp logo

wrappy's Introduction

wrappy

build codecov Known Vulnerabilities License

A wrapper to simplify the usage of configurate.

Supported formats

  • Yaml
  • Json
  • Hocon
  • XML

Build Artifacts

Build artifacts are hosted via Jitpack.

Setting up as a dependency

Gradle

repositories {
	mavenCentral()
	maven { url 'https://jitpack.io' }
}

compile 'com.github.clubobsidian:wrappy:4.1.0'

Maven

<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>

<dependency>
	<groupId>com.github.clubobsidian</groupId>
	<artifactId>wrappy</artifactId>
	<version>4.1.0</version>
</dependency>

Dependencies

Development

Eclipse

  1. Git clone the project
  2. Generate eclipse files with gradlew eclipse
  3. Import project
  4. Right click project -> Add gradle nature

Intellij

  1. Git clone the project
  2. Generate intellij files with gradlew idea
  3. Import project

Building

gradlew build

wrappy's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar magicmq avatar virustotalop avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

magicmq

wrappy's Issues

Throw better error if holder is null when injecting

[02:18:59] [Server thread/ERROR]: Error occurred while enabling HazardousStats v1.0.0-SNAPSHOT (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "this.injectInto" is null
	at com.github.hazardousmc.stats.shaded.wrappy.inject.ConfigurationInjector.inject(ConfigurationInjector.java:44) ~[HazardousStats-1.0.0-SNAPSHOT.jar:?]
	at com.github.hazardousmc.stats.shaded.wrappy.inject.ConfigurationInjector.inject(ConfigurationInjector.java:60) ~[HazardousStats-1.0.0-SNAPSHOT.jar:?]
	at com.github.hazardousmc.stats.shaded.wrappy.inject.ConfigurationInjector.inject(ConfigurationInjector.java:60) ~[HazardousStats-1.0.0-SNAPSHOT.jar:?]
	at com.github.hazardousmc.stats.shaded.wrappy.ConfigurationSection.inject(ConfigurationSection.java:271) ~[HazardousStats-1.0.0-SNAPSHOT.jar:?]
	at com.github.hazardousmc.stats.shaded.wrappy.ConfigurationSection.inject(ConfigurationSection.java:266) ~[HazardousStats-1.0.0-SNAPSHOT.jar:?]
	at com.github.hazardousmc.stats.HazardousStatsPlugin.onEnable(HazardousStatsPlugin.java:55) ~[HazardousStats-1.0.0-SNAPSHOT.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:188) ~[paper-1.20.4.jar:git-Paper-430]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.20.4.jar:git-Paper-430]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:639) ~[paper-1.20.4.jar:git-Paper-430]
	at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:550) ~[paper-1.20.4.jar:git-Paper-430]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:671) ~[paper-1.20.4.jar:git-Paper-430]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:431) ~[paper-1.20.4.jar:git-Paper-430]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:309) ~[paper-1.20.4.jar:git-Paper-430]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1131) ~[paper-1.20.4.jar:git-Paper-430]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[paper-1.20.4.jar:git-Paper-430]
	at java.lang.Thread.run(Thread.java:1583) ~[?:?]
	```

Add path to configuration section

Allow the configuration section be aware of it's "name" that is parsed from the config. Root should always be null as "root" may be ambiguous.

Full path would be better.

Jdk10+ travis builds fail

Jdk10+ travis builds fail due to a certificate error when accessing sponge repos. Should be investigated.

Comments in yaml files while saving

Add support for comments in yaml files while saving. Configurate will likely need to be forked or changes will need to be made in upstream. Snakeyaml should be investigated further to see if this is even possible.

Create a way to save a config as a different file

It would be very useful if you are able to save a configuration as a different file.

Would be very useful if you load a configuration from a url to use as a default config file then save it as a file.

createSection

Add an option to configuration to create a configuration section with a given path.

Rewrite tests

Rewrite test so that each tests is run on each individual configuration format. This may be able to be done with junit runners or something similar.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.