-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (33 loc) · 833 Bytes
/
build.gradle
File metadata and controls
38 lines (33 loc) · 833 Bytes
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
plugins {
id 'java'
id 'maven'
}
apply plugin: 'maven'
group 'ru.redguy'
version '1.1.4'
repositories {
maven {
url "https://rep.redguy.org/repo/maven-proxy/"
}
}
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'org.jetbrains:annotations:23.0.0'
}
//utf-8
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "https://rep.redguy.org/repo/maven/") {
authentication(userName: System.getenv("MVN_USER"), password: System.getenv("MVN_PASSWORD"))
}
pom.version = project.version
pom.artifactId = "redguyapi"
pom.groupId = "ru.redguy"
}
}
}