This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
95 lines (74 loc) · 2.2 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
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'signing'
ext {
pluginVersion = '0.6-SNAPSHOT'
}
group = 'com.jimdo.gradle'
version = pluginVersion
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile "org.codehaus.groovy:groovy-all:1.8.6"
testCompile "org.spockframework:spock-core:0.6-groovy-1.8"
}
artifacts {
archives jar
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { deployment -> signing.signPom(deployment) }
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
uniqueVersion = false
pom.project {
parent {
groupId 'org.sonatype.oss'
artifactId 'oss-parent'
version '7'
}
name 'Gradle Annotation Processing Tool Plugin'
groupId = 'com.jimdo.gradle'
artifactId = 'gradle-apt-plugin'
version = pluginVersion
packaging = 'jar'
url 'https://github.com/Jimdo/gradle-apt-plugin'
description 'Easy annotation processing with Gradle for your Java project'
inceptionYear '2013'
scm {
url 'https://github.com/Jimdo/gradle-apt-plugin'
connection 'scm:git:https://github.com/Jimdo/gradle-apt-plugin.git'
developerConnection 'scm:git:[email protected]:Jimdo/gradle-apt-plugin.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'stefanodacchille'
name 'Stefano Dacchille'
}
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.10'
}