-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (39 loc) · 918 Bytes
/
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
apply plugin: 'maven-publish'
apply plugin: 'java-library'
apply plugin: 'eclipse'
jar.archiveName = project.name + '.jar'
repositories {
mavenCentral()
// Spigot
maven {
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
// Bungeecord
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
// Spigot
implementation (group: 'org.spigotmc', name: 'spigot-api', version: '1.17.1-R0.1-SNAPSHOT')
}
publishing {
repositories {
maven {
name = "SourCore"
url = uri("https://maven.pkg.github.com/Sitrica/SourCore")
credentials {
username = 'Sitrica'
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_PACKAGES_KEY")
}
}
}
publications {
gpr(MavenPublication) {
version = project.property("version")
groupId = 'com.sitrica'
artifactId = 'core' // Don't modify
from(components.java)
}
}
}