Releases: botblock/JavaBotBlockAPI
v2.3.8: Add "types: [published]" to GitHub Actions
Another day, another test for GitHub Actions.
I added types: [published]
to the yml file to prevent the Workflow from being triggered 3 times.
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.3.8'
}
Maven
For maven use this code snippet:
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.3.8</version>
</dependency>
</dependencies>
v2.3.6: 2nd try with GitHub Actions
This is the second attempt to make GitHub Actions work... Let's hope it does.
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.3.6'
}
Maven
For maven use this code snippet:
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.3.6</version>
</dependency>
</dependencies>
v2.3.5: Updated to Java 11 and JDA 4.0.0_48
This update includes an update to Java 11 which adds new functionality to the javadocs (i.e. a search bar \o/).
I also updated JDA to the latest release.
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.3.5'
}
Maven
For maven use this code snippet:
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.3.5</version>
</dependency>
</dependencies>
v2.3.4: Fix of DISCORDSBESTBOTS_XYZ
Small little update that fixes the typo in the Sites enum, changing DISCORSDBESTBOTS_XYZ
to DISCORDSBESTBOTS_XYZ
Also, added a @SInCE tag for new entries in the Sites enum to indicate since when those are available.
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.3.4'
}
Maven
For maven use this code snippet:
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.3.4</version>
</dependency>
</dependencies>
v2.3.3: Added Discordextremelist.xyz and removed GitHub Actions
The title sais it all.
I added discordextremelist.xyz to the Sites enum and also removed GitHub Actions since it didn't work as expected (And I also didn't receive any support for fixing/improving it).
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.3.3'
}
Maven
For maven use this code snippet:
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.3.3</version>
</dependency>
</dependencies>
v2.3.2: Adding GitHub Actions
This small update is mostly for testing GitHub's "GitHub Action" to see if it performs the actions defined in the file, which should trigger on releases like this one.
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.3.2'
}
Maven
For maven use this code snippet:
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.3.2</version>
</dependency>
</dependencies>
v2.3.0: Implemented caching to GET methods
This version implements caching for the different get methods (e.g. getBotlists(String)
).
This is used as a sort of ratelimit prevention as the requested data is kept in cache and used for 2 minutes before a new request is made.
Additional changes are:
getBotlists()
andgetBotlist(String|Site)
now have an additional String parameter used for the cache.
So the new methods aregetBotlists(String)
andgetBotlist(String, String|Site)
- The JSON used for post requests is no longer a single main field, making this version more thread save.
- You can disable the caching through the RequestHandler (Although it's not recommended).
- To do this just add the boolean
true
when making an instance of the RequestHandler.
Example:RequestHandler handler = new RequestHandler(true);
- This was suggested by @DavidRockin
- To do this just add the boolean
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.3.0'
}
Maven
<repositories>
<repository>
<id>jcenter</id>
<url>https://dl.bintray.com/andre601/maven</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
v2.2.1: Updated JDA to 4.0.0_40
This release updates the dependency of JDA to version 4.0.0_40
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.2.1'
}
Maven
<repositories>
<repository>
<id>jcenter</id>
<url>https://dl.bintray.com/andre601/maven</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.2.1</version>
</dependency>
</dependencies>
Updated JDA to released version
JDA v4 was finally released and is available under the version 4.0.0_39
.
v2.2.0 now supports this version.
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.2.0'
}
Maven
<repositories>
<repository>
<id>jcenter</id>
<url>https://dl.bintray.com/andre601/maven</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.2.0</version>
</dependency>
</dependencies>
v2.1.1: Added yabl.xyz to Site enum
This small update adds the botlist yabl.xyz to the Site enum.
Installation
Gradle
repositories{
jcenter()
}
dependencies{
compile group: 'com.andre601', name: 'JavaBotBlockAPI', version: '2.1.1'
}
Maven
<repositories>
<repository>
<id>jcenter</id>
<url>https://dl.bintray.com/andre601/maven</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.andre601</groupId>
<artifactId>JavaBotBlockAPI</artifactId>
<version>2.1.1</version>
</dependency>
</dependencies>