Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
meanmail committed Oct 15, 2022
1 parent 7e63ed4 commit 1731eda
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,4 @@ build
.gradle
src/main/gen
.idea/csv-plugin.xml
token.txt
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2022.4 (October, 15, 2022)

* Fix NullPointerException

## 2022.3.1 (October, 9, 2022)

* Fix JsonDecodingException
Expand Down
18 changes: 12 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ repositories {

plugins {
java
kotlin("jvm") version "1.6.20"
kotlin("plugin.serialization") version "1.6.20"
// https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
kotlin("jvm") version "1.5.10"
kotlin("plugin.serialization") version "1.5.10"
id("org.jetbrains.intellij") version "1.9.0"
}

group = config("group")
version = "${config("version")}-${config("platformVersion")}"
version = config("version")

dependencies {
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.20")
val serializationVersion = "1.3.2"
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.10")
val serializationVersion = "1.4.0"
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:$serializationVersion")
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion")
implementation("io.sentry:sentry:6.4.3")
Expand All @@ -36,6 +37,7 @@ intellij {
}
)
type.set(config("platformType"))
updateSinceUntilBuild.set(false)

val usePlugins = config("usePlugins").split(',')
for (plugin in usePlugins) {
Expand All @@ -48,9 +50,11 @@ intellij {
"PY" -> {
plugins.add("python")
}

"PC" -> {
plugins.add("PythonCore")
}

else -> {
plugins.add("PythonCore:${version}")
}
Expand Down Expand Up @@ -120,13 +124,15 @@ tasks {
version.set(project.version.toString())
pluginDescription.set(file("description.html").readText())
changeNotes.set(readChangeNotes("CHANGES.md"))
sinceBuild.set(config("platformSinceBuild"))
}

publishPlugin {
dependsOn("buildPlugin")
token.set(System.getenv("PUBLISH_TOKEN"))
token.set(file("token.txt").readText())
channels.set(listOf(config("publishChannel")))
}

buildSearchableOptions {
enabled = false
}
Expand Down
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# Gradle
gradleVersion=7.5.1
org.gradle.parallel=true
# https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html#intellij-platform-based-products-of-recent-ide-versions
jvmVersion=11
#
# Plugin
group=dev.meanmail
repository=https://github.com/meanmail-dev/requirements
pluginName=requirements
version=2022.3.1
version=2022.3.2
# https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library
kotlin.stdlib.default.dependency=false
#
# Platform
platformSinceBuild=212
# Develop platform
platformVersion=2022.2.2
platformType=PC
usePlugins=python:222.4167.37
Expand Down

0 comments on commit 1731eda

Please sign in to comment.