-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
87 lines (74 loc) · 2.35 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
plugins {
id 'groovy'
id 'maven'
id 'signing'
}
dependencies {
implementation gradleApi()
implementation localGroovy()
}
repositories {
mavenCentral()
}
sourceCompatibility='1.8'
targetCompatibility='1.8'
task javadocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'javadoc'
from "${buildDir}/docs/groovydoc"
}
task sourcesJar(type: Jar) {
from sourceSets.main.groovy.srcDirs
classifier = 'sources'
}
task setGradleVersion(type: Wrapper) {
gradleVersion = '6.1'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
signing {
required {gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
if (project.hasProperty('publish_repository')){
uploadArchives {
it.dependsOn(signArchives)
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: publish_repository) {
authentication(userName: publish_user, password: publish_password)
}
pom.project {
licenses {
license {
name 'GNU Lesser General Public License'
url 'http://www.gnu.org/licenses/lgpl.html'
distribution 'repo'
}
}
organization {
name 'Alkacon Software'
url 'http://www.alkacon.com'
}
developers {
developer {
name 'Alkacon Software'
url 'http://www.alkacon.com'
}
}
url 'http://www.opencms.org'
name 'OpenCms Modules Gradle Plugin'
description 'This Gradle plugin can be used to build modules for OpenCms.'
scm {
url 'scm:[email protected]:alkacon/opencms-gradle-plugin.git'
connection 'scm:[email protected]:alkacon/opencms-gradle-plugin.git'
developerConnection 'scm:[email protected]:alkacon/opencms-gradle-plugin.git'
}
}
}
}
}
}