forked from spring-projects/spring-webflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
151 lines (126 loc) · 4 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
plugins {
id 'io.spring.dependency-management' version '1.1.3' apply false
id 'com.jfrog.artifactory' version '5.1.4' apply false
id 'org.asciidoctor.jvm.pdf' version '3.3.2'
id 'org.asciidoctor.jvm.gems' version '3.3.2'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'de.undercouch.download' version '4.1.2'
}
ext {
moduleProjects = subprojects.findAll { it.name.startsWith("spring-") }
javaProjects = subprojects - project("spring-js-resources")
}
allprojects {
group = "org.springframework.webflow"
apply plugin: "java-library"
apply plugin: "io.spring.dependency-management"
apply plugin: "org.springframework.build.optional-dependencies"
apply from: "${rootProject.projectDir}/ide.gradle"
dependencyManagement {
imports {
mavenBom "org.springframework:spring-framework-bom:6.0.7"
mavenBom "org.springframework.security:spring-security-bom:6.0.2"
mavenBom "org.junit:junit-bom:5.7.2"
}
dependencies {
dependency "jakarta.servlet:jakarta.servlet-api:6.0.0"
dependency "jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0"
dependency "jakarta.servlet.jsp:jakarta.servlet.jsp-api:3.1.0"
dependency "jakarta.el:jakarta.el-api:5.0.1"
dependency "org.glassfish:jakarta.faces:4.0.2"
dependency "org.apache.myfaces.core:myfaces-impl:4.0.0"
dependency "org.apache.myfaces.core:myfaces-test:4.0.0"
dependency "jakarta.enterprise:jakarta.enterprise.cdi-api:4.0.1"
dependency "jakarta.validation:jakarta.validation-api:3.0.2"
dependencySet(group: 'org.hibernate', version: '5.6.15.Final') {
entry 'hibernate-core-jakarta'
entry 'hibernate-entitymanager'
}
dependency "org.hibernate.validator:hibernate-validator:8.0.0.Final"
dependencySet(group: 'org.apache.logging.log4j', version: '2.14.0') {
entry 'log4j-api'
entry 'log4j-core'
entry 'log4j-slf4j-impl'
entry 'log4j-jul'
}
dependency "org.slf4j:slf4j-api:2.0.6"
dependency("junit:junit:4.13.2")
dependency "org.easymock:easymock:4.2"
dependency "org.hamcrest:hamcrest:2.2"
dependency "org.apache.tomcat:tomcat-jasper-el:10.1.7"
dependency "org.hsqldb:hsqldb:2.7.1"
/*
dependency "org.apache.myfaces.test:myfaces-test22:1.0.8"
*/
}
generatedPomCustomization {
enabled = false
}
resolutionStrategy {
cacheChangingModulesFor 0, "seconds"
}
}
repositories {
mavenCentral()
if (version.endsWith('SNAPSHOT')) {
maven { url "https://repo.spring.io/snapshot" }
}
// For Spring Framework 6 milestones
maven { url "https://repo.spring.io/milestone" }
}
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, "seconds"
cacheDynamicVersionsFor 0, "seconds"
}
}
}
configure(javaProjects) { javaProject ->
test {
useJUnitPlatform()
include(["**/*Tests.class", "**/*Test.class"])
systemProperty("java.awt.headless", "true")
systemProperty("testGroups", project.properties.get("testGroups"))
}
javadoc {
options.memberLevel = JavadocMemberLevel.PROTECTED
options.author = true
options.header = project.name
}
task sourcesJar(type: Jar, dependsOn:classes) {
archiveClassifier = "sources"
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
archiveClassifier = "javadoc"
from javadoc
}
artifacts {
archives sourcesJar
archives javadocJar
}
}
subprojects { subproject ->
apply from: "${rootDir}/gradle/publish-maven.gradle"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
[compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:none"]
sourceSets.test.resources.srcDirs = ["src/main/java", "src/test/resources", "src/test/java"]
jar {
manifest.attributes["Implementation-Title"] = subproject.name
manifest.attributes["Implementation-Version"] = subproject.version
from("${rootProject.projectDir}/src/dist") {
include "license.txt"
include "notice.txt"
into "META-INF"
expand(copyright: new Date().format("yyyy"), version: project.version)
}
}
}
configure(rootProject) {
description = "Spring Web Flow"
apply from: "${rootDir}/gradle/docs.gradle"
}