[JAVA] I tried using the GitHub repository as a library server

What does that mean in the first place

When I was developing a plug-in for server software for Minecraft BE called Nukkit, I faced the problem of how to download the prerequisite plug-in when distributing the plug-in.

The idea was to list the prerequisite plugins on GitHub and download them from the plugins you distribute.

I actually tried it, so I hope you can read it as an experience story.

How did you do it

I created a GitHub repository and prepared a Json file called doc.json there. Information on each library is described here.

1.PNG

Prerequisite plugins are listed in the repository in advance.

2.PNG

Get this Json from the raw content URL like "https://raw.githubusercontent.com/" from the plugin side and load it. 3.PNG

Then search for the name of the prerequisite plugin you want to install in the repository section and get the download URL from the url section. 4.PNG

Based on that, I took the flow of downloading and activating the prerequisite plug-in.

Recommended Posts

I tried using the GitHub repository as a library server
I tried to implement a server using Netty
I tried using the Server Push function of Servlet 4.0
I tried using Log4j2 on a Java EE server
I tried using the CameraX library with Android Java Fragment
I tried the AutoValue library in Intellij
I tried using Docker for the first time
[API] I tried using the zip code search API
I tried setting up a Maven remote repository
I tried using the profiler of IntelliJ IDEA
I tried using Gson
I tried using TestNG
I tried using Galasa
GitHub as a storage
I tried using a database connection in Android development
I tried to decorate the simple calendar a little
I tried using the Migration Toolkit for Application Binaries
Using the database (SQL Server 2014) from a Java program 2018/01/04
I tried scraping a stock chart using Java (Jsoup)
I stumbled when I tried using neo4j in the jenv environment, so make a note
[Rails] I tried using the button_to method for the first time
I tried using azure cloud-init
I tried JAX-RS and made a note of the procedure
I tried using Hotwire to make Rails 6.1 scaffold a SPA
I tried the Docker tutorial!
I tried using Apache Wicket
Try launching a webAP server on the micro using Helidon
I tried the VueJS tutorial!
I tried to build the environment little by little using docker
I tried using Java REPL
I tried the FizzBuzz problem
[Android] [Library] I tried using an animation library called "Before After animation".
Create a simple web server with the Java standard library com.sun.net.httpserver
I tried Tribuo published by Oracle. Tribuo --A Java prediction library (v4.0)
I tried to illuminate the Christmas tree in a life game
I tried to build the environment of PlantUML Server with Docker
I tried using the cache function of Application Container Cloud Service
[Unity] I tried to make a native plug-in UniNWPathMonitor using NWPathMonitor
I tried to build a simple application using Dockder + Rails Scaffold
I tried to check the operation of gRPC server with grpcurl
[Java] I tried to make a maze by the digging method ♪
I tried to display the calendar on the Eclipse console using Java.
I tried using anakia + Jing now
I tried using Spring + Mybatis + DbUnit
I tried using JOOQ with Gradle
I tried a little digdag docker.run_options
I tried to explain the method
I tried the Java framework "Quarkus"
[Rails] I tried deleting the application
I tried using Java8 Stream API
I tried using JWT in Java
[Android] I tried using Coordinator Layout.
I tried using Pari gp container
I tried using WebAssembly Stadio (2018/4/17 version)
I tried using Java memo LocalDate
I tried using GoogleHttpClient of Java
I tried to make a sample program using the problem of database specialist in Domain Driven Design
I tried to make a simple face recognition Android application using OpenCV
A new engineer tried to publish his own library to Maven Central Repository
Creating a project (and GitHub repository) using Java and Gradle in IntelliJ IDEA
A story I was addicted to when testing the API using MockMVC