Files
openosrs-injector/build.gradle.kts
Lucwousin 4f2c72fb75 Fix drawMenu raw injector and add test
(change in compiled class is naming drawLoggedIn)
2019-11-06 23:53:03 +01:00

67 lines
1.7 KiB
Plaintext

/*
* Copyright (c) 2019, Lucas <https://github.com/Lucwousin>
* All rights reserved.
*
* This code is licensed under GPL3, see the complete license in
* the LICENSE file in the root directory of this source tree.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("java-gradle-plugin")
kotlin("jvm") version "1.3.50"
`maven-publish`
}
group = "com.openosrs"
version = "1.0.2"
repositories {
mavenCentral()
mavenLocal()
maven {
url = uri("https://repo.runelite.net")
url = uri("https://raw.githubusercontent.com/open-osrs/hosting/master")
}
}
dependencies {
annotationProcessor("org.projectlombok:lombok:1.18.10")
compileOnly("org.projectlombok:lombok:1.18.10")
implementation(kotlin("stdlib-jdk8"))
implementation("com.openosrs:deobfuscator:1.5.39-SNAPSHOT") {
exclude("org.slf4j", "slf4j-simple")
}
implementation("com.google.guava:guava:28.1-jre")
implementation("org.ow2.asm:asm:7.2")
testImplementation("junit:junit:4.12")
testImplementation("com.openosrs:runelite-mixins:1.5.39-SNAPSHOT")
testCompileOnly("com.openosrs.rs:runescape-api:1.5.39-SNAPSHOT")
}
gradlePlugin {
plugins {
create("injectorPlugin") {
id = "com.openosrs.injector"
implementationClass = "com.openosrs.injector.InjectPlugin"
}
}
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}