https://kotlinlang.org logo
#jewel
Title
# jewel
w

Wojciech Dziemianczyk

12/12/2023, 1:56 PM
Sure thing!
Copy code
buildscript {
  extra["kotlinVersion"] = "1.9.0"
  repositories {
    mavenCentral()
  }
  dependencies {
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
  }
}

plugins {
  id("java")
  id("org.jetbrains.intellij") version "1.16.1"
  id("org.jetbrains.kotlin.jvm") version "1.9.0"
  id("org.jetbrains.compose") version "1.5.11"
}

group = "com.abc"
version = "1.0.0"

repositories {
  maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
  maven("<https://androidx.dev/storage/compose-compiler/repository/>")
  maven("<https://www.jetbrains.com/intellij-repository/releases>")
  maven("<https://cache-redirector.jetbrains.com/intellij-dependencies>")
  maven("<https://packages.jetbrains.team/maven/p/kpm/public/>")
  mavenCentral()
  google()
}

java {
  sourceCompatibility = JavaVersion.VERSION_17
  targetCompatibility = JavaVersion.VERSION_17
}

// See <https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html>
intellij {
  pluginName.set("ABC 123")
  version.set("232.10227.8")
  plugins.set(listOf(
    "terminal",
    "java",
    "Kotlin",
    "sh",
    "platform-images"
  ))
}

tasks {
  runIde {
    systemProperties["idea.debug.mode"] = "true"
  }

  buildSearchableOptions {
    enabled = false
  }

  patchPluginXml {
    version.set("${project.version}")
    sinceBuild.set("223")
    untilBuild.set("232.*")
  }
}

dependencies {
  implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
  implementation("com.github.weisj:jsvg:1.2.0")
  implementation("org.jetbrains.jewel:jewel-ide-laf-bridge:0.11.0-ij-232") {
    exclude(group = "org.jetbrains.kotlinx")
  }
  implementation(compose.desktop.currentOs) {
    exclude(group = "org.jetbrains.compose.material")
    exclude(group = "org.jetbrains.kotlinx")
  }
}
2 Views