-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild.gradle
More file actions
104 lines (88 loc) · 2.64 KB
/
build.gradle
File metadata and controls
104 lines (88 loc) · 2.64 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
plugins {
id 'java-library'
id 'idea'
id 'maven-publish'
id 'signing'
}
group = 'fr.flowarg'
version = '1.9.4'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withJavadocJar()
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
tasks.named("compileJava").configure {
options.release.set(8)
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
api libs.gson
api libs.flowmultitools
api libs.annotations
// Only for internal tests
testImplementation libs.oll
testImplementation libs.junit.jupiter
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.withType(Jar).configureEach {
archiveBaseName.set("flowupdater")
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
groupId = project.group
version = project.version
artifactId = 'flowupdater'
name = project.name
description = 'The free and open source solution to update Minecraft.'
url = 'https://github.com/FlowArg/FlowUpdater'
scm {
connection = 'scm:git:git://github.com/FlowArg/FlowUpdater.git'
developerConnection = 'scm:git:ssh://github.com:FlowArg/FlowUpdater.git'
url = 'https://github.com/FlowArg/FlowUpdater/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 = 'flow@flowarg.fr'
}
}
}
}
}
repositories {
maven {
credentials {
username = System.getenv("NEW_CENTRAL_ID")
password = System.getenv("NEW_CENTRAL_TOKEN")
}
url = "https://ossrh-staging-api.central.sonatype.com/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
}
test {
useJUnitPlatform()
}