-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (43 loc) · 1.17 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
plugins {
id 'java'
id 'maven-publish'
}
group = 'dev.jsinco.abstractjavafilelib'
version = '2.4'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.yaml:snakeyaml:2.2'
implementation 'com.google.guava:guava:33.0.0-jre'
implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.moandjiezana.toml:toml4j:0.7.2'
implementation 'org.jetbrains:annotations:24.0.0'
}
publishing {
def user = System.getenv("repo_username")
def pass = System.getenv("repo_secret")
repositories {
if (user != null && pass != null) {
maven {
name = "jsinco-repo"
url = uri("https://repo.jsinco.dev/releases")
credentials {
username = user
password = pass
}
}
}
}
publications {
if (user != null && pass != null) {
maven(MavenPublication) {
setGroup(group)
setVersion(version)
setArtifactId("AbstractJavaFileLib")
from components.java
}
}
}
}