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
89 lines (72 loc) · 1.97 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
84
85
86
87
88
89
plugins {
id 'java-library'
id 'maven'
id 'fr.brouillard.oss.gradle.jgitver' version '0.9.1'
}
group 'com.frog-development.testcontainers'
description = 'testcontainers-pgroonga'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
def logbackVersion = '1.2.6'
def postgresqlVersion = '42.2.24'
def testcontainersVersion = '1.16.0'
def springBootVersion = '2.5.5'
implementation "ch.qos.logback:logback-classic:$logbackVersion"
implementation "org.postgresql:postgresql:$postgresqlVersion"
implementation "org.testcontainers:postgresql:$testcontainersVersion"
implementation "org.testcontainers:junit-jupiter:$testcontainersVersion"
testImplementation "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
testImplementation "org.springframework.boot:spring-boot-starter-jdbc:$springBootVersion"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jgitver {
strategy = 'PATTERN'
versionPattern = '${v}-SNAPSHOT'
tagVersionPattern = '${v}'
}
test {
reports.html.enabled = false
useJUnitPlatform {
}
}
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 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}
}
jar {
enabled true
}
wrapper {
gradleVersion = "6.7.1"
distributionType = Wrapper.DistributionType.ALL
}