-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
55 lines (46 loc) · 1.36 KB
/
build.gradle.kts
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
plugins {
id("com.gradle.plugin-publish") version "0.12.0"
id("fr.brouillard.oss.gradle.jgitver") version "0.9.1"
id("java-gradle-plugin")
id("maven") // for local tests
id("se.bjurr.gitchangelog.git-changelog-gradle-plugin") version "1.64"
}
group = "fr.brouillard.oss.gradle"
jgitver {
useDirty = true
}
repositories {
mavenCentral()
jcenter()
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}
}
gradlePlugin {
plugins {
create("jgitverPlugin") {
displayName = "jgitver Gradle plugin"
id = "fr.brouillard.oss.gradle.jgitver"
implementationClass = "fr.brouillard.oss.gradle.plugins.JGitverPlugin"
}
}
}
pluginBundle {
website = "https://github.com/jgitver/gradle-jgitver-plugin"
vcsUrl = "https://github.com/jgitver/gradle-jgitver-plugin"
description = "gradle plugin that defines automatically project version using jgitver"
tags = listOf("versioning", "jgitver", "git")
}
dependencies {
implementation("fr.brouillard.oss:jgitver:0.12.0")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.register("changelog", se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask::class) {
file("CHANGELOG.md")
}
tasks.withType<JavaCompile> {
options.isDeprecation = true
}