This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
131 lines (104 loc) · 3.56 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
122
123
124
125
126
127
128
plugins {
id 'net.researchgate.release' version '2.8.1'
id 'io.codearte.nexus-staging' version '0.30.0'
id "com.github.ben-manes.versions" version "0.39.0"
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java-library-distribution'
apply plugin: 'signing'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
testCompile(
'junit:junit:4.13.2',
'org.mockito:mockito-all:2.0.2-beta'
)
}
project.ext.JETTY_VERSION = "9.4.53.v20231009"
group = "com.baqend"
distTar.compression "GZIP"
tasks.register('javadocJar', Jar) {
classifier = 'javadoc'
from javadoc
}
tasks.register('sourcesJar', Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
artifacts {
archives javadocJar, sourcesJar
}
javadoc {
//options.addBooleanOption('html5', true)
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: findProperty('sonatype_user'), password: findProperty('sonatype_password'))
}
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: findProperty('sonatype_user'), password: findProperty('sonatype_password'))
}
pom.project {
name 'Restful Jetty'
packaging 'jar'
description 'A powerful REST Layer for Jetty'
url 'https://github.com/Baqend/restful-jetty'
scm {
connection 'scm:git:https://github.com/Baqend/restful-jetty'
developerConnection 'scm:git:https://github.com/Baqend/restful-jetty'
url 'https://github.com/Baqend/restful-jetty'
}
licenses {
license {
name 'MIT'
url 'https://github.com/Baqend/restful-jetty/blob/master/LICENSE'
}
}
developers {
developer {
id 'com.baqend'
name 'Baqend GmbH'
email '[email protected]'
}
}
}
}
}
}
}
nexusStaging {
packageGroup = "com.baqend.restful-jetty"
serverUrl = "https://s01.oss.sonatype.org/service/local/"
username = findProperty('sonatype_user')
password = findProperty('sonatype_password')
}
tasks.register('assemble') {
dependsOn 'restful-jetty:assemble', 'restful-jetty-server:assemble'
}
release {
preTagCommitMessage = "[ci skip] pre tag commit:"
tagCommitMessage = "creating tag:"
newVersionCommitMessage = "[ci skip] new version commit:"
buildTasks = ['assemble']
git {
requireBranch = 'master'
pushToRemote = 'origin'
}
}
afterReleaseBuild.dependsOn 'restful-jetty:uploadArchives', 'restful-jetty-server:uploadArchives'