|
| 1 | +/* |
| 2 | + * Copyright 2019 - 2021 Andre601 |
| 3 | + * |
| 4 | + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated |
| 5 | + * documentation files (the "Software"), to deal in the Software without restriction, including without limitation |
| 6 | + * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, |
| 7 | + * and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
| 8 | + * |
| 9 | + * The above copyright notice and this permission notice shall be included in all copies or substantial |
| 10 | + * portions of the Software. |
| 11 | + * |
| 12 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
| 13 | + * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 14 | + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 15 | + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE |
| 16 | + * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 17 | + */ |
| 18 | + |
| 19 | +package org.botblock.javabotblockapi.core; |
| 20 | + |
| 21 | +/** |
| 22 | + * Class containing general information about the project. |
| 23 | + * |
| 24 | + * <p>The class can be used for things such as determining the {@link #VERSION used version} or to get some static info |
| 25 | + * like the {@link #GITHUB GitHub} or {@link #JENKINS Jenkins CI} URL. |
| 26 | + * |
| 27 | + * @since 6.6.0 |
| 28 | + */ |
| 29 | +public class Info{ |
| 30 | + |
| 31 | + /** |
| 32 | + * Major version of the Wrapper. |
| 33 | + */ |
| 34 | + public static final int MAJOR = 6; |
| 35 | + /** |
| 36 | + * Minor version of the Wrapper. |
| 37 | + */ |
| 38 | + public static final int MINOR = 6; |
| 39 | + /** |
| 40 | + * Patch version of the Wrapper. |
| 41 | + */ |
| 42 | + public static final int PATCH = 0; |
| 43 | + |
| 44 | + /** |
| 45 | + * Full version in the format {@code major.minor.patch}. |
| 46 | + */ |
| 47 | + public static final String VERSION = String.format("%d.%d.%d", MAJOR, MINOR, PATCH); |
| 48 | + |
| 49 | + /** |
| 50 | + * URL to the GitHub repository. |
| 51 | + */ |
| 52 | + public static final String GITHUB = "https://github.com/botblock/JavaBotBlockAPI"; |
| 53 | + |
| 54 | + public static final String JENKINS = "https://ci.codemc.io/job/botblock/job/JavaBotBlockAPI"; |
| 55 | +} |
0 commit comments