mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-05-01 07:34:03 +02:00
Set up publishing of the vim-engine library
This commit is contained in:
parent
5ab985a7cc
commit
78ea4e4e30
27
.space.kts
Normal file
27
.space.kts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2003-2023 The IdeaVim authors
|
||||||
|
*
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE.txt file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* JetBrains Space Automation
|
||||||
|
* This Kotlin script file lets you automate build activities
|
||||||
|
* For more info, see https://www.jetbrains.com/help/space/automation.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
job("Deploy vim-engine library to intellij-dependencies") {
|
||||||
|
parameters {
|
||||||
|
text("spaceUsername", value = "{{ project:spaceUsername }}")
|
||||||
|
secret("spacePassword", value = "{{ project:spacePassword }}")
|
||||||
|
text("uploadUrl", value = "{{ project:uploadUrl }}")
|
||||||
|
}
|
||||||
|
container(displayName = "Publish Artifact", image = "amazoncorretto:17-alpine") {
|
||||||
|
kotlinScript { api ->
|
||||||
|
api.parameters["engineVersion"] = "0.0." + api.executionNumber()
|
||||||
|
api.gradlew(":vim-engine:publish")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -11,6 +11,7 @@ plugins {
|
|||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
// id("org.jlleitschuh.gradle.ktlint")
|
// id("org.jlleitschuh.gradle.ktlint")
|
||||||
id("com.google.devtools.ksp") version "1.8.21-1.0.11"
|
id("com.google.devtools.ksp") version "1.8.21-1.0.11"
|
||||||
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
// group 'org.jetbrains.ideavim'
|
// group 'org.jetbrains.ideavim'
|
||||||
@ -60,3 +61,28 @@ tasks {
|
|||||||
kotlin {
|
kotlin {
|
||||||
explicitApi()
|
explicitApi()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val spaceUsername: String by project
|
||||||
|
val spacePassword: String by project
|
||||||
|
val engineVersion: String by project
|
||||||
|
val uploadUrl: String by project
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>("maven") {
|
||||||
|
groupId = "com.maddyhome.idea.vim"
|
||||||
|
artifactId = "vim-engine"
|
||||||
|
version = engineVersion
|
||||||
|
from(components["java"])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = uri(uploadUrl)
|
||||||
|
credentials {
|
||||||
|
username = spaceUsername
|
||||||
|
password = spacePassword
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -8,3 +8,8 @@
|
|||||||
|
|
||||||
# Disable incremental annotation processing
|
# Disable incremental annotation processing
|
||||||
ksp.incremental=false
|
ksp.incremental=false
|
||||||
|
|
||||||
|
spaceUsername=
|
||||||
|
spacePassword=
|
||||||
|
engineVersion=
|
||||||
|
uploadUrl=
|
||||||
|
Loading…
Reference in New Issue
Block a user