Skip to content

Commit 24ce079

Browse files
committed
4.0.0
Rename packages
1 parent c284f59 commit 24ce079

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1181
-5314
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Do the same for new paragraphs, but keep an empty line in between the text (And
5656
Please always use the full path to a class/method when using `{@link}`
5757

5858
Bad example: `{@link BotBlockAPI}`
59-
Good example: `{@link com.andre601.javabotblockapi.BotBlockAPI BotBlockAPI}`
59+
Good example: `{@link BotBlockAPI BotBlockAPI}`
6060

6161
We want to point out the alternative text used in the Good example, to display "BotBlockAPI" instead of the path.
6262
When linking to a method that is in a separate class, set the alternative text to `Class.method(option(s))`.

.github/workflows/gradle.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
bintrayApiKey: ${{ secrets.bintrayApiKey }}
2222
BUILD_NUMBER: 0 # Releases are always major.minor.revision_0
2323
run: ./gradlew bintrayUpload
24+
- name: Publish (GitHub Packages)
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
BUILD_NUMBER: 0 # Releases are always major.minor.revision_0
28+
run: ./gradlew publish
2429
sendMessage:
2530
needs: [publish]
2631
if: success()
@@ -32,7 +37,7 @@ jobs:
3237
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
3338
severity: info
3439
avatarUrl: 'https://raw.githubusercontent.com/botblock/JavaBotBlockAPI/master/src/main/resources/jbba.png'
35-
username: New release (${{ github.event.release.tag_name }})
36-
text: ${{ github.event.release.name }}
40+
username: 'New release (${{ github.event.release.tag_name }})'
41+
text: '${{ github.event.release.name }}'
3742
description: '**Release Information**'
3843
details: '${{ github.event.release.body }}'

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,6 @@ fabric.properties
9090
.idea/**/markdown-navigator.xml
9191
.idea/**/markdown-navigator/
9292

93-
# End of https://www.gitignore.io/api/intellij
93+
# End of https://www.gitignore.io/api/intellij
94+
/build/
95+
/.idea/

build.gradle

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ plugins{
77
id 'com.github.johnrengelman.shadow' version '5.2.0'
88
}
99

10-
def ver = new Version(major: 3, minor: 3, revision: 2)
10+
def ver = new Version(major: 4, minor: 0, revision: 0)
1111

12-
group = "com.andre601"
12+
group = "org.botblock"
1313
version = "$ver"
1414

1515
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -49,6 +49,30 @@ artifacts{
4949
archives javadocJar
5050
}
5151

52+
javadoc{
53+
source = sourceSets.main.allJava
54+
destinationDir = file("$projectDir/docs/")
55+
options.encoding = 'UTF-8'
56+
options.memberLevel = JavadocMemberLevel.PROTECTED
57+
58+
if(options instanceof StandardJavadocDocletOptions){
59+
def opt = options as StandardJavadocDocletOptions
60+
61+
opt.links(
62+
"https://stleary.github.io/JSON-java/",
63+
"https://ci.dv8tion.net/job/JDA/javadoc/",
64+
"https://docs.oracle.com/javase/8/docs/api/"
65+
)
66+
if(JavaVersion.current().isJava9Compatible()){
67+
opt.addBooleanOption("html5", true)
68+
opt.addStringOption("-release", "8")
69+
}
70+
if(JavaVersion.current().isJava11Compatible()){
71+
opt.addBooleanOption("-no-module-directories", true)
72+
}
73+
}
74+
}
75+
5276
bintray{
5377
user = System.getenv("bintrayUser")
5478
key = System.getenv("bintrayApiKey")
@@ -76,6 +100,21 @@ publishing{
76100
artifact(sourcesJar)
77101
}
78102
}
103+
repositories{
104+
maven{
105+
name = "GitHubPackages"
106+
url = uri("https://maven.pkg.github.com/botblock/JavaBotBlockAPI")
107+
credentials{
108+
username = System.getenv("GITHUB_ACTOR")
109+
password = System.getenv("GITHUB_TOKEN")
110+
}
111+
}
112+
publications{
113+
gpr(MavenPublication){
114+
from(components.java)
115+
}
116+
}
117+
}
79118
}
80119

81120
class Version{

docs/allclasses-frame.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/allclasses-index.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE HTML>
22
<!-- NewPage -->
3-
<html lang="en">
3+
<html lang="de">
44
<head>
5-
<!-- Generated by javadoc (11.0.4) on Mon Dec 30 23:01:26 CET 2019 -->
6-
<title>All Classes (JavaBotBlockAPI Javadocs)</title>
7-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2019-12-30">
5+
<!-- Generated by javadoc (11.0.4) on Thu Jan 02 13:04:18 CET 2020 -->
6+
<title>All Classes (JavaBotBlockAPI 4.0.0_dev API)</title>
7+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8+
<meta name="dc.created" content="2020-01-02">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="script.js"></script>
@@ -22,7 +22,7 @@
2222
<script type="text/javascript"><!--
2323
try {
2424
if (location.href.indexOf('is-external=true') == -1) {
25-
parent.document.title="All Classes (JavaBotBlockAPI Javadocs)";
25+
parent.document.title="All Classes (JavaBotBlockAPI 4.0.0_dev API)";
2626
}
2727
}
2828
catch(err) {
@@ -57,7 +57,7 @@
5757
<li>Class</li>
5858
<li><a href="overview-tree.html">Tree</a></li>
5959
<li><a href="deprecated-list.html">Deprecated</a></li>
60-
<li><a href="index-files/index-1.html">Index</a></li>
60+
<li><a href="index-all.html">Index</a></li>
6161
<li><a href="help-doc.html">Help</a></li>
6262
</ul>
6363
</div>
@@ -112,49 +112,49 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
112112
<th class="colLast" scope="col">Description</th>
113113
</tr>
114114
<tr id="i0" class="altColor">
115-
<td class="colFirst"><a href="com/andre601/javabotblockapi/BotBlockAPI.html" title="class in com.andre601.javabotblockapi">BotBlockAPI</a></td>
115+
<td class="colFirst"><a href="org/botblock/javabotblockapi/BotBlockAPI.html" title="class in org.botblock.javabotblockapi">BotBlockAPI</a></td>
116116
<th class="colLast" scope="row">
117117
<div class="block">Class used to define the auth-tokens used for the different sites.</div>
118118
</th>
119119
</tr>
120120
<tr id="i1" class="rowColor">
121-
<td class="colFirst"><a href="com/andre601/javabotblockapi/BotBlockAPI.Builder.html" title="class in com.andre601.javabotblockapi">BotBlockAPI.Builder</a></td>
121+
<td class="colFirst"><a href="org/botblock/javabotblockapi/BotBlockAPI.Builder.html" title="class in org.botblock.javabotblockapi">BotBlockAPI.Builder</a></td>
122122
<th class="colLast" scope="row">
123-
<div class="block">Builder class to create an instance of <a href="com/andre601/javabotblockapi/BotBlockAPI.html" title="class in com.andre601.javabotblockapi"><code>BotBlockAPI</code></a></div>
123+
<div class="block">Builder class to create an instance of <a href="org/botblock/javabotblockapi/BotBlockAPI.html" title="class in org.botblock.javabotblockapi"><code>BotBlockAPI</code></a></div>
124124
</th>
125125
</tr>
126126
<tr id="i2" class="altColor">
127-
<td class="colFirst"><a href="com/andre601/javabotblockapi/annotations/DeprecatedSince.html" title="annotation in com.andre601.javabotblockapi.annotations">DeprecatedSince</a></td>
127+
<td class="colFirst"><a href="org/botblock/javabotblockapi/annotations/DeprecatedSince.html" title="annotation in org.botblock.javabotblockapi.annotations">DeprecatedSince</a></td>
128128
<th class="colLast" scope="row">
129-
<div class="block">Gives information since when a method or field is deprecated.</div>
129+
<div class="block">Annotation used to indicate since when a method or field is deprecated.</div>
130130
</th>
131131
</tr>
132132
<tr id="i3" class="rowColor">
133-
<td class="colFirst"><a href="com/andre601/javabotblockapi/requests/GetAction.html" title="class in com.andre601.javabotblockapi.requests">GetAction</a></td>
133+
<td class="colFirst"><a href="org/botblock/javabotblockapi/requests/GetAction.html" title="class in org.botblock.javabotblockapi.requests">GetAction</a></td>
134134
<th class="colLast" scope="row">
135135
<div class="block">Class to perform GET actions with.</div>
136136
</th>
137137
</tr>
138138
<tr id="i4" class="altColor">
139-
<td class="colFirst"><a href="com/andre601/javabotblockapi/requests/PostAction.html" title="class in com.andre601.javabotblockapi.requests">PostAction</a></td>
139+
<td class="colFirst"><a href="org/botblock/javabotblockapi/requests/PostAction.html" title="class in org.botblock.javabotblockapi.requests">PostAction</a></td>
140140
<th class="colLast" scope="row">
141141
<div class="block">Class to perform post actions with.</div>
142142
</th>
143143
</tr>
144144
<tr id="i5" class="rowColor">
145-
<td class="colFirst"><a href="com/andre601/javabotblockapi/exceptions/RatelimitedException.html" title="class in com.andre601.javabotblockapi.exceptions">RatelimitedException</a></td>
145+
<td class="colFirst"><a href="org/botblock/javabotblockapi/exceptions/RatelimitedException.html" title="class in org.botblock.javabotblockapi.exceptions">RatelimitedException</a></td>
146146
<th class="colLast" scope="row">
147147
<div class="block">Used when the Wrapper gets rate-limited by the BotBlockAPI.</div>
148148
</th>
149149
</tr>
150150
<tr id="i6" class="altColor">
151-
<td class="colFirst"><a href="com/andre601/javabotblockapi/annotations/ReplacedWith.html" title="annotation in com.andre601.javabotblockapi.annotations">ReplacedWith</a></td>
151+
<td class="colFirst"><a href="org/botblock/javabotblockapi/annotations/ReplacedWith.html" title="annotation in org.botblock.javabotblockapi.annotations">ReplacedWith</a></td>
152152
<th class="colLast" scope="row">
153-
<div class="block">Indicates a replacement for the annotated field or method, that should be used instead.</div>
153+
<div class="block">Annotation used to indicate a method or field that should be used instead.</div>
154154
</th>
155155
</tr>
156156
<tr id="i7" class="rowColor">
157-
<td class="colFirst"><a href="com/andre601/javabotblockapi/Site.html" title="enum in com.andre601.javabotblockapi">Site</a></td>
157+
<td class="colFirst"><a href="org/botblock/javabotblockapi/Site.html" title="enum in org.botblock.javabotblockapi">Site</a></td>
158158
<th class="colLast" scope="row">
159159
<div class="block">Enum class containing all sites currently supported by BotBlock.org.</div>
160160
</th>
@@ -180,7 +180,7 @@ <h1 title="All&amp;nbsp;Classes" class="title">All&nbsp;Classes</h1>
180180
<li>Class</li>
181181
<li><a href="overview-tree.html">Tree</a></li>
182182
<li><a href="deprecated-list.html">Deprecated</a></li>
183-
<li><a href="index-files/index-1.html">Index</a></li>
183+
<li><a href="index-all.html">Index</a></li>
184184
<li><a href="help-doc.html">Help</a></li>
185185
</ul>
186186
</div>

docs/allclasses-noframe.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/allclasses.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE HTML>
22
<!-- NewPage -->
3-
<html lang="en">
3+
<html lang="de">
44
<head>
5-
<!-- Generated by javadoc (11.0.4) on Mon Dec 30 23:01:26 CET 2019 -->
6-
<title>All Classes (JavaBotBlockAPI Javadocs)</title>
7-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2019-12-30">
5+
<!-- Generated by javadoc (11.0.4) on Thu Jan 02 13:04:18 CET 2020 -->
6+
<title>All Classes (JavaBotBlockAPI 4.0.0_dev API)</title>
7+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8+
<meta name="dc.created" content="2020-01-02">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="script.js"></script>
@@ -22,14 +22,14 @@
2222
<h1 class="bar">All&nbsp;Classes</h1>
2323
<main role="main" class="indexContainer">
2424
<ul>
25-
<li><a href="com/andre601/javabotblockapi/BotBlockAPI.html" title="class in com.andre601.javabotblockapi">BotBlockAPI</a></li>
26-
<li><a href="com/andre601/javabotblockapi/BotBlockAPI.Builder.html" title="class in com.andre601.javabotblockapi">BotBlockAPI.Builder</a></li>
27-
<li><a href="com/andre601/javabotblockapi/annotations/DeprecatedSince.html" title="annotation in com.andre601.javabotblockapi.annotations">DeprecatedSince</a></li>
28-
<li><a href="com/andre601/javabotblockapi/requests/GetAction.html" title="class in com.andre601.javabotblockapi.requests">GetAction</a></li>
29-
<li><a href="com/andre601/javabotblockapi/requests/PostAction.html" title="class in com.andre601.javabotblockapi.requests">PostAction</a></li>
30-
<li><a href="com/andre601/javabotblockapi/exceptions/RatelimitedException.html" title="class in com.andre601.javabotblockapi.exceptions">RatelimitedException</a></li>
31-
<li><a href="com/andre601/javabotblockapi/annotations/ReplacedWith.html" title="annotation in com.andre601.javabotblockapi.annotations">ReplacedWith</a></li>
32-
<li><a href="com/andre601/javabotblockapi/Site.html" title="enum in com.andre601.javabotblockapi">Site</a></li>
25+
<li><a href="org/botblock/javabotblockapi/BotBlockAPI.html" title="class in org.botblock.javabotblockapi">BotBlockAPI</a></li>
26+
<li><a href="org/botblock/javabotblockapi/BotBlockAPI.Builder.html" title="class in org.botblock.javabotblockapi">BotBlockAPI.Builder</a></li>
27+
<li><a href="org/botblock/javabotblockapi/annotations/DeprecatedSince.html" title="annotation in org.botblock.javabotblockapi.annotations">DeprecatedSince</a></li>
28+
<li><a href="org/botblock/javabotblockapi/requests/GetAction.html" title="class in org.botblock.javabotblockapi.requests">GetAction</a></li>
29+
<li><a href="org/botblock/javabotblockapi/requests/PostAction.html" title="class in org.botblock.javabotblockapi.requests">PostAction</a></li>
30+
<li><a href="org/botblock/javabotblockapi/exceptions/RatelimitedException.html" title="class in org.botblock.javabotblockapi.exceptions">RatelimitedException</a></li>
31+
<li><a href="org/botblock/javabotblockapi/annotations/ReplacedWith.html" title="annotation in org.botblock.javabotblockapi.annotations">ReplacedWith</a></li>
32+
<li><a href="org/botblock/javabotblockapi/Site.html" title="enum in org.botblock.javabotblockapi">Site</a></li>
3333
</ul>
3434
</main>
3535
</body>

docs/allpackages-index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE HTML>
22
<!-- NewPage -->
3-
<html lang="en">
3+
<html lang="de">
44
<head>
5-
<!-- Generated by javadoc (11.0.4) on Mon Dec 30 23:01:26 CET 2019 -->
6-
<title>All Packages (JavaBotBlockAPI Javadocs)</title>
7-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8-
<meta name="dc.created" content="2019-12-30">
5+
<!-- Generated by javadoc (11.0.4) on Thu Jan 02 13:04:18 CET 2020 -->
6+
<title>All Packages (JavaBotBlockAPI 4.0.0_dev API)</title>
7+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8+
<meta name="dc.created" content="2020-01-02">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
1111
<script type="text/javascript" src="script.js"></script>
@@ -22,7 +22,7 @@
2222
<script type="text/javascript"><!--
2323
try {
2424
if (location.href.indexOf('is-external=true') == -1) {
25-
parent.document.title="All Packages (JavaBotBlockAPI Javadocs)";
25+
parent.document.title="All Packages (JavaBotBlockAPI 4.0.0_dev API)";
2626
}
2727
}
2828
catch(err) {
@@ -51,7 +51,7 @@
5151
<li>Class</li>
5252
<li><a href="overview-tree.html">Tree</a></li>
5353
<li><a href="deprecated-list.html">Deprecated</a></li>
54-
<li><a href="index-files/index-1.html">Index</a></li>
54+
<li><a href="index-all.html">Index</a></li>
5555
<li><a href="help-doc.html">Help</a></li>
5656
</ul>
5757
</div>
@@ -107,19 +107,19 @@ <h1 title="All&amp;nbsp;Packages" class="title">All&nbsp;Packages</h1>
107107
</tr>
108108
<tbody>
109109
<tr class="altColor">
110-
<th class="colFirst" scope="row"><a href="com/andre601/javabotblockapi/package-summary.html">com.andre601.javabotblockapi</a></th>
110+
<th class="colFirst" scope="row"><a href="org/botblock/javabotblockapi/package-summary.html">org.botblock.javabotblockapi</a></th>
111111
<td class="colLast">&nbsp;</td>
112112
</tr>
113113
<tr class="rowColor">
114-
<th class="colFirst" scope="row"><a href="com/andre601/javabotblockapi/annotations/package-summary.html">com.andre601.javabotblockapi.annotations</a></th>
114+
<th class="colFirst" scope="row"><a href="org/botblock/javabotblockapi/annotations/package-summary.html">org.botblock.javabotblockapi.annotations</a></th>
115115
<td class="colLast">&nbsp;</td>
116116
</tr>
117117
<tr class="altColor">
118-
<th class="colFirst" scope="row"><a href="com/andre601/javabotblockapi/exceptions/package-summary.html">com.andre601.javabotblockapi.exceptions</a></th>
118+
<th class="colFirst" scope="row"><a href="org/botblock/javabotblockapi/exceptions/package-summary.html">org.botblock.javabotblockapi.exceptions</a></th>
119119
<td class="colLast">&nbsp;</td>
120120
</tr>
121121
<tr class="rowColor">
122-
<th class="colFirst" scope="row"><a href="com/andre601/javabotblockapi/requests/package-summary.html">com.andre601.javabotblockapi.requests</a></th>
122+
<th class="colFirst" scope="row"><a href="org/botblock/javabotblockapi/requests/package-summary.html">org.botblock.javabotblockapi.requests</a></th>
123123
<td class="colLast">&nbsp;</td>
124124
</tr>
125125
</tbody>
@@ -144,7 +144,7 @@ <h1 title="All&amp;nbsp;Packages" class="title">All&nbsp;Packages</h1>
144144
<li>Class</li>
145145
<li><a href="overview-tree.html">Tree</a></li>
146146
<li><a href="deprecated-list.html">Deprecated</a></li>
147-
<li><a href="index-files/index-1.html">Index</a></li>
147+
<li><a href="index-all.html">Index</a></li>
148148
<li><a href="help-doc.html">Help</a></li>
149149
</ul>
150150
</div>

0 commit comments

Comments
 (0)