forked from 0Hutch/PiggyPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (91 loc) · 2.71 KB
/
build.gradle
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
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenLocal()
maven {
url = 'https://repo.runelite.net'
}
mavenCentral()
jcenter()
}
def runeLiteVersion = 'latest.release'
dependencies {
compileOnly group: 'net.runelite', name: 'client', version: runeLiteVersion
compileOnly 'org.projectlombok:lombok:1.18.20'
compileOnly 'org.pf4j:pf4j:3.9.0'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testImplementation 'junit:junit:4.12'
testImplementation group: 'net.runelite', name: 'client', version: runeLiteVersion
testImplementation group: 'net.runelite', name: 'jshell', version: runeLiteVersion
implementation 'org.json:json:20230227'
implementation 'org.roaringbitmap:RoaringBitmap:0.9.44'
implementation("com.google.archivepatcher:archive-patch-applier:1.0.4")
implementation("org.benf:cfr:0.152")
implementation 'io.reactivex.rxjava3:rxjava:3.1.6'
implementation group: 'com.google.inject.extensions', name: 'guice-multibindings', version: '4.1.0', {
exclude group: 'com.google.inject'
}
//runtimeOnly group: 'net.runelite', name:'client', version: runeLiteVersion
//runtimeOnly 'org.projectlombok:lombok:1.18.20'
}
sourceSets {
main {
java {
srcDir "src"
}
}
}
group = 'com.piggyplugins'
version = '0.7'
sourceCompatibility = "11"
task FullJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.example.Main'
}
baseName = 'piggy-plugins-aio'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task EthanJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.example.Main'
}
baseName = 'ethans-api'
exclude("com/piggyplugins")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task PiggyJar(type: Jar) {
manifest {
}
baseName = 'piggy-plugins-no-ethan'
exclude("com/example")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
credentials {
username 'admin'
password 'password'
}
url "http://baseUrl/artifactory/libs-release-local"
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.release.set(11)
}
targetCompatibility = JavaVersion.VERSION_11