2020-05-27 13:58:52 +00:00
|
|
|
//this works
|
|
|
|
|
2020-05-21 23:55:29 +00:00
|
|
|
import ProjectVersions.openosrsVersion
|
|
|
|
|
2020-05-21 15:40:28 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
2020-05-21 23:55:29 +00:00
|
|
|
java //this enables annotationProcessor and implementation in dependencies
|
2020-05-22 03:14:09 +00:00
|
|
|
checkstyle
|
2020-05-21 15:40:28 +00:00
|
|
|
}
|
|
|
|
|
2020-06-26 01:25:32 +00:00
|
|
|
project.extra["GithubUrl"] = "https://github.com/illumineawake/illu-plugins"
|
2020-05-21 15:40:28 +00:00
|
|
|
|
|
|
|
apply<BootstrapPlugin>()
|
|
|
|
|
2020-09-09 14:07:04 +00:00
|
|
|
allprojects {
|
|
|
|
group = "com.openosrs.externals"
|
|
|
|
apply<MavenPublishPlugin>()
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
apply<MavenPublishPlugin>()
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-21 15:40:28 +00:00
|
|
|
subprojects {
|
2020-05-22 07:57:20 +00:00
|
|
|
group = "com.openosrs.externals"
|
2020-05-21 15:40:28 +00:00
|
|
|
|
2020-06-25 12:53:49 +00:00
|
|
|
project.extra["PluginProvider"] = "illumine"
|
2020-08-09 12:38:47 +00:00
|
|
|
project.extra["ProjectSupportUrl"] = "https://discord.gg/9fGzEDR"
|
2020-05-21 15:40:28 +00:00
|
|
|
project.extra["PluginLicense"] = "3-Clause BSD License"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter {
|
|
|
|
content {
|
|
|
|
excludeGroupByRegex("com\\.openosrs.*")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
exclusiveContent {
|
|
|
|
forRepository {
|
|
|
|
mavenLocal()
|
|
|
|
}
|
|
|
|
filter {
|
|
|
|
includeGroupByRegex("com\\.openosrs.*")
|
2020-08-08 09:15:56 +00:00
|
|
|
includeGroupByRegex("com\\.owain.*")
|
2020-05-21 15:40:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply<JavaPlugin>()
|
|
|
|
|
2020-05-21 23:55:29 +00:00
|
|
|
dependencies {
|
2021-03-03 16:28:52 +00:00
|
|
|
annotationProcessor(Libraries.lombok)
|
|
|
|
annotationProcessor(Libraries.pf4j)
|
2020-05-21 23:55:29 +00:00
|
|
|
|
2021-03-03 16:28:52 +00:00
|
|
|
compileOnly("com.openosrs:http-api:$openosrsVersion+")
|
2020-05-21 23:55:29 +00:00
|
|
|
compileOnly("com.openosrs:runelite-api:$openosrsVersion+")
|
|
|
|
compileOnly("com.openosrs:runelite-client:$openosrsVersion+")
|
2021-03-03 16:28:52 +00:00
|
|
|
compileOnly("com.openosrs.rs:runescape-api:$openosrsVersion+")
|
2020-05-21 23:55:29 +00:00
|
|
|
|
2021-03-03 16:28:52 +00:00
|
|
|
compileOnly(Libraries.findbugs)
|
|
|
|
compileOnly(Libraries.apacheCommonsText)
|
|
|
|
compileOnly(Libraries.gson)
|
2020-05-21 23:55:29 +00:00
|
|
|
compileOnly(Libraries.guice)
|
|
|
|
compileOnly(Libraries.lombok)
|
2021-03-03 16:28:52 +00:00
|
|
|
compileOnly(Libraries.okhttp3)
|
2020-05-21 23:55:29 +00:00
|
|
|
compileOnly(Libraries.pf4j)
|
2021-03-03 16:28:52 +00:00
|
|
|
compileOnly(Libraries.rxjava)
|
2021-06-12 08:26:00 +00:00
|
|
|
|
|
|
|
|
2020-05-21 23:55:29 +00:00
|
|
|
}
|
|
|
|
|
2020-05-21 15:40:28 +00:00
|
|
|
configure<JavaPluginConvention> {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
2020-09-09 14:07:04 +00:00
|
|
|
configure<PublishingExtension> {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url = uri("$buildDir/repo")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publications {
|
|
|
|
register("mavenJava", MavenPublication::class) {
|
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-21 15:40:28 +00:00
|
|
|
tasks {
|
|
|
|
withType<JavaCompile> {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
2020-09-30 15:35:23 +00:00
|
|
|
register<Copy>("copyDeps") {
|
|
|
|
into("./build/deps/")
|
|
|
|
from(configurations["runtimeClasspath"])
|
|
|
|
}
|
|
|
|
|
2020-05-21 15:40:28 +00:00
|
|
|
withType<Jar> {
|
|
|
|
doLast {
|
|
|
|
copy {
|
|
|
|
from("./build/libs/")
|
2020-09-09 14:07:04 +00:00
|
|
|
into(System.getProperty("user.home") + "/Documents/JavaProjects/My Plugins Jars")
|
2020-05-21 15:40:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
withType<AbstractArchiveTask> {
|
|
|
|
isPreserveFileTimestamps = false
|
|
|
|
isReproducibleFileOrder = true
|
|
|
|
dirMode = 493
|
|
|
|
fileMode = 420
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|