-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
122 lines (102 loc) · 3.98 KB
/
build.gradle
File metadata and controls
122 lines (102 loc) · 3.98 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
plugins {
id "biz.aQute.bnd.builder" version "$bndVersion"
id 'signing'
id 'pl.allegro.tech.build.axion-release' version '1.13.6'
}
scmVersion {
tag {
prefix = 'ical4j-command-'
}
versionCreator 'versionWithBranch'
branchVersionCreator = ['main': 'simple']
nextVersion {
suffix = 'pre'
separator = '-'
}
}
configure(subprojects) {
apply plugin: 'java-library'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
mavenLocal()
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url = 'https://s01.oss.sonatype.org/content/repositories/snapshots'
}
}
java {
sourceCompatibility = 17
targetCompatibility = 17
withJavadocJar()
withSourcesJar()
}
test {
useJUnitPlatform()
}
dependencies {
api libs.ical4j.connector.api, libs.ical4j.integration.api, libs.ical4j.serializer,
libs.ical4j.vcard, libs.ical4j, libs.ical4j.extensions
// implementation ("org.eclipse.jetty:jetty-server:$jettyVersion") {
// exclude group: 'org.slf4j', module: 'slf4j-api'
// }
// implementation ("org.eclipse.jetty:jetty-servlet:$jettyVersion") {
// exclude group: 'org.slf4j', module: 'slf4j-api'
// }
// implementation 'org.glassfish.jersey.containers:jersey-container-jetty-http:3.1.1',
// 'org.glassfish.jersey.inject:jersey-hk2:3.1.1'
// compileOnly "biz.aQute.bnd:biz.aQute.bndlib:$bndVersion"
compileOnly 'org.osgi:osgi.core:8.0.0',
'org.osgi:org.osgi.service.component.annotations:1.5.0',
'org.osgi:org.osgi.service.metatype.annotations:1.4.1',
'org.osgi:org.osgi.annotation:6.0.0'
// spock
testImplementation platform(libs.spock.bom), libs.spock.core
}
group = 'org.ical4j'
description = 'Manipulate iCalendar data'
version = scmVersion.version
ext {
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
publishing {
publications {
ical4j_command(MavenPublication) {
from components.java
pom.withXml {
asNode().appendNode('name', project.name)
asNode().appendNode('description', project.description)
asNode().appendNode('url', 'http://ical4j.github.io')
def scmNode = asNode().appendNode('scm')
scmNode.appendNode('url', 'https://github.com/ical4j/ical4j-command')
scmNode.appendNode('connection', 'scm:git@github.com:ical4j/ical4j-command.git')
scmNode.appendNode('developerConnection', 'scm:git@github.com:ical4j/ical4j-command.git')
def licenseNode = asNode().appendNode('licenses').appendNode('license')
licenseNode.appendNode('name', 'iCal4j - License')
licenseNode.appendNode('url', 'https://raw.githubusercontent.com/ical4j/ical4j/master/LICENSE')
licenseNode.appendNode('distribution', 'repo')
def developerNode = asNode().appendNode('developers').appendNode('developer')
developerNode.appendNode('id', 'fortuna')
developerNode.appendNode('name', 'Ben Fortuna')
}
}
}
repositories {
maven {
name = "OSSRH"
url = !isReleaseVersion ? "https://central.sonatype.com/repository/maven-snapshots/" : "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
signing {
required = { isReleaseVersion }
sign publishing.publications.ical4j_command
}
}