Skip to content
/ faygo Public

👀 Maven Shade Plugin、本当に必要でしょうか?

License

Notifications You must be signed in to change notification settings

2mug1/faygo

Repository files navigation

faygo

依存関係を書き出さなくても、ダウンロードすることで使用できるようにするライブラリ

Getting Started

インストール

pom.xml

<repository>
    <id>github</id>
    <name>faygo</name>
    <url>https://maven.pkg.github.com/2mug1/faygo</url>
</repository>

<dependency>
  <groupId>me.hyperbone</groupId>
  <artifactId>faygo</artifactId>
  <version>1.0.2</version>
  <scope>compile</scope>
</dependency>

build.gradle

repositories {
  maven (url = "https://maven.pkg.github.com/2mug1/faygo")
}
dependencies {
  implementation("me.hyperbone:faygo:1.0.2")
}

コード例

public class Example extends JavaPlugin {

    @Override
    public void onEnable() {
        new Faygo(this).getDependencyBuilder()
                .add(new Dependency(
                        Repository.MAVENCENTRAL,
                        "redis.clients",
                        "jedis",
                        "4.3.0"))
                .add(new Dependency(
                        "https://libraries.minecraft.net",
                        "com.mojang",
                        "brigadier",
                        "1.0.18"))
                .load();
    }
}

LICENSE

MIT License (© 2022 mirusms)

About

👀 Maven Shade Plugin、本当に必要でしょうか?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages