forked from Trophonix/TradePlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (71 loc) · 2.16 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
plugins {
id 'java-library'
id 'maven-publish'
id "com.github.johnrengelman.shadow" version "8.1.1"
id 'org.ajoberstar.git-publish' version '4.2.2'
}
group = 'com.trophonix'
version = '3.84'
description = 'TradePlus'
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven { url = uri('https://oss.sonatype.org/content/repositories/snapshots') }
maven { url = uri('https://nexus.hc.to/content/repositories/pub_releases') }
maven { url = uri('https://jitpack.io') }
maven { url = uri('https://repo.aikar.co/content/groups/aikar/') }
maven { url = uri('https://repo.codemc.org/repository/maven-public/') }
maven { url = uri('https://repo.maven.apache.org/maven2/') }
maven {
url("https://repo.coralmc.it/releases")
credentials {
username "$mavenUser"
password "$mavenPassword"
}
authentication {
basic(BasicAuthentication)
}
}
}
dependencies {
compileOnly 'it.coralrp.laroc:api:1.0.10-SNAPSHOT'
compileOnly 'it.coralrp.laroc.nametags:api:1.0.0-SNAPSHOT'
compileOnly 'it.coralrp.laroc.chat:api:1.0.1-SNAPSHOT'
implementation 'com.google.guava:guava:21.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'co.aikar:taskchain-bukkit:3.7.2'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
library(MavenPublication) {
from components.java
artifact sourceJar {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
}
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
shadowJar {
archiveBaseName.set('TradePlus')
archiveClassifier.set('')
archiveVersion.set('')
}
processResources {
expand(project: project)
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}