SpiceIt Parent

SpiceIt is a collection of nice, easy to use features to make your code spicier.

Лицензия

Лицензия

Группа

Группа

gg.neko.spiceit
Идентификатор

Идентификатор

spiceit-parent
Последняя версия

Последняя версия

0.1
Дата

Дата

Тип

Тип

pom
Описание

Описание

SpiceIt Parent
SpiceIt is a collection of nice, easy to use features to make your code spicier.
Ссылка на сайт

Ссылка на сайт

https://github.com/neko-gg/spiceit
Система контроля версий

Система контроля версий

https://github.com/neko-gg/spiceit

Скачать spiceit-parent

Имя Файла Размер
spiceit-parent-0.1.pom 20 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/gg.neko.spiceit/spiceit-parent/ -->
<dependency>
    <groupId>gg.neko.spiceit</groupId>
    <artifactId>spiceit-parent</artifactId>
    <version>0.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/gg.neko.spiceit/spiceit-parent/
implementation 'gg.neko.spiceit:spiceit-parent:0.1'
// https://jarcasting.com/artifacts/gg.neko.spiceit/spiceit-parent/
implementation ("gg.neko.spiceit:spiceit-parent:0.1")
'gg.neko.spiceit:spiceit-parent:pom:0.1'
<dependency org="gg.neko.spiceit" name="spiceit-parent" rev="0.1">
  <artifact name="spiceit-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='gg.neko.spiceit', module='spiceit-parent', version='0.1')
)
libraryDependencies += "gg.neko.spiceit" % "spiceit-parent" % "0.1"
[gg.neko.spiceit/spiceit-parent "0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • spiceit-api
  • spiceit-injector
  • spiceit-maven-plugin
  • spiceit-agent
  • spiceit-example-parent
  • spiceit-report-aggregator

SpiceIt

A collection of nice, easy to use features to make your code spicier.

Build Status Coveralls github branch LGTM Grade GitHub nyan

With SpiceIt, this class: example class

produces this output: example output

Getting started

SpiceIt features are exposed by the API module: go on and import it as a Maven dependency:

<dependency>
    <groupId>gg.neko.spiceit</groupId>
    <artifactId>spiceit-api</artifactId>
    <version>0.1</version>
</dependency>

Making it work

SpiceIt needs to inject its magic into your bytecode.
It can do so with either its Maven plugin or its Java agent.

  • Maven plugin
    add this plugin to your pom.xml plugins section:
    <plugin>
        <groupId>gg.neko.spiceit</groupId>
        <artifactId>spiceit-maven-plugin</artifactId>
        <version>0.1</version>
        <executions>
            <execution>
                <goals>
                    <goal>spiceit</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
  • Java agent
    download the agent from Maven Central Repository (or compile it from source, if that's your thing) and launch your application with this option:
    -javaagent:spiceit-agent-0.1-jar-with-dependencies.jar

Check out the example projects making use of Maven plugin and Java agent.

Available features

Here are the spicy features!

  • LogIt logs methods entry, exit and error
  • TimeIt logs methods execution time

More coming soon™ 😎

Transitive dependencies

Just SLF4J for logging, already provided by SpiceIt API module.
Since it's a simple façade for various logging framework, you can choose your favorite implementation, e.g. logback or log4j.

License

Licensed under the MIT License.

Версии библиотеки

Версия
0.1