-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (52 loc) · 1.52 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
plugins {
id 'java-gradle-plugin'
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
id 'maven-publish' // local testing
id 'com.gradle.plugin-publish' version '0.15.0'
}
// must have a hyphen to match plugin id
group 'de.stefan-oltmann'
version '0.2.2'
compileJava {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
implementation 'org.eclipse.jgit:org.eclipse.jgit:5.12.0.202106070339-r'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
}
test {
useJUnitPlatform()
}
gradlePlugin {
plugins {
gitVersioning {
id = 'de.stefan-oltmann.git-versioning'
displayName = 'Git Versioning'
description = 'This extension will adjust the project version based on current git timestamp.'
implementationClass = 'de.stefan_oltmann.GradleGitVersioningPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/StefanOltmann/gradle-git-versioning-plugin'
vcsUrl = 'https://github.com/StefanOltmann/gradle-git-versioning-plugin.git'
tags = ['git', 'versioning', 'version']
plugins {
gitVersioning {
id = 'de.stefan-oltmann.git-versioning'
displayName = 'Git Versioning Plugin'
}
}
}