-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (47 loc) · 1.3 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
plugins {
id 'java'
id("maven-publish")
}
group 'taigo.validation'
version '5.5.2'
publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/TaigoStudio/TAIGO.ID.Plugins"
credentials {
username = System.getenv("TaigoStudio")
password = System.getenv("")
}
}
}
}
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.14'
implementation group: 'systems.manifold', name: 'manifold-ext', version: '2023.1.10'
}
test {
useJUnitPlatform()
}
task BuildJar(type: Jar) {
manifest {
attributes 'Main-Class': 'taigo.validation.Core'
}
baseName = 'TAIGO.Validation.Plugins'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}