-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
129 lines (109 loc) · 3.54 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
plugins {
id('java')
id('eclipse')
id('idea')
id('maven-publish')
id('signing')
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}
version = '2.1.1-SNAPSHOT'
group = 'de.otto'
sourceCompatibility = 17
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
ext.libraries = [
thymeleaf3: [
'org.thymeleaf:thymeleaf',
'org.thymeleaf:thymeleaf-spring6'
]
]
dependencies {
ext.springBootVersion = '3.3.3'
implementation(platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}"))
compileOnly(libraries.thymeleaf3)
implementation('org.springframework:spring-context')
implementation('org.springframework:spring-beans')
implementation('org.springframework.boot:spring-boot-autoconfigure')
implementation('jakarta.servlet:jakarta.servlet-api')
implementation('jakarta.annotation:jakarta.annotation-api')
testImplementation("org.junit.jupiter:junit-jupiter-engine")
testImplementation(libraries.thymeleaf3)
testImplementation("org.mockito:mockito-core")
testImplementation("org.hamcrest:hamcrest-core")
testImplementation("org.hamcrest:hamcrest-library")
testImplementation("org.awaitility:awaitility")
testImplementation('org.springframework:spring-test')
compileOnly "org.springframework.boot:spring-boot-configuration-processor"
}
test {
useJUnitPlatform()
}
jar {
manifest.attributes provider: 'gradle'
}
nexusPublishing {
repositories {
sonatype()
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'esi-include-thymeleaf3-dialect'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'esi-include-thymeleaf3-dialect'
packaging 'jar'
description = 'This library provides a thymeleaf3 dialect that resolves esi:include tags.ü'
url = 'http://github.com/otto-de/esi-include-thymeleaf3-dialect'
scm {
url = 'scm:[email protected]:otto-de/esi-include-thymeleaf3-dialect.git'
connection = 'scm:[email protected]:otto-de/esi-include-thymeleaf3-dialect.git'
developerConnection = 'scm:[email protected]:otto-de/esi-include-thymeleaf3-dialect.git'
}
licenses {
license {
name = "The Apache Software License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = 'repo'
}
}
developers {
developer {
id = 'gsteinacker'
name = 'Guido Steinacker'
}
developer {
id = 'fbregulla'
name = 'Frank Bregulla'
}
}
}
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}