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:
26
injection-annotations/injection-annotations.gradle.kts
Normal file
26
injection-annotations/injection-annotations.gradle.kts
Normal 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"
|
||||||
@@ -38,4 +38,4 @@ public @interface FieldHook
|
|||||||
String value();
|
String value();
|
||||||
|
|
||||||
boolean before() default false;
|
boolean before() default false;
|
||||||
}
|
}
|
||||||
@@ -29,6 +29,7 @@ dependencies {
|
|||||||
compileOnly(Libraries.guava)
|
compileOnly(Libraries.guava)
|
||||||
compileOnly(Libraries.javaxInject)
|
compileOnly(Libraries.javaxInject)
|
||||||
compileOnly(Libraries.slf4jApi)
|
compileOnly(Libraries.slf4jApi)
|
||||||
|
compileOnly(project(":injection-annotations"))
|
||||||
compileOnly(project(":runescape-api"))
|
compileOnly(project(":runescape-api"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,4 +28,5 @@ description = "RuneScape API"
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":runelite-api"))
|
api(project(":runelite-api"))
|
||||||
|
api(project(":injection-annotations"))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ group = "com.openosrs.rs"
|
|||||||
description = "RuneScape Client"
|
description = "RuneScape Client"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":runescape-api"))
|
implementation(project(":injection-annotations"))
|
||||||
|
|
||||||
testImplementation(Libraries.junit)
|
testImplementation(Libraries.junit)
|
||||||
testImplementation(Libraries.slf4jApi)
|
testImplementation(Libraries.slf4jApi)
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ include(":runelite-script-assembler-plugin")
|
|||||||
include(":runelite-client")
|
include(":runelite-client")
|
||||||
include(":runelite-mixins")
|
include(":runelite-mixins")
|
||||||
include(":injected-client")
|
include(":injected-client")
|
||||||
|
include("injection-annotations")
|
||||||
include(":runelite-plugin-archetype")
|
include(":runelite-plugin-archetype")
|
||||||
include(":http-service")
|
include(":http-service")
|
||||||
include(":http-service-openosrs")
|
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" }
|
require(buildFile.isFile) { "Project '${project.path} must have a $buildFile build script" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user