-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
121 lines (105 loc) · 3.14 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
plugins {
id 'org.jreleaser' version '1.17.0'
id 'java'
}
allprojects {
description = "A blueprint adapting vert.x to a distributed game server"
group = "io.github.tfkfan"
version = "1.0.1"
}
subprojects {
apply plugin: "java"
apply plugin: "java-library"
apply plugin: "maven-publish"
apply plugin: "org.jreleaser"
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
mavenLocal()
}
var staging = layout.buildDirectory.dir("staging-deploy")
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = project.name
description = (project.name + ' description')
url = 'https://github.com/tfkfan/orbital'
developers {
developer {
id = 'tfkfan'
name = 'Artem Baltser'
email = '[email protected]'
organizationUrl = 'https://tfkfan.github.io/page'
}
}
licenses {
license {
name = 'MIT'
url = 'https://github.com/tfkfan/orbital/blob/master/LICENSE.md'
}
}
scm {
connection = 'scm:git://github.com/tfkfan/orbital.git'
developerConnection = 'scm:ssh://[email protected]:tfkfan/orbital.git'
url = 'https://tfkfan.github.io/page'
}
}
groupId project.group
artifactId project.name
version project.version
withBuildIdentifier()
}
}
repositories {
maven {
setUrl(staging)
}
}
}
jreleaser {
gitRootSearch = true
project {
authors = ['tfkfan']
license = 'MIT'
links {
homepage = 'https://tfkfan.github.io/page'
}
description = "Orbital"
inceptionYear = '2025'
}
signing {
active = 'ALWAYS'
armored = true
verify = true
}
release {
github {
skipRelease = true
skipTag = true
}
}
deploy {
maven {
mavenCentral {
app {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
sign = true
retryDelay = 200
checksums = true
sourceJar = true
javadocJar = true
stagingRepository(staging.get().toString())
}
}
}
}
}
}
jreleaserConfig.enabled = false
jreleaserFullRelease.enabled = false