Skip to content

Commit 0f7b743

Browse files
committed
add Javadoc and source JAR generation to build configuration; enhance GuildProvider interface documentation
1 parent 9eb064a commit 0f7b743

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ repositories {
2121
maven { url 'https://jitpack.io' }
2222
}
2323

24+
java {
25+
withJavadocJar()
26+
withSourcesJar()
27+
}
28+
2429
dependencies {
2530
compileOnly 'org.projectlombok:lombok:1.18.30'
2631

@@ -48,6 +53,7 @@ shadowJar {
4853
exclude(dependency('net.wesjd:.*'))
4954
}
5055

56+
finalizedBy javadocJar
5157
finalizedBy publishToMavenLocal
5258
}
5359

src/main/java/me/leoo/guilds/api/objects/guild/GuildProvider.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,24 @@
55
import java.util.List;
66
import java.util.UUID;
77

8+
/**
9+
* GuildProvider interface for managing guilds.
10+
* Provides methods to retrieve, create, and manipulate guilds.
11+
*/
812
public interface GuildProvider {
913

14+
/**
15+
* Get a guild by its UUID.
16+
* @param uuid of the guild
17+
* @return GuildView if found, null otherwise
18+
*/
1019
GuildView getByUuid(UUID uuid);
20+
21+
/**
22+
* Get a guild by its name.
23+
* @param name of the guild
24+
* @return GuildView if found, null otherwise
25+
*/
1126
GuildView getByName(String name);
1227
GuildView getByPlayer(Player player);
1328
GuildView getByPlayer(UUID player);

0 commit comments

Comments
 (0)