-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
73 lines (62 loc) · 1.59 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
/**
* Configures the build script classpath for this project.
*/
buildscript {
repositories {
mavenCenter()
maven {
url 'http://repo.thinkjoy.local/content/groups/public/'
}
}
dependencies {
classpath 'com.atlassian.jgitflow:jgit-flow-core:0.21'
classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1'
}
}
group = 'cn.thinkjoy.gradle.plugins'
version = '1.0.0'
description = "Gradle Gitflow Plugin"
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'maven-publish-auth'
repositories {
mavenCenter()
maven {
url 'http://repo.thinkjoy.local/content/groups/public/'
}
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.atlassian.jgitflow:jgit-flow-core:0.21'
compile 'org.codehaus.plexus:plexus-components:1.3.1'
compile 'org.codehaus.plexus:plexus-utils:3.0.17'
compile 'com.jcraft:jsch.agentproxy.jsch:0.0.7'
compile 'com.jcraft:jsch.agentproxy.usocket-jna:0.0.7'
compile 'com.jcraft:jsch.agentproxy.sshagent:0.0.7'
}
publishing {
publications {
mavenJava(MavenPublication) { from components.java }
}
repositories {
maven {
name = 'thinkjoy'
url "http://repo.thinkjoy.local/content/repositories/${project.version.endsWith('-SNAPSHOT') ? 'snapshots' : 'releases'}"
}
}
}
tasks.withType(Compile) { options.encoding = 'UTF-8' }
task sourcesJar(type: Jar, dependsOn:classes) {
classifier 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}