This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
83 lines (68 loc) · 1.75 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
id 'java-library'
// id 'maven'
id 'fr.brouillard.oss.gradle.jgitver' version '0.9.1'
id 'org.springframework.boot' version '2.5.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
}
group = 'com.frog-development'
description = 'docker-secrets-module'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.junit.platform:junit-platform-runner'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jgitver {
strategy = 'PATTERN'
versionPattern = '${v}-SNAPSHOT'
tagVersionPattern = '${v}'
}
test {
reports.html.enabled = false
useJUnitPlatform {
includeTags 'unitTest'
excludeTags 'integrationTest'
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
classifier 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier 'javadoc'
}
artifacts {
archives sourcesJar
archives javadocJar
}
// To specify a license in the pom:
//install {
// repositories.mavenInstaller {
// pom.project {
// licenses {
// license {
// name 'The Apache Software License, Version 2.0'
// url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
// distribution 'repo'
// }
// }
// }
// }
//}
jar {
enabled true
}
wrapper {
gradleVersion = '7.0.2'
distributionType = Wrapper.DistributionType.ALL
}