This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
69 lines (56 loc) · 1.79 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
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'idea'
id 'com.gradle.plugin-publish' version '0.21.0'
id 'com.palantir.git-version' version '0.13.0'
id 'com.palantir.idea-test-fix' version '0.1.0'
id 'nebula.maven-publish' version '9.5.3'
}
repositories {
mavenCentral()
}
sourceCompatibility = '1.7'
dependencies {
compile 'org.codehaus.groovy:groovy-backports-compat23:2.3.5'
testCompile gradleTestKit()
testCompile 'com.netflix.nebula:nebula-test:7.0.0'
// So we can run tests directly from IntelliJ
testRuntime files(tasks.pluginUnderTestMetadata)
}
tasks.idea.dependsOn 'pluginUnderTestMetadata'
gradlePlugin {
automatedPublishing = false
plugins {
processors {
id = 'org.inferred.processors'
implementationClass = 'org.inferred.gradle.ProcessorsPlugin'
}
}
}
//// Tests ////////////////////////////////////////////////////////////////////////////
test {
testLogging {
exceptionFormat = 'full'
}
}
//// Publication //////////////////////////////////////////////////////////////////////
group = 'org.inferred'
version = (System.env.CIRCLE_TAG ?: gitVersion()).replaceAll('^v','')
pluginBundle {
website = 'https://github.com/palantir/gradle-processors'
vcsUrl = 'https://github.com/palantir/gradle-processors'
plugins {
processors {
id = 'org.inferred.processors'
displayName = 'Processors plugin'
description = 'Clean integration of Java 6+ annotation processors with the Eclipse and IDEA plugins'
tags = ['java', 'annotation', 'processor']
}
}
}
// Configure the publishPlugins task
tasks.publish.dependsOn tasks.publishPlugins
tasks.publishPlugins.onlyIf { versionDetails().isCleanTag }
project.ext.'gradle.publish.key' = System.env["GRADLE_KEY"]
project.ext.'gradle.publish.secret' = System.env["GRADLE_SECRET"]