-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
93 lines (77 loc) · 1.98 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
plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'maven-publish'
id "com.gradle.plugin-publish" version "0.15.0"
id 'com.diffplug.spotless' version '5.12.5'
}
allprojects {
// Let's eat our own dog food (cannot be part of plugins block, though).
apply plugin: ch.ergon.gradle.goodies.versioning.VersioningPlugin
group = 'ch.ergon'
repositories {
mavenCentral()
}
test {
maxParallelForks = Runtime.runtime.availableProcessors()
}
}
test {
inputs.files files("./versioning-test-data/")
}
spotless {
java {
eclipse().configFile(
file("${project.rootDir}/config/eclipse/org.eclipse.jdt.ui.prefs"),
file("${project.rootDir}/config/eclipse/org.eclipse.jdt.core.prefs")
)
licenseHeaderFile(file("$project.rootDir/config/header.txt"))
importOrder()
removeUnusedImports()
}
groovy {
greclipse()
licenseHeaderFile(file("$project.rootDir/config/header.txt"))
indentWithTabs()
}
groovyGradle {
greclipse()
indentWithTabs()
}
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
test {
useJUnitPlatform()
}
dependencies {
implementation gradleApi()
implementation "org.codehaus.groovy:groovy-all:3.0.7"
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: jgitVersion
testImplementation "org.spockframework:spock-core:2.0-groovy-3.0"
}
gradlePlugin {
plugins {
versioningPlugin {
id = 'ch.ergon.gradle.goodies.versioning'
implementationClass = 'ch.ergon.gradle.goodies.versioning.VersioningPlugin'
}
}
}
pluginBundle {
vcsUrl = 'https://github.com/kungfoo/ergon-gradle-goodies-versioning'
description = 'Simple and automatic versioning from your git history for your java and android projects.'
tags = [
'versioning',
'git',
'java',
'android'
]
plugins {
versioningPlugin {
displayName = 'Simple and automatic versioning from your git history for your java and android projects.'
id = 'ch.ergon.gradle.goodies.versioning'
website = 'https://github.com/kungfoo/ergon-gradle-goodies-versioning'
}
}
}