-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update jetbrains gradle platform plugin to 2.0+. java 21. and unset u…
…ntilBuild
- Loading branch information
Showing
8 changed files
with
96 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,63 @@ | ||
plugins { | ||
id("java") | ||
id("org.jetbrains.kotlin.jvm") version "1.9.21" | ||
id("org.jetbrains.intellij") version "1.17.3" | ||
id("java") | ||
id("org.jetbrains.kotlin.jvm") version "1.9.25" | ||
id("org.jetbrains.intellij.platform") version "2.1.0" | ||
} | ||
|
||
group = "im.simo.rubymine.sorbetlsp" | ||
version = providers.gradleProperty("pluginVersion").get() | ||
|
||
repositories { | ||
mavenCentral() | ||
kotlin { | ||
jvmToolchain(21) | ||
} | ||
|
||
// Configure Gradle IntelliJ Plugin | ||
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html | ||
intellij { | ||
version.set("2024.2") | ||
type.set("IU") // Target IDE Platform | ||
repositories { | ||
mavenCentral() | ||
intellijPlatform { | ||
defaultRepositories() | ||
} | ||
} | ||
|
||
plugins.set(listOf( | ||
"org.jetbrains.plugins.ruby:242.20224.387" | ||
)) | ||
dependencies { | ||
intellijPlatform { | ||
rubymine("2024.2") | ||
bundledPlugin("org.jetbrains.plugins.ruby") | ||
instrumentationTools() | ||
pluginVerifier() | ||
zipSigner() | ||
} | ||
} | ||
|
||
tasks { | ||
// Set the JVM compatibility versions | ||
withType<JavaCompile> { | ||
sourceCompatibility = "20" | ||
targetCompatibility = "17" | ||
} | ||
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { | ||
kotlinOptions.jvmTarget = "17" | ||
} | ||
intellijPlatform { | ||
pluginConfiguration { | ||
version = providers.gradleProperty("pluginVersion").get() | ||
|
||
patchPluginXml { | ||
sinceBuild.set("242") | ||
ideaVersion { | ||
sinceBuild = "242" | ||
// no max build. see https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-tasks.html#patchPluginXml-untilBuild | ||
untilBuild = provider { null } | ||
} | ||
} | ||
|
||
signPlugin { | ||
certificateChain.set(System.getenv("CERTIFICATE_CHAIN")) | ||
privateKey.set(System.getenv("PRIVATE_KEY")) | ||
password.set(System.getenv("PRIVATE_KEY_PASSWORD")) | ||
} | ||
signing { | ||
privateKey = providers.environmentVariable("PRIVATE_KEY").orNull | ||
password = providers.environmentVariable("PRIVATE_KEY_PASSWORD").orNull | ||
certificateChain = providers.environmentVariable("CERTIFICATE_CHAIN").orNull | ||
} | ||
|
||
publishing { | ||
token = providers.environmentVariable("PUBLISH_TOKEN").orNull | ||
} | ||
|
||
publishPlugin { | ||
token.set(System.getenv("PUBLISH_TOKEN")) | ||
pluginVerification { | ||
ides { | ||
recommended() | ||
} | ||
} | ||
} | ||
|
||
tasks { | ||
wrapper { | ||
gradleVersion = providers.gradleProperty("gradleVersion").get() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib | ||
kotlin.stdlib.default.dependency=false | ||
# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) | ||
kotlin.incremental.useClasspathSnapshot=false | ||
kotlin.stdlib.default.dependency = false | ||
|
||
# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html | ||
org.gradle.configuration-cache=true | ||
org.gradle.configuration-cache = true | ||
|
||
# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html | ||
org.gradle.caching=true | ||
org.gradle.caching = true | ||
|
||
# Gradle Releases -> https://github.com/gradle/gradle/releases | ||
gradleVersion = 8.10.2 | ||
|
||
pluginVersion=0.1-DEV |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters