@@ -30,11 +30,11 @@ plugins {
3030}
3131
3232sonar {
33- properties {
34- property " sonar.projectKey" , " KeYProject_key"
35- property " sonar.organization" , " keyproject"
36- property " sonar.host.url" , " https://sonarcloud.io"
37- }
33+ properties {
34+ property " sonar.projectKey" , " KeYProject_key"
35+ property " sonar.organization" , " keyproject"
36+ property " sonar.host.url" , " https://sonarcloud.io"
37+ }
3838}
3939
4040
@@ -85,50 +85,38 @@ subprojects {
8585 }
8686
8787 dependencies {
88- implementation(" org.slf4j:slf4j-api:2.0.16" )
89- implementation(" org.slf4j:slf4j-api:2.0.16" )
90-
91-
92- compileOnly(" org.jspecify:jspecify:1.0.0" )
93- testCompileOnly(" org.jspecify:jspecify:1.0.0" )
94- def eisop_version = " 3.42.0-eisop5"
95- compileOnly " io.github.eisop:checker-qual:$eisop_version "
96- compileOnly " io.github.eisop:checker-util:$eisop_version "
97- testCompileOnly " io.github.eisop:checker-qual:$eisop_version "
98- checkerFramework " io.github.eisop:checker-qual:$eisop_version "
99- checkerFramework " io.github.eisop:checker:$eisop_version "
100-
101- testImplementation(" org.assertj:assertj-core:3.27.3" )
102- testImplementation(" ch.qos.logback:logback-classic:1.5.15" )
103- testImplementation ' org.junit.jupiter:junit-jupiter-api:5.11.4'
104- testImplementation ' org.junit.jupiter:junit-jupiter-params:5.11.4'
105- testImplementation project(' :key.util' )
88+ implementation(libs. slf4j)
10689
107- // test fixtures
108- testImplementation(" com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.18.2" )
109- testImplementation(" com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2" )
90+ compileOnly(libs. jspecify)
91+ testCompileOnly(libs. jspecify)
11092
93+ compileOnly(libs. eisopCheckerQual)
94+ compileOnly(libs. eisopUtil)
95+ testCompileOnly(libs. eisopCheckerQual)
96+ checkerFramework(libs. eisopCheckerQual)
97+ checkerFramework(libs. eisopChecker)
11198
112-
113- testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.11.4'
99+ testImplementation(libs. bundles. testing)
100+ testImplementation project(' :key.util' )
101+ testRuntimeOnly(libs. junitEngine)
114102 }
115103
116- tasks. withType(JavaCompile ) {
104+ tasks. withType(JavaCompile ). configureEach {
117105 // Setting UTF-8 as the java source encoding.
118106 options. encoding = " UTF-8"
119107 // Setting the release to Java 21
120108 options. release = 21
121109 }
122110
123- tasks. withType(Javadoc ) {
111+ tasks. withType(Javadoc ). configureEach {
124112 failOnError = false
125113 options. addBooleanOption ' Xdoclint:none' , true
126114 // options.verbose()
127115 options. encoding = ' UTF-8'
128116 options. addBooleanOption(' html5' , true )
129117 }
130118
131- tasks. withType(Test ) {// Configure all tests
119+ tasks. withType(Test ). configureEach {// Configure all tests
132120 systemProperty " test-resources" , " src/test/resources"
133121 systemProperty " testcases" , " src/test/resources/testcase"
134122 systemProperty " TACLET_PROOFS" , " tacletProofs"
@@ -142,7 +130,7 @@ subprojects {
142130 maxParallelForks = 1 // weigl: test on master
143131 }
144132
145- tasks. withType(Test ) {
133+ tasks. withType(Test ). configureEach {
146134 useJUnitPlatform {
147135 includeEngines ' junit-jupiter'
148136 }
@@ -169,7 +157,7 @@ subprojects {
169157 }
170158 }
171159
172- task testFast( type : Test ) {
160+ tasks . register( ' testFast ' , Test ) {
173161 group " verification"
174162 useJUnitPlatform {
175163 excludeTags " slow" , " performance" , " interactive"
@@ -195,14 +183,14 @@ subprojects {
195183 // The following two tasks can be used to execute main methods from the project
196184 // The main class is set via "gradle -DmainClass=... execute --args ..."
197185 // see https://stackoverflow.com/questions/21358466/gradle-to-execute-java-class-without-modifying-build-gradle
198- task execute( type : JavaExec ) {
186+ tasks . register( ' execute ' , JavaExec ) {
199187 description ' Execute main method from the project. Set main class via "gradle -DmainClass=... execute --args ..."'
200188 group " application"
201189 mainClass. set(System . getProperty(' mainClass' ))
202190 classpath = sourceSets. main. runtimeClasspath
203191 }
204192
205- task executeInTests( type : JavaExec ) {
193+ tasks . register( ' executeInTests ' , JavaExec ) {
206194 description ' Execute main method from the project (tests loaded). Set main class via "gradle -DmainClass=... execute --args ..."'
207195 group " application"
208196 mainClass. set(System . getProperty(' mainClass' ))
@@ -219,7 +207,7 @@ subprojects {
219207 ruleSets = [" category/java/errorprone.xml" , " category/java/bestpractices.xml" ]
220208 }
221209
222- task pmdMainChanged( type : Pmd ) {
210+ tasks . register( ' pmdMainChanged ' , Pmd ) {
223211 // Specify all files that should be checked
224212 def changedFiles = getChangedFiles()
225213 source pmdMain. source. filter { f -> f. getAbsoluteFile(). toString() in changedFiles }
@@ -245,7 +233,7 @@ subprojects {
245233 }
246234
247235
248- task checkstyleMainChanged( type : Checkstyle ) {
236+ tasks . register( ' checkstyleMainChanged ' , Checkstyle ) {
249237 // Specify all files that should be checked
250238 def changedFiles = getChangedFiles()
251239 source checkstyleMain. source. filter { f -> f. getAbsoluteFile(). toString() in changedFiles }
@@ -273,20 +261,20 @@ subprojects {
273261 // html.enabled = true
274262 // }
275263 // }
276- tasks. withType(Pmd ) {
264+ tasks. withType(Pmd ). configureEach {
277265 reports {
278266 xml. getRequired(). set(true )
279267 html. getRequired(). set(true )
280268 }
281269 }
282270
283- task sourcesJar( type : Jar ) {
271+ tasks . register( ' sourcesJar ' , Jar ) {
284272 description = ' Create a jar file with the sources from this project'
285273 from sourceSets. main. allJava
286274 archiveClassifier = ' sources'
287275 }
288276
289- task javadocJar( type : Jar ) {
277+ tasks . register( ' javadocJar ' , Jar ) {
290278 description = ' Create a jar file with the javadocs from this project'
291279 from javadoc
292280 archiveClassifier = ' javadoc'
@@ -491,15 +479,15 @@ subprojects {
491479 }
492480}
493481
494- task start {
482+ tasks . register( ' start' ) {
495483 description " Use :key.ui:run instead"
496484 doFirst {
497485 println " Use :key.ui:run instead"
498486 }
499487}
500488
501489// Generation of a JavaDoc across sub projects.
502- task alldoc ( type : Javadoc ) {
490+ tasks . register( ' alldoc ' , Javadoc ){
503491 group " documentation"
504492 description " Generate a JavaDoc across sub projects"
505493 def projects = subprojects
@@ -531,7 +519,7 @@ task alldoc(type: Javadoc) {
531519}
532520
533521// Creates a jar file with the javadoc over all sub projects.
534- task alldocJar ( type : Zip ) {
522+ tasks . register( ' alldocJar ' , Zip ){
535523 dependsOn alldoc
536524 description ' Create a jar file with the javadoc over all sub projects'
537525 from alldoc
0 commit comments