forked from Ganom/ExternalPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
106 lines (94 loc) · 3.7 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
buildscript {
repositories {
gradlePluginPortal()
}
}
plugins {
java
checkstyle
}
apply<BootstrapPlugin>()
apply<VersionPlugin>()
subprojects {
group = "com.openosrs.externals"
project.extra["PluginProvider"] = "Ganom"
project.extra["ProjectUrl"] = "https://discordapp.com/invite/gsoft"
project.extra["PluginLicense"] = "GNU General Public License v3.0"
repositories {
maven {
url = uri("https://dl.bintray.com")
}
jcenter()
maven(url = "https://repo.runelite.net")
mavenLocal()
mavenCentral()
exclusiveContent {
forRepository {
maven {
url = uri("https://raw.githubusercontent.com/open-osrs/hosting/master")
}
}
filter {
includeModule("net.runelite", "fernflower")
includeModule("com.openosrs.rxrelay3", "rxrelay")
}
}
}
apply<JavaPlugin>()
apply<JavaLibraryPlugin>()
apply(plugin = "checkstyle")
dependencies {
annotationProcessor(group = "org.projectlombok", name = "lombok", version = "1.18.12")
annotationProcessor(group = "org.pf4j", name = "pf4j", version = "3.2.0")
implementation(group = "ch.qos.logback", name = "logback-classic", version = "1.2.3")
implementation(group = "com.google.code.gson", name = "gson", version = "2.8.6")
implementation(group = "com.google.guava", name = "guava", version = "28.2-jre")
implementation(group = "com.google.inject", name = "guice", version = "4.2.3", classifier = "no_aop")
implementation(group = "com.openosrs", name = "http-api", version = "3.4.1")
implementation(group = "com.openosrs", name = "injected-client", version = "3.4.1")
implementation(group = "com.openosrs", name = "runelite-api", version = "3.4.1")
implementation(group = "com.openosrs", name = "runelite-client", version = "3.4.1")
implementation(group = "com.openosrs.rs", name = "runescape-api", version = "3.4.1")
implementation(group = "com.openosrs.rs", name = "runescape-client", version = "3.4.1")
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.5.0")
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.5.0")
implementation(group = "io.reactivex.rxjava3", name = "rxjava", version = "3.0.2")
implementation(group = "net.sf.jopt-simple", name = "jopt-simple", version = "5.0.4")
implementation(group = "org.apache.commons", name = "commons-text", version = "1.8")
implementation(group = "org.pf4j", name = "pf4j", version = "3.2.0")
implementation(group = "org.projectlombok", name = "lombok", version = "1.18.12")
implementation(group = "org.pushing-pixels", name = "radiance-substance", version = "2.5.1")
}
checkstyle {
maxWarnings = 0
toolVersion = "8.25"
isShowViolations = true
isIgnoreFailures = false
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
withType<Jar> {
doLast {
copy {
from("./build/libs/")
into("../release/")
}
}
}
withType<AbstractArchiveTask> {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
dirMode = 493
fileMode = 420
}
withType<Checkstyle> {
group = "verification"
}
}
}