idk: Move annotations to do with injection to a seperate module for improved modularity (#2181)

* Move annotations to do with injection to a seperate module for improved modularity

* Remove redundant config in build script, add (c)
This commit is contained in:
Lucwousin
2020-01-03 04:57:03 +01:00
committed by GitHub
parent d7efe2304a
commit 53b7e9bd2e
20 changed files with 31 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
/*
* Copyright (c) 2020, Lucas <https://github.com/lucwousin>
* 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.
*/
description = "Injection/Mapping annotations"
version = "1.0"

View File

@@ -38,4 +38,4 @@ public @interface FieldHook
String value();
boolean before() default false;
}
}

View File

@@ -29,6 +29,7 @@ dependencies {
compileOnly(Libraries.guava)
compileOnly(Libraries.javaxInject)
compileOnly(Libraries.slf4jApi)
compileOnly(project(":injection-annotations"))
compileOnly(project(":runescape-api"))
}

View File

@@ -28,4 +28,5 @@ description = "RuneScape API"
dependencies {
api(project(":runelite-api"))
api(project(":injection-annotations"))
}

View File

@@ -27,7 +27,7 @@ group = "com.openosrs.rs"
description = "RuneScape Client"
dependencies {
implementation(project(":runescape-api"))
implementation(project(":injection-annotations"))
testImplementation(Libraries.junit)
testImplementation(Libraries.slf4jApi)

View File

@@ -43,6 +43,7 @@ include(":runelite-script-assembler-plugin")
include(":runelite-client")
include(":runelite-mixins")
include(":injected-client")
include("injection-annotations")
include(":runelite-plugin-archetype")
include(":http-service")
include(":http-service-openosrs")
@@ -57,4 +58,3 @@ for (project in rootProject.children) {
require(buildFile.isFile) { "Project '${project.path} must have a $buildFile build script" }
}
}