update versions

This commit is contained in:
Alexander Nozik 2023-11-04 12:59:06 +03:00
parent 25b9a3c3cc
commit 40664db80d
4 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,5 @@
import space.kscience.gradle.*
plugins { plugins {
id("space.kscience.gradle.project") id("space.kscience.gradle.project")
} }
@ -12,10 +14,13 @@ allprojects {
} }
} }
val dataforgeVersion by extra("0.6.1-dev-6") val dataforgeVersion by extra("0.6.2")
ksciencePublish { ksciencePublish {
github("SciProgCentre", "snark") pom("https://github.com/SciProgCentre/snark") {
space("https://maven.pkg.jetbrains.space/mipt-npm/p/sci/maven") useApache2Licence()
useSPCTeam()
}
repository("spc","https://maven.sciprog.center/kscience")
// sonatype() // sonatype()
} }

View File

@ -1,3 +1,3 @@
kotlin.code.style=official kotlin.code.style=official
toolsVersion=0.14.9-kotlin-1.8.20 toolsVersion=0.15.0-kotlin-1.9.20

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@ -29,11 +29,13 @@ public class SnarkGradlePlugin : Plugin<Project> {
plugins.withId("org.jetbrains.kotlin.jvm") { plugins.withId("org.jetbrains.kotlin.jvm") {
val writeBuildDate = tasks.register("writeBuildDate") { val writeBuildDate = tasks.register("writeBuildDate") {
val outputFile = File(project.buildDir, "resources/main/buildDate") val outputFile = project.layout.buildDirectory.file("resources/main/buildDate")
doLast { doLast {
val deployDate = LocalDateTime.now() val deployDate = LocalDateTime.now()
outputFile.parentFile.mkdirs() outputFile.get().asFile.run {
outputFile.writeText(deployDate.toString()) parentFile.mkdirs()
writeText(deployDate.toString())
}
} }
outputs.file(outputFile) outputs.file(outputFile)
outputs.upToDateWhen { false } outputs.upToDateWhen { false }