-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (46 loc) · 1.11 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '4.0.4'
}
group 'com.github.johnnyjayjay'
version '0.2.2-alpha'
sourceCompatibility = 1.8
repositories {
maven {
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
mavenCentral()
mavenLocal()
}
dependencies {
implementation "org.ow2.asm:asm:8.0.1"
implementation "org.ow2.asm:asm-commons:8.0.1"
compileOnly "org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT"
}
jar {
manifest {
attributes (
"Premain-Class": "com.github.johnnyjayjay.compatre.NmsAgent",
"Agent-Class": "com.github.johnnyjayjay.compatre.NmsAgent"
)
}
}
javadoc {
failOnError false
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier "sources"
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
archives shadowJar
}