1- plugins {
2- id( " java-library " )
3- id " com.github.ben-manes.versions " version " 0.52.0 "
1+ project . ext {
2+ VERSION_JAVACC = ' 7.0.13 '
3+ DEP_SPOCK_BOM = ' org.spockframework:spock-bom:2.3-groovy-4.0 '
44}
5+ /*
56project.ext {
67 VERSION_JAVACC = '7.0.13'
78 DEP_SERVLET_API = 'jakarta.servlet:jakarta.servlet-api:6.1.0'
@@ -24,78 +25,12 @@ project.ext {
2425 DEP_RECORD_BUILDER = '48'
2526 DEP_OPEN_REWRITE_BOM = '3.9.0'
2627}
27-
28-
29- // ben-manes version-plugin:
30- def isNonStable = { String version ->
31- def stableKeyword = [' RELEASE' , ' FINAL' , ' GA' ]. any { it -> version. toUpperCase(). contains(it) }
32- def regex = / ^[0-9,.v-]+(-r)?$/
33- return ! stableKeyword && ! (version ==~ regex)
34- }
35- // https://github.com/ben-manes/gradle-versions-plugin
36- tasks. named(" dependencyUpdates" ). configure {
37- rejectVersionIf {
38- isNonStable(it. candidate. version)
39- }
40- }
41-
42- allprojects {
43- // apply plugin: 'java'
44- apply plugin : ' groovy'
45-
46- repositories {
47- mavenCentral()
48- }
49-
50- dependencies {
51- annotationProcessor " io.soabase.record-builder:record-builder-processor:${ DEP_RECORD_BUILDER} "
52- compileOnly " io.soabase.record-builder:record-builder-core:${ DEP_RECORD_BUILDER} "
53-
54- implementation " org.slf4j:slf4j-api:${ DEP_VERSION_SLF4J} "
55- implementation " org.slf4j:slf4j-simple:${ DEP_VERSION_SLF4J} "
56- testImplementation " org.junit.jupiter:junit-jupiter-api:${ DEP_VERSION_JUNIT} "
57- testImplementation " org.junit.jupiter:junit-jupiter-params:${ DEP_VERSION_JUNIT} "
58- testRuntimeOnly " org.junit.jupiter:junit-jupiter-engine:${ DEP_VERSION_JUNIT} "
59- testImplementation " org.assertj:assertj-core:${ DEP_VERSION_ASSERTJ} "
60- testImplementation " org.mockito:mockito-core:${ DEP_VERSION_MOCKITO} "
61- testImplementation " org.mockito:mockito-junit-jupiter:${ DEP_VERSION_MOCKITO} "
62-
63- testImplementation " com.google.jimfs:jimfs:${ DEP_VERSION_JIMFS} "
64-
65- }
66-
67- java {
68- toolchain {
69- languageVersion = JavaLanguageVersion . of(23 )
70- }
71- }
72- tasks. withType(JavaCompile ). each {
73- it. options. deprecation = true
74- // it.options.compilerArgs.add('--enable-preview')
75- }
76-
77- task (' copyToLib' , type : Copy ) {
78- into(' build/_artifacts' )
79- from configurations. compileClasspath
80- from configurations. default. allArtifacts* . file
81- from configurations. compileClasspath. allArtifacts* . file
82- }
83-
84- task renameJCC(type : Copy , dependsOn : ' copyToLib' ) {
85- from(" build/_artifacts/javacc-${ VERSION_JAVACC} .jar" )
86- into(' build/_artifacts' )
87- rename(" javacc-${ VERSION_JAVACC} .jar" , ' javacc.jar' )
88- }
89-
90- test {
91- jvmArgs([' --enable-preview' ])
92- useJUnitPlatform {
93- // includeEngines 'junit-jupiter' // enabling this line causes spock tests not to be executed
94- }
28+ */
29+ subprojects {
30+ tasks. withType(Test ) {
9531 testLogging {
96- events /* 'passed',*/ ' skipped' , ' failed'
32+ events " passed" , " skipped" , " failed"
33+ exceptionFormat " short"
9734 }
9835 }
9936}
100- version = ' 1.0'
101-
0 commit comments