-
Notifications
You must be signed in to change notification settings - Fork 168
/
build.gradle
100 lines (92 loc) · 3.21 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
plugins {
id "java-library"
id "maven-publish"
id "signing"
id "io.github.gradle-nexus.publish-plugin" version "2.0.0-rc-1"
id "com.gorylenko.gradle-git-properties" version "2.4.1"
}
allprojects {
group = 'org.sitemesh'
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral() // Use Maven Central Repo to search for Dependencies
}
}
subprojects {
apply plugin: 'com.gorylenko.gradle-git-properties'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'java'
afterEvaluate {
jar {
manifest {
attributes(
'Specification-Title' : project.ext.title,
'Specification-Version': project.version
)
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(project.components.java)
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
}
pom {
name = "${project.name}"
description = 'SiteMesh is a web-page layout and decoration framework and web- application integration framework to aid in creating sites consisting of many pages for which a consistent look/feel, navigation and layout scheme is required.'
url = 'https://github.com/sitemesh/sitemesh3'
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
id = 'joewalnes'
name = 'Joe Walnes'
email = 'joe dot walnes at gmail'
}
developer {
id = 'rburton'
name = 'Richard L. Burton III'
email = '[email protected]'
}
developer {
id = 'codeconsole'
name = 'Scott Murphy'
}
}
scm {
connection = 'scm:git:git://github.com/sitemesh/sitemesh3.git'
developerConnection = 'scm:git:[email protected]:sitemesh/sitemesh3.git'
url = 'https://github.com/sitemesh/sitemesh3/'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/sitemesh/sitemesh3/issues'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
java {
withSourcesJar()
withJavadocJar()
}
}
nexusPublishing {
repositories {
sonatype()
}
}