-
Notifications
You must be signed in to change notification settings - Fork 236
/
Copy pathbuild.gradle
153 lines (129 loc) · 4.01 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
152
153
plugins {
id 'io.spring.dependency-management' version '1.1.3' apply false
id 'org.asciidoctor.jvm.pdf' 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"
apply from: "${rootDir}/gradle/publications.gradle"
dependencyManagement {
imports {
mavenBom "org.springframework:spring-framework-bom:${springFrameworkVersion}"
mavenBom "org.springframework.security:spring-security-bom:6.0.8"
mavenBom "org.junit:junit-bom:5.11.3"
}
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.1"
dependency "jakarta.el:jakarta.el-api:5.0.1"
dependency "org.glassfish:jakarta.faces:4.0.6"
dependency "org.apache.myfaces.core:myfaces-impl:4.0.2"
dependency "org.apache.myfaces.core:myfaces-test:4.0.2"
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.16"
dependency("junit:junit:4.13.2")
dependency "org.easymock:easymock:5.4.0"
dependency "org.hamcrest:hamcrest:3.0"
dependency "org.apache.tomcat:tomcat-jasper-el:10.1.31"
dependency "org.hsqldb:hsqldb:2.7.3"
/*
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
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
}
subprojects { subproject ->
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"
}