-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (75 loc) · 2.27 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'idea'
}
group 'fr.flowarg'
version '1.0.2'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains:annotations:24.1.0'
implementation 'fr.flowarg:flowmultitools:1.4.3'
implementation 'com.google.code.gson:gson:2.10.1'
}
compileJava {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
options.encoding = 'UTF-8'
}
java {
withJavadocJar()
withSourcesJar()
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
groupId = project.group
version = project.version
artifactId = 'azuljavadownloader'
name = project.name
description = 'Simple tool to download Azul\'s Zulu Java'
url = 'https://github.com/FlowArg/AzulJavaDownloader'
scm {
connection = 'scm:git:git://github.com/FlowArg/AzulJavaDownloader.git'
developerConnection = 'scm:git:ssh://github.com:FlowArg/AzulJavaDownloader.git'
url = 'https://github.com/FlowArg/AzulJavaDownloader/tree/master'
}
licenses {
license {
name = 'GNU General Public License v3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
}
}
developers {
developer {
id = 'flowarg'
name = 'Flow Arg'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
}
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}
}
}
signing {
def signingKey = System.getenv("GPG_PRIVATE_KEY")
def signingPassword = System.getenv("GPG_PASSPHRASE")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}