-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
59 lines (49 loc) · 1.55 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
plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.16.0'
}
pluginBundle {
website = 'https://github.com/cdancy/gradle-artifactory-rest-plugin'
vcsUrl = 'https://github.com/cdancy/gradle-artifactory-rest-plugin.git'
tags = ['gradle', 'artifactory', 'rest', 'plugin', 'gradle-artifactory-rest-plugin', 'artifactory-rest']
}
gradlePlugin {
plugins {
main {
id = 'com.github.gradle.artifactory.rest'
displayName = 'Gradle Artifactory Rest Plugin'
description = 'Gradle Plugin to work against Artifactorys REST Api'
implementationClass = 'com.cdancy.gradle.artifactory.rest.ArtifactoryRestPlugin'
}
}
}
validateTaskProperties { failOnWarning = true }
repositories {
gradlePluginPortal()
mavenCentral()
}
dependencies {
compile localGroovy()
compile gradleApi()
testCompile gradleTestKit()
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude module: 'groovy-all'
}
//Make sure this matches ArtifactoryRestPlugin.ARTIFACTORY_REST_DEFAULT_VERSION
testCompile 'io.github.cdancy:artifactory-rest:1.1.1:all'
}
ext.compatibilityVersion = '1.8'
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
tasks.withType(JavaCompile) {
options.compilerArgs += ["-Xlint:-options"]
}
tasks.publishPlugins {
onlyIf { !"$version".endsWith('SNAPSHOT') }
}
task release {
outputs.upToDateWhen { false }
dependsOn('publishPlugins')
}