Git Product home page Git Product logo

spigot-resolver's Introduction

Spigot-Resolver

This is a small tool to create a wiki page over at spigotmc.org

These pages contain all versions of spigot you can build using buildtools (java -jar BuildTools.jar --rev ), together with the nms and bukkit (maven) version and links to the sources on stash for that version.

Legacy versions 1.8 - 1.9 - https://www.spigotmc.org/wiki/spigot-nms-and-minecraft-versions-legacy/

Versions 1.10 - 1.15 - https://www.spigotmc.org/wiki/spigot-nms-and-minecraft-versions-1-10-1-15/

Versions 1.16 and up - https://www.spigotmc.org/wiki/spigot-nms-and-minecraft-versions-1-16/

Forum Thread on spigotmc - https://www.spigotmc.org/threads/spigot-nms-and-minecraft-version-overview.233194/


How To (build from source)

To compile Spigot-Resolver you need:

  • Internet connection
  • JDK 8 or newer version of JDK

You need to

Clone this repo and run this in the project directory:

./gradlew clean build shadowjar

The program should be located in /build/libs/

To run this program you need to be in this directory and run from terminal/cmd java -jar shadow-all.jar

spigot-resolver's People

Contributors

andre601 avatar byteful avatar krolik-exe avatar minidigger avatar toffikk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spigot-resolver's Issues

Page too long

The generated page with the latest versions is too long to save to Spigot.

Wrong comparison of versions

Not sure if this is actually a bug or intentional, but I open this issue anyways.

The tool - based on the final page as of right now - seems to use the wrong previous version to compare 1.17 with 1.16, as it mentions Changes between 1.17 and 1.15 rather than Changes between 1.17 and 1.16 as shown by this screenshot.

image

The versions 1.18 and 1.19 do display the right text.

NumberFormatException on run

$ java -jar shadow-all.jar
Skipping snapshot 1.18-pre5
Skipping snapshot 1.14.3-pre4
Skipping snapshot 1.14-pre5
Skipping snapshot 1.13-pre7
Skipping snapshot 1.18-pre8
Exception in thread "main" java.lang.NumberFormatException: For input string: "18-rc3"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.parseInt(Integer.java:615)
        at me.minidigger.spigotresolver.SpigotResolver.lambda$resolve$1(SpigotResolver.java:49)
        at java.util.Comparator.lambda$comparing$77a9974f$1(Comparator.java:469)
        at java.util.Comparator.lambda$thenComparing$36697e65$1(Comparator.java:216)
        at java.util.TimSort.binarySort(TimSort.java:296)
        at java.util.TimSort.sort(TimSort.java:239)
        at java.util.Arrays.sort(Arrays.java:1438)
        at java.util.concurrent.CopyOnWriteArrayList.sort(CopyOnWriteArrayList.java:950)
        at me.minidigger.spigotresolver.SpigotResolver.resolve(SpigotResolver.java:49)
        at me.minidigger.spigotresolver.SpigotResolver.main(SpigotResolver.java:25)

Not sure if this is made to work with 1.18, so that's probably the issue.

Split up version lists into separate files

It could generally be a useful option to store the generated text into text files for the respective page for easier copy-pasting.

Also, the 1.16+ page content also contains 1.13+ versions for some odd reasons. Maybe make it only have the versions it is meant for?

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.