-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (69 loc) · 1.88 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
plugins {
id "java"
id 'maven-publish'
id 'org.jreleaser' version '1.13.1'
}
version = project.version
group = project.group
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
java {
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'me.mrnavastar'
artifactId = 'r'
from components.java
pom {
name = 'R'
description = 'The Jolliest Java Reflection Library on the 7 Seas'
url = 'https://github.com/MrNavaStar/R'
inceptionYear = '2024'
licenses {
license {
name = 'CC0-1.0'
url = 'https://creativecommons.org/publicdomain/zero/1.0/legalcode.en'
}
}
developers {
developer {
id = 'mrnavastar'
name = 'MrNavaStar'
}
}
scm {
connection = 'scm:git:https://github.com/MrNavaStar/R.git'
developerConnection = 'scm:git:ssh://github.com/MrNavaStar/R.git'
url = 'http://github.com/MrNavaStar/R'
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir('staging-deploy')
}
}
}
jreleaser {
signing {
active = 'ALWAYS'
armored = true
}
deploy {
maven {
mavenCentral {
sonatype {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
stagingRepository('build/staging-deploy')
}
}
}
}
}