-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
107 lines (89 loc) · 3.21 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
//this works
buildscript {
repositories {
gradlePluginPortal()
}
}
plugins {
java //this enables annotationProcessor and implementation in dependencies
checkstyle
}
project.extra["GithubUrl"] = "https://github.com/gerwintr/Plugins"
apply<BootstrapPlugin>()
allprojects {
group = "com.openosrs.externals"
apply<MavenPublishPlugin>()
}
allprojects {
apply<MavenPublishPlugin>()
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
subprojects {
group = "com.openosrs.externals"
project.extra["PluginProvider"] = "gerwin"
project.extra["ProjectSupportUrl"] = ""
project.extra["PluginLicense"] = "3-Clause BSD License"
repositories {
jcenter {
content {
excludeGroupByRegex("com\\.openosrs.*")
}
}
exclusiveContent {
forRepository {
mavenLocal()
}
filter {
includeGroupByRegex("com\\.openosrs.*")
includeGroupByRegex("com\\.owain.*")
}
}
}
apply<JavaPlugin>()
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.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")
compileOnly("com.openosrs:runelite-api:4.12.2")
compileOnly("com.openosrs.rs:runescape-api:4.12.2")
compileOnly("com.openosrs:runelite-client:4.12.2")
compileOnly("com.openosrs:http-api:4.12.2")
compileOnly(Libraries.guice)
//compileOnly(Libraries.javax)
compileOnly(Libraries.lombok)
compileOnly(Libraries.pf4j)
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
withType<Jar> {
doLast {
copy {
from("./build/libs/")
into(System.getProperty("user.home") + "/OneDrive/Dokument/JavaProjects/My Plugin Jars")
}
}
}
withType<AbstractArchiveTask> {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
dirMode = 493
fileMode = 420
}
}
}