Skip to content

Commit 2eb5083

Browse files
authored
Merge pull request #206 from botblock/master
Update dev branch
2 parents 2319375 + c05af91 commit 2eb5083

File tree

6 files changed

+96
-14
lines changed

6 files changed

+96
-14
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
version: 2
22
updates:
3-
- package-ecosystem: pip
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
8-
labels:
9-
- 'Type: Dependency update'
103
- package-ecosystem: github-actions
4+
target-branch: development
115
directory: "/"
126
schedule:
137
interval: daily
148
open-pull-requests-limit: 10
159
labels:
1610
- 'Type: Dependency update'
1711
- package-ecosystem: gradle
12+
target-branch: development
1813
directory: "/"
1914
schedule:
2015
interval: daily

.github/workflows/generate_javadoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
github_token: ${{ secrets.GITHUB_TOKEN }}
2727
publish_dir: ./docs
28-
commit_message: "Update Docs (${GITHUB_SHA:0:7})"
28+
commit_message: "Update Docs"
2929
generateJars:
3030
needs: [generateJavadoc]
3131
if: success()

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins{
77
id 'com.github.johnrengelman.shadow' version '5.2.0'
88
}
99

10-
def ver = new Version(major: 6, minor: 5, patch: 0)
10+
def ver = new Version(major: 6, minor: 6, patch: 1)
1111

1212
allprojects {
1313
apply plugin: 'maven-publish'
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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 = 1;
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+
}

core/src/main/java/org/botblock/javabotblockapi/core/JavaBotBlockAPIInfo.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,35 @@
1818

1919
package org.botblock.javabotblockapi.core;
2020

21+
import org.botblock.javabotblockapi.core.annotations.DeprecatedSince;
22+
import org.botblock.javabotblockapi.core.annotations.PlannedRemoval;
23+
2124
/**
2225
* Class containing static info used in other modules.
2326
* <br>Feel free to use the info shared here inside your bot if you, for example, want to share what Lib your bot
2427
* uses to post Guild count or similar.
2528
*
29+
* @deprecated Class was changed to {@link org.botblock.javabotblockapi.core.Info Info}.
30+
*
2631
* @since 6.4.0
2732
*/
33+
@Deprecated
34+
@DeprecatedSince(major = 6, minor = 6, patch = 0, replacements = {"Info.java"})
35+
@PlannedRemoval(major = 6, minor = 6, patch = 2)
2836
public class JavaBotBlockAPIInfo{
2937

3038
/**
3139
* Major version of the Wrapper.
3240
*/
33-
public static final String MAJOR = "6";
41+
public static final String MAJOR = String.valueOf(Info.MAJOR);
3442
/**
3543
* Minor version of the Wrapper.
3644
*/
37-
public static final String MINOR = "4";
45+
public static final String MINOR = String.valueOf(Info.MINOR);
3846
/**
3947
* Patch version of the Wrapper.
4048
*/
41-
public static final String PATCH = "2";
49+
public static final String PATCH = String.valueOf(Info.PATCH);
4250

4351
/**
4452
* Full version in the format {@code major.minor.patch}.

core/src/main/java/org/botblock/javabotblockapi/core/Site.java

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
package org.botblock.javabotblockapi.core;
2020

21+
import org.botblock.javabotblockapi.core.annotations.DeprecatedSince;
22+
import org.botblock.javabotblockapi.core.annotations.PlannedRemoval;
23+
2124
import java.util.ArrayList;
2225
import java.util.Arrays;
2326
import java.util.List;
@@ -108,9 +111,14 @@ public class Site{
108111
* <li>GET</li>
109112
* </ul>
110113
*
114+
* @deprecated Site no longer available.
115+
*
111116
* @since 6.4.1
112117
*/
113-
public static final Site BOTS_DISTOP_XYZ = new Site("bots.distop.xyz", HttpMethod.POST);
118+
@Deprecated
119+
@DeprecatedSince(major = 6, minor = 6, patch = 1)
120+
@PlannedRemoval(major = 6, minor = 6, patch = 3)
121+
public static final Site BOTS_DISTOP_XYZ = new Site("bots.distop.xyz");
114122

115123
/**
116124
* <a href="https://botsfordiscord.com" target="_blank">botsfordiscord.com</a>
@@ -131,8 +139,13 @@ public class Site{
131139
* <li>GET</li>
132140
* <li>POST</li>
133141
* </ul>
142+
*
143+
* @deprecated Site no longer available.
134144
*/
135-
public static final Site BOTS_IDLEDEV_ORG = new Site("bots.idledev.org", HttpMethod.GET, HttpMethod.POST);
145+
@Deprecated
146+
@DeprecatedSince(major = 6, minor = 6, patch = 1)
147+
@PlannedRemoval(major = 6, minor = 6, patch = 3)
148+
public static final Site BOTS_IDLEDEV_ORG = new Site("bots.idledev.org");
136149

137150
/**
138151
* <a href="https://bots.ondiscord.xyz" target="_blank">bots.ondiscord.xyz</a>
@@ -255,6 +268,17 @@ public class Site{
255268
*/
256269
public static final Site DISFORGE_COM = new Site("disforge.com", HttpMethod.POST);
257270

271+
/**
272+
* <a href="https://fasteslist.xyz" target="_blank">fateslist.xyz</a>
273+
*
274+
* <p>Supported methods:
275+
* <ul>
276+
* <li>GET</li>
277+
* <li>POST</li>
278+
* </ul>
279+
*/
280+
public static final Site FATESLIST_XYZ = new Site("fateslist.xyz", HttpMethod.GET, HttpMethod.POST);
281+
258282
/**
259283
* <a href="https://infinitybotlist.com" target="_blank">infinitybotlist.com</a>
260284
*

0 commit comments

Comments
 (0)