Skip to content
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
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.DS_Store
.idea
out
out
/.gradle/
/.intellijPlatform/
/build/
/scripts/local.mk
2 changes: 1 addition & 1 deletion META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
on how to target different products -->
<!-- uncomment to enable plugin in all products
-->
<depends>com.intellij.modules.lang</depends>
<depends>com.intellij.modules.platform</depends>

<application-components>
<!-- Add your application components here -->
Expand Down
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
SCRIPTS_DIR := scripts
LOCAL_CONFIG := $(SCRIPTS_DIR)/local.mk

-include $(LOCAL_CONFIG)

GRADLE ?= ./gradlew
GRADLE_FLAGS ?= --no-daemon --no-configuration-cache
GRADLE_ARGS ?=
GRADLE_ENV := $(if $(JAVA_HOME),JAVA_HOME="$(JAVA_HOME)")

export LOCAL_IDE_PATH MAVEN_MIRROR_URL GRADLE_PLUGIN_MIRROR_URL SKIP_INTELLIJ_AUXILIARY_TASKS GRADLE_DISTRIBUTION_URL

.PHONY: build clean package verify help

help:
@echo "make build Build an installable plugin ZIP"
@echo "make verify Validate the plugin archive structure"
@echo "make clean Remove build outputs"
@echo "Optional local overrides: $(LOCAL_CONFIG)"

build package:
$(GRADLE_ENV) $(SCRIPTS_DIR)/run-gradle.sh $(GRADLE) buildPlugin $(GRADLE_FLAGS) $(GRADLE_ARGS)

verify:
$(GRADLE_ENV) $(SCRIPTS_DIR)/run-gradle.sh $(GRADLE) verifyPluginStructure $(GRADLE_FLAGS) $(GRADLE_ARGS)

clean:
$(GRADLE_ENV) $(SCRIPTS_DIR)/run-gradle.sh $(GRADLE) clean $(GRADLE_FLAGS) $(GRADLE_ARGS)
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ Please see this example for a demonstration:
![Demonstration](https://github.com/user-attachments/assets/72001e9b-402d-4971-8a82-3375c70d858d)

## Install
Use your IDE. Preferences/Plugins/Browse repositories and search for "camelcase".

Install from the JetBrains Marketplace: open **Preferences/Settings → Plugins → Marketplace** and search for `camelcase`.

To install a locally built version:

1. Build the plugin with `make build`.
2. In your IDE, open **Preferences/Settings → Plugins → ⚙ → Install Plugin from Disk…**.
3. Select the ZIP file created under `build/distributions/`.
4. Restart the IDE when prompted.

## Build
Just clone this repo and open the project it in IntelliJ IDEA.
```
make build
```
65 changes: 65 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
plugins {
java
id("org.jetbrains.intellij.platform") version "2.18.1"
}

group = "de.netnexus"
version = "3.0.14"

val mavenMirrorUrl = providers.environmentVariable("MAVEN_MIRROR_URL").orNull
val localIdePath = providers.environmentVariable("LOCAL_IDE_PATH").orNull
val skipIntelliJAuxiliaryTasks = providers.environmentVariable("SKIP_INTELLIJ_AUXILIARY_TASKS")
.map(String::toBoolean)
.getOrElse(false)

repositories {
if (mavenMirrorUrl != null) {
maven(mavenMirrorUrl)
}
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}

sourceSets {
main {
java.setSrcDirs(listOf("src"))
resources.srcDir(".")
resources.include("META-INF/**")
}
}

dependencies {
implementation("commons-lang:commons-lang:2.6")

intellijPlatform {
if (localIdePath != null) {
local(localIdePath)
} else {
intellijIdea("2026.2.2.1")
}
}
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(25))
}
}

tasks.withType<JavaCompile>().configureEach {
options.release.set(11)
}

intellijPlatform {
buildSearchableOptions = !skipIntelliJAuxiliaryTasks
instrumentCode = !skipIntelliJAuxiliaryTasks

pluginConfiguration {
ideaVersion {
sinceBuild = "193.5233.102"
untilBuild = provider { null }
}
}
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.gradle.configuration-cache=true
org.gradle.caching=true
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
networkTimeout=60000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
234 changes: 234 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading