forked from bat-cha/gradle-plugin-git-dependencies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (91 loc) · 2.71 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
group = 'org.batcha.gradle.plugins'
description = 'The Git dependencies plugin provides integration of other Gradle project dependencies via git'
version = '0.1'
apply plugin: 'eclipse'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'github-pages'
buildscript {
repositories { mavenCentral() }
dependencies { classpath 'org.ajoberstar:gradle-git:0.2.3' }
}
repositories { mavenCentral() }
dependencies {
compile (gradleApi())
compile ('org.eclipse.jgit:org.eclipse.jgit:2.3.1.201302201838-r') {
transitive true
}
testCompile group: 'junit', name: 'junit', version: '4.11'
groovy localGroovy()
}
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.6' }
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"
}
}
}
}
}