-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (43 loc) · 1.69 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
import java.nio.file.Files
import java.nio.file.Paths
plugins {
id("java-gradle-plugin")
id("com.gradle.plugin-publish") version "1.0.0"
id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version "1.73.0"
id("idea")
id("org.gradle.kotlin.kotlin-dsl") version "3.1.0"
}
group = "io.github.almogtavor"
version = "1.1.0"
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
}
pluginBundle {
website = "https://github.com/almogtavor/auto-composite-build"
vcsUrl = "https://github.com/almogtavor/auto-composite-build"
// Individual tags for published plugins; overrides bundle tags for the mentioned plugins.
// The keys used to specify the plugins must match the names of the blocks in "gradlePlugin.plugins" (see below).
tags = Arrays.asList("composite-build", "multiproject")
}
gradlePlugin {
plugins {
create("autoCompositeBuildPlugin") {
id = "io.github.almogtavor.auto-composite-build"
implementationClass = "io.github.almogtavor.AutoCompositeBuildPlugin"
displayName = "A Gradle plugin to automate the process of working with composite builds"
description = "This Gradle plugin lets you easily use composite build within a team."
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
task gitChangelogTask(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask) {
fromRepo = file("$projectDir")
file = file("CHANGELOG.md");
String mustacheFile = getProjectDir().getAbsolutePath() + File.separator + "changelog.mustache"
templateContent = String.join("\n", Files.readAllLines(Paths.get(mustacheFile)))
}