-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (51 loc) · 1.46 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
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id 'nebula.release'
id 'base'
id "com.github.hierynomus.license"
id 'org.ajoberstar.git-publish'
id "com.github.ben-manes.versions"
id "io.github.gradle-nexus.publish-plugin"
}
group 'com.blackbuild.klum.ast'
description 'A transformation for creating convenient configuration model DSLs.'
nexusPublishing {
repositories {
sonatype()
}
}
gitPublish {
repoUri = 'git@github.com:klum-dsl/klum-ast.wiki.git'
branch = 'master'
contents {
from 'wiki'
filesMatching('*.md') {
filter(ReplaceTokens, tokens: [version: version.toString()])
}
from('.') {
include("CHANGES.md")
rename('CHANGES.md', "Changelog.md")
}
}
repoDir = layout.buildDirectory.dir("gitPublish")
commitMessage = "updated wiki for $version"
}
releaseCheck.doLast {
if (!gradle.includedBuilds.isEmpty())
throw new GradleException("Releasing is not allowed with composite builds. Please release $gradle.includedBuilds separately")
}
evaluationDependsOnChildren()
tasks.candidate.finalizedBy tasks.gitPublishPush
tasks.final.finalizedBy tasks.gitPublishPush
if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}