Commit Graph

73 Commits

Author SHA1 Message Date
Major- f4aa3aae4e Add tests for api plugin 2018-08-25 12:03:54 +01:00
Major- fd52ee6026 Add @DefinitionSource annotations
Allows parameterized tests to use Item, Npc, and Object definitions
as @ArgumentSources.

This commit also adds support for using @ItemDefinitions etc on
properties as well as functions.
2018-08-25 12:03:53 +01:00
Major- dc0690f82d Make plugins target java 8 2018-08-25 12:03:53 +01:00
Gary Tierney 754343afec Move shop plugins to unique packages 2018-08-23 23:08:30 +01:00
Major- cfddd05499 Repackage api plugin 2018-08-23 20:12:26 +01:00
Major- c6cf5a4081 Merge pull request #407 from arham4/kotlin-experiments 2018-08-23 00:07:24 +01:00
Gary Tierney ba5ff2b765 Fix inclusion of ktlint for check tasks 2018-08-22 23:16:53 +01:00
Arham4 0b0f75d622 Added all shops in Lumbridge, Falador, Edgeville, and Al-Kharid 2018-08-22 14:31:43 +01:00
Major- 2080e1e700 Add tests for player actions 2018-08-21 16:10:52 +01:00
Major- d4de32c82c Rename npc_spawn function to spawnNpc 2018-08-21 16:10:30 +01:00
Major- ae73453e1a Remove (empty) util plugin
The contents of this plugin have mostly been moved into the api plugin,
or removed entirely.
2018-08-21 16:09:30 +01:00
Major 86fba62ab9 Support npc and object definitions in plugin tests 2018-08-21 16:09:16 +01:00
Major 71158b3b5e Add unit tests for areas plugin 2018-08-21 16:09:09 +01:00
Gary Tierney 5d84cdf40f Fix recording of code coverage 2018-08-20 01:29:52 +01:00
Gary Tierney 5307a62f8d Put plugins with the same name in unique packages 2018-08-20 00:13:25 +01:00
Gary Tierney ebeaa7cd92 Use Gradles built-in JUnit 5 support 2018-08-19 23:43:42 +01:00
Gary Tierney 248a7d97d9 Update plugin test framework to junit5
Updates the testing infrastructure to use the latest relesae of junit and
leverages the new extension mechanism to create an easy to use testing
framework.  Also adds additional test coverage for several plugins.
2018-08-19 22:28:41 +01:00
Gary Tierney bd6db246dc Remove Detekt configuration 2018-08-19 19:52:51 +01:00
Gary Tierney 0651d535fa Update to Kotlin 1.60 and Gradle 4.9
Removes the dependency on legacy script compilation and now relies on script
discovery.  In addition, the Gradle build scripts were refactored and updated
to be compatible with Gradle 5.0 and make use of the new java-library
configurations.
2018-08-19 19:26:51 +01:00
Major 8fe09880b7 Remove util:lookup plugin
Behaviour moved into the api plugin.
2018-04-08 16:19:48 +01:00
Major d2a197f680 Fix typo in shops dsl 2018-04-08 15:46:06 +01:00
Major 275da1331b Remove command utilities plugin 2018-04-08 05:15:48 +01:00
Major f7bf5fde34 Fix nitpicks in prayer plugin 2018-04-08 04:12:04 +01:00
Major 68b78915b6 Merge pull request #396 from chivvon/herblore 2018-04-08 02:32:53 +01:00
Chivvon a52837975e Port Herblore plugin to Kotlin 2018-04-08 01:58:34 +01:00
Caleb Foust 34f06b20c4 Add teleportation to places using ::tele [name] 2018-04-04 06:58:34 +01:00
Major 81e019ca93 Fix nitpicks in emote plugin 2018-04-01 22:49:26 +01:00
Major 8394a035c7 Optimise Mob.walkTo for paths that require no verification 2018-04-01 20:42:13 +01:00
Major 7ca09f462b Rename npc spawning scripts 2018-04-01 20:38:41 +01:00
Gary Tierney 2b7a62d997 Use a map for bone and prayer lookups 2018-03-31 22:24:10 +01:00
Gary Tierney 7c59c2c3a5 Clean up remaining issues on prayer plugin 2018-03-31 22:12:34 +01:00
Gary Tierney 59a651a1eb Fix code-style in prayer plugin
Adds named arguments to enum declarations along with lookup functions, fixes
continuation indent, and replaces Map<Player, ArrayList<Prayer>> with a
SetMultimap<Player, Prayer>.
2018-03-31 21:58:53 +01:00
Gary Tierney 28c85d1ecc Remove now invalid packageName from prayer plugin 2018-03-31 21:57:28 +01:00
Trevor Flynn 1c0b1d827f Fix to allow multiple prayers.
Fixed not caching enum values.
2018-03-31 21:49:59 +01:00
Trevor Flynn 94783da9e5 Ported prayer plugin to kotlin 2018-03-31 21:49:59 +01:00
Major 9c4eff712e Move Position destructuring functions to their own object 2018-03-28 21:36:34 +01:00
Major 0316753f46 Improve ::position command message 2018-03-28 17:48:07 +01:00
Major 4b68b8e47e Separate prospecting actions 2018-03-28 17:39:51 +01:00
Major 0d7b2ea6e8 Add prospecting on expired rocks 2018-03-28 17:39:51 +01:00
Major 6941fc9de0 Fix nitpicks in Mining plugin
Also adds equals() and hashcode() implementations to the various
Mining actions.
2018-03-28 17:39:50 +01:00
Major 173623b76b Fix nitpicks in Woodcutting plugin 2018-03-28 17:39:46 +01:00
Major 45a0b43eee Remove incorrect Gunnarsgrunn fishing spots
The spots are actually on Tutorial Island and result in two
fishing spots stacked on top of each other.
2018-03-28 01:43:19 +01:00
Major b2f48815bf Fix nitpicks in Fishing plugin 2018-03-28 01:43:19 +01:00
Gary Tierney d8116478d4 Remove dependency on embedded kotlin compiler
This is a large change that significantly simplifies the plugin build system by
having the kotlinc handle everything related to script compilation.  Since we
no longer use package name rewriting, the "packageName" option has been dropped
from the gradle script API and has been removed from existing plugins.

In addition to simplifying the build system, it should also significantly speed
up build times.  Previously we ran 2 build processes for every plugin and
didn't have fully working incremental compilation for scripts compared to 1
build process with built-in incremental compilation.

There were also some random pieces of code that referenced kotlinc directly, so
those have either been removed or refactored out.
2018-03-27 22:35:05 +01:00
Trevor Flynn 97896a34a4 Add implementation of runecrafting skill 2018-01-17 22:25:21 +00:00
Major 397d9b2d6a Merge pull request #366 from apollo-rsps/kotlin-experiments-areas
Port the area actions plugin
2017-09-26 13:57:29 +01:00
Major 6e3ddff51a Correctly import api.Definitions 2017-09-24 22:56:48 +01:00
Major 046f373c9e Add packages to plugins 2017-09-24 22:35:07 +01:00
Major b4e8a7136b Add skill extension properties 2017-09-24 19:44:17 +01:00
Major ce1bcba893 Port Area plugin to Kotlin 2017-09-24 18:50:13 +01:00