-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
127 lines (107 loc) · 3.58 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import org.jetbrains.kotlin.resolve.calls.model.ResolvedCallArgument.DefaultArgument.arguments
buildscript {
repositories {
gradlePluginPortal()
}
}
plugins {
checkstyle
java
kotlin("jvm") version "1.3.71"
id("com.github.andygoossens.gradle-modernizer-plugin") version "1.6.1"
}
apply<BootstrapPlugin>()
apply<VersionPlugin>()
allprojects {
group = "com.tonic"
apply<MavenPublishPlugin>()
}
allprojects {
apply<MavenPublishPlugin>()
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
group = "net.runelite.client.plugins"
project.extra["PluginProvider"] = "TonicBox"
project.extra["ProjectUrl"] = "https://discord.gg/m6htemjY5j"
project.extra["PluginLicense"] = "3-Clause BSD License"
repositories {
mavenCentral {
content {
excludeGroupByRegex("com\\.openosrs.*")
}
}
exclusiveContent {
forRepository {
mavenLocal()
}
filter {
includeGroupByRegex("com\\.openosrs.*")
}
}
}
apply<JavaPlugin>()
apply(plugin = "kotlin")
apply(plugin = "com.github.andygoossens.gradle-modernizer-plugin")
dependencies {
compileOnly(group = "net.unethicalite", name = "http-api", version = "1.0.20-STABLE")
compileOnly(group = "net.unethicalite", name = "runelite-api", version = "1.0.20-STABLE")
compileOnly(group = "net.unethicalite", name = "runelite-client", version = "1.0.20-STABLE")
compileOnly(group = "org.apache.commons", name = "commons-text", version = "1.9")
compileOnly(group = "com.google.guava", name = "guava", version = "30.1.1-jre") {
exclude(group = "com.google.code.findbugs", module = "jsr305")
exclude(group = "com.google.errorprone", module = "error_prone_annotations")
exclude(group = "com.google.j2objc", module = "j2objc-annotations")
exclude(group = "org.codehaus.mojo", module = "animal-sniffer-annotations")
}
compileOnly(group = "com.google.inject", name = "guice", version = "5.0.1")
compileOnly(group = "org.projectlombok", name = "lombok", version = "1.18.4")
compileOnly(group = "org.pf4j", name = "pf4j", version = "3.6.0")
compileOnly(group = "io.reactivex.rxjava3", name = "rxjava", version = "3.1.1")
implementation("org.javacord:javacord:3.8.0")
}
configure<PublishingExtension> {
repositories {
maven {
url = uri("$buildDir/repo")
}
}
publications {
register("mavenJava", MavenPublication::class) {
from(components["java"])
}
}
}
tasks {
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
withType<AbstractArchiveTask> {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
dirMode = 493
fileMode = 420
}
withType<JavaCompile> {
options.encoding = "UTF-8"
}
withType<Checkstyle> {
group = "verification"
}
// compileKotlin {
// kotlinOptions {
// jvmTarget = "11"
// freeCompilerArgs = listOf("-Xjvm-default=enable")
// }
// sourceCompatibility = "11"
// }
register<Copy>("copyDeps") {
into("./build/deps/")
from(configurations["runtimeClasspath"])
}
}
}