This repository has been archived by the owner on Jan 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
87 lines (72 loc) · 2.35 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
plugins {
id 'java'
id 'maven'
id 'com.gradle.plugin-publish' version '0.9.5'
id 'net.researchgate.release' version '2.4.0'
}
group 'org.echocat.gradle.plugins'
description 'Gradle plugin to build, test and do other stuff of Golang projects.'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
// Commons
compile group: 'com.google.code.findbugs', name: 'jsr305', version: '1.3.9'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.1'
compile group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
compile group: 'org.apache.commons', name: 'commons-compress', version: '1.10'
compile group: 'org.codehaus.plexus', name: 'plexus-utils', version: '3.0.22'
// REST
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.3.1'
compile group: 'com.google.code.gson', name: 'gson', version: '2.6.2'
// VCS
compile group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '4.6.1.201703071140-r'
// Platform
compile gradleApi()
// Testing
testCompile group: 'junit', name: 'junit', version: '4.11'
}
pluginBundle {
website = 'https://github.com/echocat/gradle-golang-plugin'
vcsUrl = 'https://github.com/echocat/gradle-golang-plugin'
tags = ['golang', 'go', 'build', 'test', 'cover']
description = project.description
plugins {
golangPlugin {
id = 'org.echocat.golang'
displayName = 'Golang Plugin'
}
golangMinorPlugin {
id = 'org.echocat.golang-minor'
displayName = 'Golang Minor Plugin'
}
}
mavenCoordinates {
groupId = project.group
artifactId = project.name
version = project.version
}
}
processResources {
filesMatching('**/version.properties') {
expand(
'version': "$project.version",
'group': "$project.group",
'description': "$project.description"
)
}
}
release {
preTagCommitMessage = 'Preapre release of '
tagCommitMessage = 'Release version '
newVersionCommitMessage = 'Prepare next development version '
tagTemplate = 'v${version}'
}
afterReleaseBuild.dependsOn publishPlugins
tasks.withType(JavaCompile) {
options.warnings = false
options.encoding = "UTF-8"
}