Merge pull request #1101 from runelite-extended/gradle

Migrate to Gradle
This commit is contained in:
Tyler Bochard
2019-07-24 01:16:52 -04:00
committed by GitHub
78 changed files with 4061 additions and 2784 deletions

View File

@@ -0,0 +1,8 @@
description = 'RuneLite API'
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.25'
compile group: 'com.google.code.findbugs', name: 'jsr305', version:'3.0.2'
testCompile group: 'junit', name: 'junit', version:'4.12'
compileOnly group: 'org.projectlombok', name: 'lombok', version:'1.18.8'
}

View File

@@ -1,59 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2016-2017, Adam <Adam@sigterm.info>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.runelite</groupId>
<artifactId>runelite-parent</artifactId>
<version>1.5.30-SNAPSHOT</version>
</parent>
<artifactId>runelite-api</artifactId>
<name>RuneLite API</name>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -25,20 +25,19 @@
package net.runelite.api.events;
import net.runelite.api.GrandExchangeOffer;
import net.runelite.api.GrandExchangeOfferState;
import lombok.Data;
/**
* An event where a {@link GrandExchangeOffer} has been updated with
* An event where a {GrandExchangeOffer} has been updated with
* new information.
* <p>
* When the client initially logs in, this event is called for all grand
* exchange slots with the {@link GrandExchangeOfferState#EMPTY} state,
* exchange slots with the {GrandExchangeOfferState#EMPTY} state,
* regardless of whether any slots have offers. Once the exchange is
* initialized, the client then updates any offers with items as it
* receives information from the server.
* <p>
* See {@link GrandExchangeOfferState} for potential states an offer
* See {GrandExchangeOfferState} for potential states an offer
* can change into.
*/
@Data

View File

@@ -24,15 +24,13 @@
*/
package net.runelite.api.kit;
import net.runelite.api.PlayerAppearance;
/**
* Represents an equipment slot in a players composition.
* <p>
* These values are intended for use with {@link PlayerAppearance} equipment
* These values are intended for use with {PlayerAppearance} equipment
* slots. For obtaining information about equipment in the local players
* equipment {@link net.runelite.api.ItemContainer}, use
* {@link net.runelite.api.EquipmentInventorySlot}.
* equipment {net.runelite.api.ItemContainer}, use
* {net.runelite.api.EquipmentInventorySlot}.
*/
public enum KitType
{
@@ -61,7 +59,7 @@ public enum KitType
}
/**
* Gets the raw equipment index for use in {@link PlayerAppearance#getEquipmentIds()}.
* Gets the raw equipment index for use in {PlayerAppearance#getEquipmentIds()}.
*
* @return raw equipment index
*/

View File

@@ -24,12 +24,11 @@
*/
package net.runelite.api.vars;
import net.runelite.api.VarClientInt;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* An enumeration of input types for {@link VarClientInt#INPUT_TYPE}.
* An enumeration of input types for {VarClientInt#INPUT_TYPE}.
*/
@Getter
@RequiredArgsConstructor

View File

@@ -29,7 +29,6 @@ import java.util.Collection;
import net.runelite.api.FontTypeFace;
import net.runelite.api.Point;
import net.runelite.api.SpriteID;
/**
* Represents an on-screen UI element that is drawn on the canvas.
@@ -254,7 +253,7 @@ public interface Widget
* Gets the sprite ID displayed in the widget.
*
* @return the sprite ID
* @see SpriteID
* SpriteID
*/
int getSpriteId();
@@ -262,7 +261,7 @@ public interface Widget
* Sets the sprite ID displayed in the widget.
*
* @param spriteId the sprite ID
* @see SpriteID
* SpriteID
*/
void setSpriteId(int spriteId);