-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (49 loc) · 1.45 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
plugins {
id 'java-gradle-plugin'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '1.3.0'
// /~https://github.com/qoomon/gradle-git-versioning-plugin
id 'me.qoomon.git-versioning' version '6.4.4'
}
group 'io.github.itzg'
version '1.0-SNAPSHOT'
gitVersioning.apply {
refs {
tag('.+') {
version = '${ref}'
}
branch('main') {
version = '${describe.tag}-SNAPSHOT'
}
branch('.+') {
version = '${ref}-SNAPSHOT'
}
}
// optional fallback configuration in case of no matching ref configuration
rev {
version = '${commit}'
}
}
gradlePlugin {
website = '/~https://github.com/itzg/simple-boot-image-gradle-plugin'
vcsUrl = '/~https://github.com/itzg/simple-boot-image-gradle-plugin'
plugins {
simpleBootImagePlugin {
id = 'io.github.itzg.simple-boot-image'
displayName = 'Simple Boot Image Plugin'
description = 'A simple Gradle plugin to build very simple Spring Boot application Docker images'
tags.set(['docker', 'spring boot'])
implementationClass = 'me.itzg.simpleimg.SimpleBootImagePlugin'
}
}
}
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-gradle-plugin
implementation 'org.springframework.boot:spring-boot-gradle-plugin:3.4.1'
}
test {
useJUnitPlatform()
}