diff --git a/build.gradle.kts b/build.gradle.kts index c3e655d..0ac1937 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,5 @@ +import space.kscience.gradle.* + plugins { 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 { - github("SciProgCentre", "snark") - space("https://maven.pkg.jetbrains.space/mipt-npm/p/sci/maven") + pom("https://github.com/SciProgCentre/snark") { + useApache2Licence() + useSPCTeam() + } + repository("spc","https://maven.sciprog.center/kscience") // sonatype() } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 0843f01..c53e77f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ kotlin.code.style=official -toolsVersion=0.14.9-kotlin-1.8.20 \ No newline at end of file +toolsVersion=0.15.0-kotlin-1.9.20 \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 15de902..e411586 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME 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 zipStorePath=wrapper/dists diff --git a/snark-gradle-plugin/src/main/kotlin/SnarkGradlePlugin.kt b/snark-gradle-plugin/src/main/kotlin/SnarkGradlePlugin.kt index 33858a1..73d48f0 100644 --- a/snark-gradle-plugin/src/main/kotlin/SnarkGradlePlugin.kt +++ b/snark-gradle-plugin/src/main/kotlin/SnarkGradlePlugin.kt @@ -29,11 +29,13 @@ public class SnarkGradlePlugin : Plugin { plugins.withId("org.jetbrains.kotlin.jvm") { val writeBuildDate = tasks.register("writeBuildDate") { - val outputFile = File(project.buildDir, "resources/main/buildDate") + val outputFile = project.layout.buildDirectory.file("resources/main/buildDate") doLast { val deployDate = LocalDateTime.now() - outputFile.parentFile.mkdirs() - outputFile.writeText(deployDate.toString()) + outputFile.get().asFile.run { + parentFile.mkdirs() + writeText(deployDate.toString()) + } } outputs.file(outputFile) outputs.upToDateWhen { false }