-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
36 lines (31 loc) · 925 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
plugins {
id 'java'
id 'maven-publish'
}
group 'org.atherys'
version '1.0.0'
repositories {
mavenCentral()
}
dependencies {
compile 'com.google.code.gson:gson:2.8.0'
}
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 {
mavenJava(MavenPublication) {
from components.java
}
}
}