-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
40 lines (34 loc) · 1.13 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
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.2'
id 'com.atherys.gradle' version '1.7.1'
id 'net.kyori.blossom' version '1.1.0'
id 'maven-publish'
}
group 'com.atherys'
version '2.0.5'
dependencies {
shadow 'com.atherys:AtherysScript:1.0.0'
shadow 'com.atherys:AtherysCore:2.0.0'
}
blossom {
replaceToken '%PROJECT_VERSION%', project.version
}
publishing {
repositories {
maven {
version = project.hasProperty("release") ? project.version : project.version + "-SNAPSHOT";
def releasesRepoUrl = "https://repo.atherys.com/releases"
def snapshotsRepoUrl = "https://repo.atherys.com/snapshots"
url = project.hasProperty("release") ? releasesRepoUrl : snapshotsRepoUrl
credentials(PasswordCredentials) {
username = project.properties.getOrDefault("repoUploadAlias", "none")
password = project.properties.getOrDefault("repoUploadToken", "none")
}
}
}
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
}