-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
78 lines (66 loc) · 1.85 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
plugins {
id 'com.gradle.plugin-publish' version '0.13.0'
id 'java-gradle-plugin'
id 'net.researchgate.release' version '2.7.0'
id 'com.tomtom.gradle.updatechangelog' version '1.0.8'
id 'groovy'
id 'maven-publish'
}
apply from: "$rootDir/gradle/functional-test.gradle"
group = 'com.tomtom.gradle'
gradlePlugin {
plugins {
updateChangelog {
id = "${project.group}.updatechangelog"
implementationClass = "${project.group}.updatechangelog.UpdateChangelogPlugin"
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation localGroovy()
testImplementation('org.junit.jupiter:junit-jupiter-api:5.3.1')
testCompile('org.spockframework:spock-core:1.2-groovy-2.4') {
exclude group: 'org.codehaus.groovy'
}
// This dependency is required by the spockframework since
// it is still based on JUnit4.
testRuntimeOnly('org.junit.vintage:junit-vintage-engine:5.3.1')
}
test {
useJUnitPlatform()
testLogging {
events 'passed', 'skipped', 'failed'
}
reports {
html.enabled = true
junitXml.enabled = true
}
}
compileGroovy {
targetCompatibility = JavaVersion.VERSION_1_8
options.encoding = 'UTF-8'
options.compilerArgs = ['-Xlint:all']
options.deprecation = true
options.warnings = true
}
pluginBundle {
website = 'https://github.com/tomtom-international/updatechangelog-gradle-plugin'
vcsUrl = 'https://github.com/tomtom-international/updatechangelog-gradle-plugin'
description = 'A plugin that automatically updates the version in your changelog file.'
plugins {
updateChangelog {
displayName = 'Gradle changelog update plugin'
tags = ['changelog', 'release']
version = "${project.version}"
}
}
}
changelog {
versionPlaceholder = '# Changelog'
changelogFilename = 'CHANGELOG.md'
}
afterReleaseBuild.dependsOn publishPlugins
preTagCommit.dependsOn updateChangelog