Skip to content

Commit 258e47d

Browse files
committed
new gradle build files: cleanup
1 parent 24ecd14 commit 258e47d

File tree

5 files changed

+4
-131
lines changed

5 files changed

+4
-131
lines changed

build.gradle

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,8 @@
11
project.ext {
22
VERSION_JAVACC = '7.0.13'
33
DEP_SPOCK_BOM = 'org.spockframework:spock-bom:2.3-groovy-4.0'
4+
DEP_SPRING_FW_BOM = 'org.springframework:spring-framework-bom:6.2.11'
45
}
5-
/*
6-
project.ext {
7-
VERSION_JAVACC = '7.0.13'
8-
DEP_SERVLET_API = 'jakarta.servlet:jakarta.servlet-api:6.1.0'
9-
DEP_JANINO = 'org.codehaus.janino:janino:3.1.12'
10-
DEP_JAVASSIST = 'org.javassist:javassist:3.30.2-GA'
11-
DEP_JAVACC = "net.java.dev.javacc:javacc:${VERSION_JAVACC}"
12-
13-
DEP_GROOVY = 'org.apache.groovy:groovy:4.0.27'
14-
DEP_LOMBOK_VERSION = '1.18.40'
15-
DEP_SPOCK_BOM = 'org.spockframework:spock-bom:2.3-groovy-4.0'
16-
DEP_SPOCK_CORE = 'org.spockframework:spock-core'
17-
DEP_JOOL = 'org.jooq:jool:0.9.15'
18-
DEP_VAVR = 'io.vavr:vavr:0.10.6'
19-
DEP_VERSION_SPRING_FW = '6.2.11'
20-
DEP_VERSION_MOCKITO = '5.18.0'
21-
DEP_VERSION_SLF4J = '2.0.17'
22-
DEP_VERSION_JUNIT = '5.11.4'
23-
DEP_VERSION_ASSERTJ = '3.27.4'
24-
DEP_VERSION_JIMFS = '1.3.1'
25-
DEP_RECORD_BUILDER = '48'
26-
DEP_OPEN_REWRITE_BOM = '3.9.0'
27-
}
28-
*/
296
subprojects {
307
tasks.withType(Test) {
318
testLogging {

collage/build.gradle

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -52,44 +52,3 @@ sourceSets {
5252
}
5353
}
5454
}
55-
56-
57-
/*
58-
dependencies {
59-
implementation project(':xc-core')
60-
implementation DEP_JAVASSIST
61-
implementation DEP_JAVACC
62-
testImplementation DEP_GROOVY
63-
testImplementation platform(DEP_SPOCK_BOM)
64-
testImplementation DEP_SPOCK_CORE
65-
implementation DEP_JOOL
66-
implementation DEP_VAVR
67-
annotationProcessor "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
68-
compileOnly "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
69-
testAnnotationProcessor "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
70-
testCompileOnly "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
71-
}
72-
73-
sourceSets {
74-
main {
75-
java {
76-
srcDir 'build/src/java'
77-
}
78-
}
79-
}
80-
81-
task jcc (dependsOn: 'renameJCC', type: JavaCCTask) {
82-
inputFile file('src/main/javacc/templateparser.jj')
83-
genDir file('build/src/java/org/collage/jcc')
84-
}
85-
86-
compileJava.dependsOn(jcc)
87-
88-
task listJars {
89-
doLast {
90-
configurations.compile.each { File file ->
91-
println file.name
92-
}
93-
}
94-
}
95-
*/

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
[versions]
55
recordbuilder = "48"
6+
javacc = "7.0.13"
7+
#spock-bom = 'org.spockframework:spock-bom:2.3-groovy-4.0'
68

79
[libraries]
810
jool = { group = "org.jooq", name = "jool", version = "0.9.15" }

jst/build.gradle

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -54,46 +54,7 @@ dependencies {
5454
testImplementation libs.assertj.core
5555
}
5656

57-
/*
58-
dependencies {
59-
implementation project(':xc-core')
60-
61-
implementation DEP_SERVLET_API
62-
implementation DEP_JAVACC
63-
implementation DEP_JANINO
64-
65-
annotationProcessor "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
66-
compileOnly "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
67-
testAnnotationProcessor "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
68-
testCompileOnly "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
69-
implementation DEP_JOOL
70-
implementation DEP_VAVR
71-
}
72-
73-
sourceSets {
74-
main {
75-
java {
76-
srcDir 'build/src/java'
77-
}
78-
}
79-
}
80-
81-
task jcc (dependsOn: 'renameJCC', type: JavaCCTask) {
82-
inputFile 'src/main/javacc/jst.jj'
83-
genDir 'build/src/java/org/xcommand/template/jst/parser'
84-
}
85-
86-
compileJava.dependsOn(jcc)
87-
8857
test {
8958
systemProperty 'eu.javaspecialists.books.dynamicproxies.util.MethodTurboBooster.disabled', 'true'
9059
}
9160

92-
task listJars {
93-
doLast {
94-
configurations.compile.each { File file ->
95-
println file.name
96-
}
97-
}
98-
}
99-
*/

xc-core/build.gradle

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,10 @@ dependencies {
1111
implementation libs.janino.janino
1212
implementation libs.servlet.api
1313

14-
implementation(platform("org.springframework:spring-framework-bom:6.2.11"))
14+
implementation(platform(DEP_SPRING_FW_BOM))
1515
implementation libs.spring.core
1616
implementation libs.spring.web
1717

1818
testImplementation libs.spring.test
1919
testImplementation libs.assertj.core
20-
2120
}
22-
/*
23-
dependencies {
24-
implementation DEP_SERVLET_API
25-
implementation(platform("org.springframework:spring-framework-bom:${DEP_VERSION_SPRING_FW}"))
26-
implementation 'org.springframework:spring-core'
27-
implementation 'org.springframework:spring-websocket'
28-
implementation DEP_JANINO
29-
implementation 'eu.javaspecialists.books.dynamicproxies:core:2.0.0'
30-
implementation DEP_VAVR
31-
implementation DEP_JOOL
32-
33-
testImplementation 'org.springframework:spring-test'
34-
testImplementation DEP_GROOVY
35-
testImplementation platform(DEP_SPOCK_BOM)
36-
testImplementation DEP_SPOCK_CORE
37-
testImplementation 'cglib:cglib:3.3.0'
38-
39-
compileOnly "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
40-
annotationProcessor "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
41-
testCompileOnly "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
42-
testAnnotationProcessor "org.projectlombok:lombok:${DEP_LOMBOK_VERSION}"
43-
}
44-
*/
45-
46-

0 commit comments

Comments
 (0)