-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added
org.jetbrains.intellij.buildFeature.useCacheRedirector
buil…
…d feature - Added `IntelliJPlatformCollectorTransformer` and `IntelliJPlatformExtractTransformer` for handling IntelliJ Platform dependency archives - Added `jetbrainsAnnotations` dependency helper for adding JetBrains Annotations dependency - Added general `intellijPlatform` along with product-specific dependency helpers for adding IntelliJ Platform dependency
- Loading branch information
Showing
27 changed files
with
721 additions
and
341 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
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
28 changes: 28 additions & 0 deletions
28
src/main/kotlin/org/jetbrains/intellij/platform/gradleplugin/IntelliJPlatformType.kt
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
|
||
package org.jetbrains.intellij.platform.gradleplugin | ||
|
||
import org.gradle.api.GradleException | ||
|
||
enum class IntelliJPlatformType(val code: String) { | ||
AndroidStudio("AI"), | ||
CLion("CL"), | ||
Gateway("GW"), | ||
GoLand("GO"), | ||
IntellijIdeaCommunity("IC"), | ||
IntellijIdeaUltimate("IU"), | ||
JPS("JPS"), | ||
PhpStorm("PS"), | ||
PyCharmProfessional("PY"), | ||
PyCharmCommunity("PC"), | ||
Rider("RD"); | ||
|
||
companion object { | ||
private val map = values().associateBy(IntelliJPlatformType::code) | ||
|
||
fun fromCode(code: String) = map[code] | ||
?: throw GradleException("Specified type '$code' is unknown. Supported values: ${values().joinToString()}") | ||
} | ||
|
||
override fun toString() = code | ||
} |
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
Oops, something went wrong.