11plugins {
22 id ' idea'
3- id ' com.github.ben-manes.versions' version ' 0.44 .0'
3+ id ' com.github.ben-manes.versions' version ' 0.53 .0'
44 id ' scala'
5- id ' io.miret.etienne.sass' version ' 1.5.1 '
5+ id ' io.miret.etienne.sass' version ' 1.6.0 '
66}
77
88idea {
@@ -14,6 +14,10 @@ idea {
1414 }
1515}
1616
17+ java. toolchain. languageVersion = JavaLanguageVersion . of(21 )
18+
19+ scala. scalaVersion = ' 3.7.4'
20+
1721// There is no Java in the project :)
1822project. gradle. startParameter. excludedTaskNames. add(' compileJava' )
1923
@@ -22,21 +26,34 @@ tasks.withType(ScalaCompile).configureEach {
2226 additionalParameters = [
2327 ' -new-syntax' ,
2428 ' -feature' ,
25- ' -language:strictEquality'
29+ ' -language:strictEquality' ,
30+ ' -source:future'
2631 ]
2732 }
2833}
2934
3035description = ' 19 Kislev Archive'
3136
32- final String opentorahVersion = ' 0.10.13 '
37+ final String opentorahVersion = ' 0.10.16 '
3338
3439dependencies {
35- implementation ' org.scala-lang:scala3-library_3:3.6.2'
3640 implementation " org.opentorah:opentorah-collector:$opentorahVersion "
3741 implementation " org.opentorah:opentorah-util:$opentorahVersion " // for the Cutter
3842}
3943
44+ def isNonStable = { String version ->
45+ boolean stableKeyword = [' RELEASE' , ' FINAL' , ' GA' ]. any { it -> version. toUpperCase(). contains(it) }
46+ String regex = / ^[0-9,.v-]+(-r)?$/
47+ return ! stableKeyword && ! (version ==~ regex)
48+ }
49+
50+ // dependencyUpdates.revision = 'release'
51+ tasks. named(" dependencyUpdates" ). configure {
52+ rejectVersionIf {
53+ isNonStable(it. candidate. version)
54+ }
55+ }
56+
4057compileSass {
4158 group = ' publishing'
4259
0 commit comments