Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to build.gradle.kts, fix EDT exceptions #95

Open
wants to merge 3 commits into
base: mainline
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ build
out
!gradle/wrapper/gradle-wrapper.jar
.idea/
.DS_Store
19 changes: 0 additions & 19 deletions build.gradle

This file was deleted.

78 changes: 78 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
fun properties(key: String) = project.findProperty(key).toString()

plugins {
id("org.jetbrains.intellij") version "1.16.1"
}

group = properties("pluginGroup")
version = properties("pluginVersion")

repositories {
mavenLocal()
mavenCentral()
maven(
url = "https://oss.sonatype.org/content/repositories/snapshots/"
)
maven(
url = "https://packages.jetbrains.team/maven/p/intellij-plugin-verifier/intellij-plugin-structure"
)
maven(
url = "https://www.jetbrains.com/intellij-repository/releases"
)
}


intellij {
pluginName.set(properties("pluginName"))
version.set(properties("platformVersion"))
type.set(properties("platformType"))
downloadSources.set(properties("platformDownloadSources").toBoolean())
updateSinceUntilBuild.set(true)
}


tasks {
// Set the JVM compatibility versions
properties("javaVersion").let {
withType<JavaCompile> {
sourceCompatibility = it
targetCompatibility = it
}
}

patchPluginXml {
version.set(properties("pluginVersion"))
sinceBuild.set(properties("pluginSinceBuild"))
untilBuild.set(properties("pluginUntilBuild"))

}


wrapper {
gradleVersion = properties("gradleVersion")
}

runIde {
jvmArgs(
"-Xmx6G"
)
}


publishPlugin {
//dependsOn("patchChangelog")
token.set(System.getenv("PUBLISH_TOKEN"))

// pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel

channels.set(listOf(properties("pluginVersion")))
}

buildSearchableOptions {
// Allows building the plugin while a sandbox is running
enabled = false
}

}
27 changes: 27 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# IntelliJ Platform Artifacts Repositories
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html

pluginGroup=com.khmelyuk.multirun
pluginName=Multirun
pluginVersion=1.13.1

pluginSinceBuild=221.5080.210
pluginUntilBuild=

platformType=IU
platformVersion=221.5080.210
platformDownloadSources=true

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins=

# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
javaVersion=11

gradleVersion=8.5

# Opt-out flag for bundling Kotlin standard library.
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
# suppress inspection "UnusedProperty"
kotlin.stdlib.default.dependency=false
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Fri Jun 17 09:26:36 NOVT 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-4.10-all.zip
164 changes: 0 additions & 164 deletions gradlew

This file was deleted.

90 changes: 0 additions & 90 deletions gradlew.bat

This file was deleted.

Loading