-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
35 lines (30 loc) · 1.03 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
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 '1.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)
}
}
}