forked from avioconsulting/mule-linter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
117 lines (104 loc) · 3.31 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
plugins {
id 'base'
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
id 'org.jreleaser' version '1.4.0'
}
jreleaser {
configFile = 'jreleaser.yml'
}
subprojects {
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'net.thauvin.erik.gradle.semver'
group 'com.avioconsulting.mule'
semver {
properties = parent.getProject().getProjectDir().toPath().resolve("version.properties").toString()
}
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withSourcesJar()
}
dependencies {
implementation (group: 'org.codehaus.groovy', name: 'groovy-all', version: '3.0.8', ext: 'pom'){
transitive= true
}
}
groovydoc {
doLast {
if(project.name == 'mule-linter-core') {
copy {
from 'build/docs/groovydoc'
into '../docs/groovydoc'
}
}
}
}
task groovydocJar(type: Jar, dependsOn: groovydoc ) {
classifier 'javadoc' // must use javadoc classifier to be able to deploy to Sonatype
from groovydoc.destinationDir
}
jar.dependsOn(groovydocJar)
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact(groovydocJar) {
classifier = 'javadoc'
}
pom {
name = project.name
description = project.name
url = 'https://github.com/avioconsulting/mule-linter'
inceptionYear = '2020'
licenses {
license {
name = 'MIT'
url = 'https://spdx.org/licenses/MIT.html'
}
}
developers {
developer {
id = 'adesjardin'
name = 'Adam Desjardin'
}
developer {
id = 'kkingavio'
name = 'Kevin King'
}
developer {
id = 'manikmagar'
name = 'Manik Magar'
}
developer {
id = 'MrMcCartney'
name = 'Reed McCartney'
}
developer {
id = 'vanessacobis'
name = 'Vanessa Cobis'
}
}
scm {
connection = 'scm:git:https://github.com/avioconsulting/mule-linter.git'
developerConnection = 'scm:git:ssh://github.com/avioconsulting/mule-linter.git'
url = 'http://github.com/avioconsulting/mule-linter'
}
}
}
}
repositories {
maven {
url = layout.getBuildDirectory().dir("staging-deploy")
}
}
}
}