-
Notifications
You must be signed in to change notification settings - Fork 61
/
build.gradle
executable file
·103 lines (88 loc) · 2.63 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
plugins {
id 'groovy'
id 'maven-publish'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.20.0'
id 'org.ajoberstar.git-publish' version '2.1.3'
}
apply from: "$rootProject.projectDir/gradle/integration-test.gradle"
def compatibilityVersion = JavaVersion.VERSION_1_8
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
group = 'com.bmuschko'
version = '2.9.0'
repositories {
mavenCentral()
}
dependencies {
def cargoVersion = '1.9.10'
implementation "org.codehaus.cargo:cargo-daemon-client:$cargoVersion"
testImplementation('org.spockframework:spock-core:1.3-groovy-2.4') {
exclude group: 'org.codehaus.groovy'
}
testImplementation "org.codehaus.cargo:cargo-ant:$cargoVersion"
}
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task groovydocJar(type: Jar) {
dependsOn groovydoc
archiveClassifier = 'groovydoc'
from groovydoc.destinationDir
}
task javadocJar(type: Jar) {
dependsOn javadoc
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives groovydocJar
archives javadocJar
}
gradlePlugin {
plugins {
cargoBasePlugin {
id = 'com.bmuschko.cargo-base'
implementationClass = 'com.bmuschko.gradle.cargo.CargoBasePlugin'
}
cargoPlugin {
id = 'com.bmuschko.cargo'
implementationClass = 'com.bmuschko.gradle.cargo.CargoPlugin'
}
}
}
pluginBundle {
website = "https://github.com/bmuschko/gradle-cargo-plugin"
vcsUrl = "https://github.com/bmuschko/gradle-cargo-plugin"
tags = ['deployment', 'container', 'web', 'ear', 'cargo']
mavenCoordinates {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
}
plugins {
cargoBasePlugin {
displayName = 'Gradle Cargo Base Plugin'
description = 'Plugin that provides Cargo custom task types, pre-configures classpath and deployables.'
}
cargoPlugin {
displayName = 'Gradle Cargo Plugin'
description = 'Plugin that provides a set of local and remote Cargo tasks and exposes extension for configuration.'
}
}
}
gitPublish {
repoUri = '[email protected]:bmuschko/gradle-cargo-plugin.git'
branch = 'gh-pages'
contents {
from(javadoc.outputs.files) {
into 'docs/javadoc'
}
from(groovydoc.outputs.files) {
into 'docs/groovydoc'
}
}
}
gitPublishCopy.dependsOn javadoc, groovydoc