-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle
130 lines (111 loc) · 3.4 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
118
119
120
121
122
123
124
125
126
127
128
129
130
group = 'org.batcha.gradle.plugins'
description = 'The Git dependencies plugin provides integration of other Gradle project dependencies via git'
version = '0.2'
apply plugin: 'eclipse'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'github-pages'
apply plugin: 'jacoco'
apply plugin: 'sonar-runner'
apply from: rootProject.file('gradle/publishing.gradle')
apply from: rootProject.file('gradle/license.gradle')
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/groups/public/' }
maven { url 'http://maven.tmatesoft.com/content/repositories/releases/' }
maven { url 'http://maven.tmatesoft.com/content/repositories/snapshots/' }
}
dependencies {
classpath 'org.ajoberstar:gradle-git:0.6.3'
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.7.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.3'
}
}
sonarRunner.sonarProperties {
property 'sonar.language', 'grvy'
}
sourceCompatibility = '1.5'
jacoco.toolVersion = '0.7.0.201403182114'
repositories {
mavenCentral()
}
def jgitVersion = '3.3.0.201403021825-r'
dependencies {
compile gradleApi()
compile "org.eclipse.jgit:org.eclipse.jgit:$jgitVersion"
compile "com.google.guava:guava:16.0.1"
testCompile group: 'junit', name: 'junit', version: '4.11'
}
githubPages {
repoUri = 'git@github.com:bat-cha/gradle-plugin-git-dependencies.git'
pages {
from(javadoc.outputs.files) {
into 'docs/javadoc'
}
from(groovydoc.outputs.files) {
into 'docs/groovydoc'
}
}
}
task wrapper(type: Wrapper) { gradleVersion = '1.11' }
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type:Jar) {
classifier = 'javadoc'
from javadoc.outputs.files
}
task groovydocJar(type: Jar, dependsOn:groovydoc) {
classifier = 'groovydoc'
from groovydoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
archives groovydocJar
}
signing {
required { gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
name = 'Sonatype OSS'
repository(url:'https://oss.sonatype.org/service/local/staging/deploy/maven2') {
authentication(userName:sonatypeUserName, password:sonatypePassword)
}
snapshotRepository(url:'https://oss.sonatype.org/content/repositories/snapshots') {
authentication(userName:sonatypeUserName, password:sonatypePassword)
}
beforeDeployment { signing.signPom it }
pom.project {
name project.name
description project.description
url "https://github.com/bat-cha/gradle-plugin-git-dependencies"
licenses {
license {
name "LGPL V3 License"
url "https://raw.github.com/bat-cha/gradle-plugin-git-dependencies/master/lgpl-3.0.txt"
}
}
developers {
developer {
id "bat-cha"
name "Baptiste Chatrain"
email "baptiste.chatrain@gmail.com"
}
}
scm {
connection "scm:git:git://github.com/bat-cha/gradle-plugin-git-dependencies.git"
developerConnection "scm:git:git@github.com:bat-cha/gradle-plugin-git-dependencies.git"
url "https://github.com/bat-cha/gradle-plugin-git-dependencies"
}
}
}
}
}