-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (55 loc) · 1.42 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'eclipse'
id 'java-library'
id 'maven-publish'
}
jar.archiveName = project.name + '.jar'
repositories {
mavenCentral()
// Bungeecord
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
// Bungeecord
implementation (group: 'net.md-5', name: 'bungeecord-protocol', version: '1.16-R0.4-SNAPSHOT')
implementation (group: 'net.md-5', name: 'bungeecord-api', version: '1.16-R0.4-SNAPSHOT')
shadow (group: 'com.google.code.gson', name: 'gson', version: '2.8.6')
// shadow fileTree(dir: 'libraries', include: '*.jar')
}
publishing {
repositories {
maven {
name = project.name
url = uri("https://maven.pkg.github.com/Sitrica/" + project.name)
credentials {
username = 'Sitrica'
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_PACKAGES_KEY")
}
}
}
publications {
gpr(MavenPublication) {
version = project.property("version")
groupId = 'com.sitrica'
artifactId = project.name.toLowerCase()
from(components.java)
}
}
}
processResources {
from (sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: ["version": project.property("version")]
include '**/*.yml'
}
}
shadowJar {
configurations = [project.configurations.shadow]
archiveVersion = ''
baseName = project.name
classifier = ''
minimize()
}