This repository was archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
93 lines (79 loc) · 2.33 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
90
91
92
93
buildscript {
ext {
springBootVersion = '2.6.4'
springDocVersion = '1.6.6'
novaVersion = '3.0.4'
therapiRuntimeJavadocVersion = '0.13.0'
jjwtVersion = '0.11.2'
}
}
plugins {
id 'base'
id 'io.freefair.lombok' version '6.4.1' apply false
id 'org.hibernate.orm' version '5.6.5.Final' apply false
id 'com.palantir.git-version' version '0.13.0'
id 'org.springframework.experimental.aot' version '0.11.3'
id 'org.springframework.boot' version "${springBootVersion}" apply false
id 'io.spring.dependency-management' version '1.0.11.RELEASE' apply false
}
def gitVer = gitVersion()
version gitVer.startsWith('v')
? gitVer.substring(1, gitVer.endsWith('.dirty') ? gitVer.length() - 6 : gitVer.length())
: 'edge'
allprojects {
group('net.cryptic-game')
repositories {
mavenCentral {
content { excludeGroup('de.m4rc3l.nova') }
}
maven {
url 'https://repo.spring.io/release/'
content { excludeGroup('de.m4rc3l.nova') }
}
maven {
url 'https://mvn.m4rc3l.de'
content { includeGroup('de.m4rc3l.nova') }
}
}
}
subprojects {
version rootProject.version
apply plugin: 'java'
apply plugin: 'io.freefair.lombok'
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
}
tasks.withType(Jar) {
from "${rootDir}/LICENSE"
manifest.attributes([
'Specification-Title' : project.name,
'Specification-Version' : project.version,
'Specification-Vendor' : 'Cryptic Game (https://github.com/cryptic-game)',
'Implementation-Title' : project.name,
'Implementation-Version' : project.version,
'Implementation-Vendor' : 'Cryptic Game (https://github.com/cryptic-game)',
'Implementation-Timestamp': new Date().format('yyyy-MM-dd\'T\'HH:mm:ssZ')
])
}
tasks.withType(JavaCompile) {
doFirst {
options.encoding = 'UTF-8'
}
}
lombok {
config.put('lombok.equalsandhashcode.callsuper', 'CALL')
config.put('lombok.tostring.callsuper', 'CALL')
}
test {
useJUnitPlatform()
}
jar {
preserveFileTimestamps false
reproducibleFileOrder true
}
}