Skip to content

Commit

Permalink
Initial project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
aarcangeli committed Dec 28, 2022
1 parent 2cb2a1d commit 3470671
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ updates:
directory: "/"
target-branch: "next"
schedule:
interval: "daily"
interval: "weekly"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "next"
schedule:
interval: "daily"
interval: "weekly"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# idea-clang-format
# clang-format Tools for Jetbrains IDEs

![Build](https://github.com/aarcangeli/idea-clang-format/workflows/Build/badge.svg)
[![Version](https://img.shields.io/jetbrains/plugin/v/PLUGIN_ID.svg)](https://plugins.jetbrains.com/plugin/PLUGIN_ID)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/PLUGIN_ID.svg)](https://plugins.jetbrains.com/plugin/PLUGIN_ID)

## Template ToDo list
- [x] Create a new [IntelliJ Platform Plugin Template][template] project.
- [ ] Get familiar with the [template documentation][template].
- [ ] Verify the [pluginGroup](./gradle.properties), [plugin ID](./src/main/resources/META-INF/plugin.xml) and [sources package](./src/main/kotlin).
- [x] Get familiar with the [template documentation][template].
- [x] Verify the [pluginGroup](./gradle.properties), [plugin ID](./src/main/resources/META-INF/plugin.xml) and [sources package](./src/main/kotlin).
- [ ] Review the [Legal Agreements](https://plugins.jetbrains.com/docs/marketplace/legal-agreements.html?from=IJPluginTemplate).
- [ ] [Publish a plugin manually](https://plugins.jetbrains.com/docs/intellij/publishing-plugin.html?from=IJPluginTemplate) for the first time.
- [ ] Set the Plugin ID in the above README badges.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html

pluginGroup = com.github.aarcangeli.ideaclangformat
pluginGroup = com.github.aarcangeli.idea-clang-format
pluginName = idea-clang-format
pluginRepositoryUrl = https://github.com/aarcangeli/idea-clang-format
# SemVer format -> https://semver.org
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
package com.github.aarcangeli.ideaclangformat.listeners

import com.github.aarcangeli.ideaclangformat.services.MyProjectService
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManagerListener
import com.github.aarcangeli.ideaclangformat.services.MyProjectService

internal class MyProjectManagerListener : ProjectManagerListener {

override fun projectOpened(project: Project) {
project.service<MyProjectService>()

System.getenv("CI")
?: TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ class MyApplicationService {

init {
println(MyBundle.message("applicationService"))

System.getenv("CI")
?: TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.")
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package com.github.aarcangeli.ideaclangformat.services

import com.intellij.openapi.project.Project
import com.github.aarcangeli.ideaclangformat.MyBundle
import com.intellij.openapi.project.Project

class MyProjectService(project: Project) {

init {
println(MyBundle.message("projectService", project.name))

System.getenv("CI")
?: TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.")
}

/**
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -->
<idea-plugin>
<id>com.github.aarcangeli.ideaclangformat</id>
<name>IntelliJ Platform Plugin idea-clang-format</name>
<name>Clang-Format &amp; Language</name>
<vendor>aarcangeli</vendor>

<depends>com.intellij.modules.platform</depends>

<extensions defaultExtensionNs="com.intellij">
<applicationService serviceImplementation="com.github.aarcangeli.ideaclangformat.services.MyApplicationService"/>
<applicationService
serviceImplementation="com.github.aarcangeli.ideaclangformat.services.MyApplicationService"/>
<projectService serviceImplementation="com.github.aarcangeli.ideaclangformat.services.MyProjectService"/>
</extensions>

Expand Down

0 comments on commit 3470671

Please sign in to comment.