Skip to content

Commit e5533bf

Browse files
committed
chore: initial setup
1 parent 478f15e commit e5533bf

File tree

15 files changed

+27
-135
lines changed

15 files changed

+27
-135
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
.idea
33
.intellijPlatform
44
.qodana
5+
.kotlin
56
build
7+
/src/main/gen/

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Keep a Changelog guide -> https://keepachangelog.com -->
22

3-
# php-opcodes-plugin Changelog
3+
# PHP Opcodes Lang Changelog
44

55
## [Unreleased]
66
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# php-opcodes-plugin
1+
# PHP Opcodes Lang
22

33
![Build](https://github.com/xepozz/php-opcodes-plugin/workflows/Build/badge.svg)
44
[![Version](https://img.shields.io/jetbrains/plugin/v/MARKETPLACE_ID.svg)](https://plugins.jetbrains.com/plugin/MARKETPLACE_ID)

build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import org.gradle.kotlin.dsl.withType
12
import org.jetbrains.changelog.Changelog
23
import org.jetbrains.changelog.markdownToHTML
34
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
5+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
46

57
plugins {
68
id("java") // Java support
@@ -9,11 +11,18 @@ plugins {
911
alias(libs.plugins.changelog) // Gradle Changelog Plugin
1012
alias(libs.plugins.qodana) // Gradle Qodana Plugin
1113
alias(libs.plugins.kover) // Gradle Kover Plugin
14+
alias(libs.plugins.grammarkit) // Gradle Grammar-Kit Plugin
1215
}
1316

1417
group = providers.gradleProperty("pluginGroup").get()
1518
version = providers.gradleProperty("pluginVersion").get()
16-
19+
sourceSets {
20+
main {
21+
java {
22+
srcDirs("src/main/java", "src/main/gen")
23+
}
24+
}
25+
}
1726
// Set the JVM language level used to build the project.
1827
kotlin {
1928
jvmToolchain(21)
@@ -82,7 +91,6 @@ intellijPlatform {
8291

8392
ideaVersion {
8493
sinceBuild = providers.gradleProperty("pluginSinceBuild")
85-
untilBuild = providers.gradleProperty("pluginUntilBuild")
8694
}
8795
}
8896

gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
22

33
pluginGroup = com.github.xepozz.phpopcodesplugin
4-
pluginName = php-opcodes-plugin
4+
pluginName = PHP Opcodes Lang
55
pluginRepositoryUrl = https://github.com/xepozz/php-opcodes-plugin
66
# SemVer format -> https://semver.org
7-
pluginVersion = 0.0.1
7+
pluginVersion = 2025.0.1
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
10-
pluginSinceBuild = 242
10+
pluginSinceBuild = 231
1111
pluginUntilBuild = 252.*
1212

1313
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
14-
platformType = IC
15-
platformVersion = 2024.2.5
14+
platformType = IU
15+
platformVersion = 2025.1.1
1616

1717
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1818
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
19-
platformPlugins =
19+
platformPlugins =com.jetbrains.php:251.23774.318,com.jetbrains.hackathon.indices.viewer:1.30
2020
# Example: platformBundledPlugins = com.intellij.java
2121
platformBundledPlugins =
2222

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ intelliJPlatform = "2.6.0"
99
kotlin = "2.2.0"
1010
kover = "0.9.1"
1111
qodana = "2025.1.1"
12+
grammarkit = "2022.3.2.2"
1213

1314
[libraries]
1415
junit = { group = "junit", name = "junit", version.ref = "junit" }
@@ -20,3 +21,4 @@ intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "inte
2021
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
2122
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
2223
qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" }
24+
grammarkit = { id = "org.jetbrains.grammarkit", version.ref = "grammarkit" }

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ plugins {
22
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
33
}
44

5-
rootProject.name = "php-opcodes-plugin"
5+
rootProject.name = "PHP Opcodes Lang"

src/main/kotlin/com/github/xepozz/phpopcodesplugin/MyBundle.kt renamed to src/main/kotlin/com/github/xepozz/php_opcodes_language/MyBundle.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.xepozz.phpopcodesplugin
1+
package com.github.xepozz.php_opcodes_language
22

33
import com.intellij.DynamicBundle
44
import org.jetbrains.annotations.NonNls

src/main/kotlin/com/github/xepozz/phpopcodesplugin/services/MyProjectService.kt

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/main/kotlin/com/github/xepozz/phpopcodesplugin/startup/MyProjectActivity.kt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)