diff --git a/.space.kts b/.space.kts index d70ad6d59..abefd8d77 100644 --- a/.space.kts +++ b/.space.kts @@ -1,3 +1,26 @@ -job("Build") { +job("Publish") { + startOn { + gitPush { + branchFilter { + +"dev" + } + } + } + + gradlew("openjdk:11", "publish") { + env["SPACE_USER"] = Secrets("space_user") + env["SPACE_TOKEN"] = Secrets("space_token") + } +} + +job("Build"){ + startOn { + gitPush { + branchFilter { + -"dev" + } + } + } + gradlew("openjdk:11", "build") } diff --git a/build.gradle.kts b/build.gradle.kts index 561a2212b..afe1df9b9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,6 +2,7 @@ import ru.mipt.npm.gradle.KSciencePublishPlugin plugins { id("ru.mipt.npm.project") + id("ru.mipt.npm.publish") apply false } internal val kmathVersion: String by extra("0.2.0-dev-4") @@ -38,3 +39,9 @@ readme { apiValidation { validationDisabled = true } + +ksciencePublish { + spaceRepo = "https://maven.pkg.jetbrains.space/mipt-npm/p/sci/maven" + spaceUser = System.getenv("SPACE_USER") + spaceToken = System.getenv("SPACE_TOKEN") +} diff --git a/gradle.properties b/gradle.properties index 930bba550..88b90f27b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,9 +1,8 @@ kotlin.code.style=official -kotlin.parallel.tasks.in.project=true kotlin.mpp.enableGranularSourceSetsMetadata=true -kotlin.native.enableDependencyPropagation=false kotlin.mpp.stability.nowarn=true - +kotlin.native.enableDependencyPropagation=false +kotlin.parallel.tasks.in.project=true org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m org.gradle.parallel=true -systemProp.org.gradle.internal.publish.checksums.insecure=true \ No newline at end of file +systemProp.org.gradle.internal.publish.checksums.insecure=true