Skip to content

Commit

Permalink
issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesville committed Sep 29, 2018
1 parent 456ff03 commit cae6bae
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mdw-draw/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "com.centurylink.mdw"
version = "1.0.4"
version = "1.0.5-SNAPSHOT"

java.sourceSets {
"main" {
Expand Down
10 changes: 6 additions & 4 deletions mdw-studio/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.intellij.tasks.PublishTask

plugins {
kotlin("jvm") version "1.2.61"
kotlin("jvm") version "1.2.71"
id("org.jetbrains.intellij") version "0.3.7"
}

group = "com.centurylink.mdw"
version = "1.0.4"
version = "1.0.5-SNAPSHOT"

java.sourceSets {
"main" {
Expand All @@ -23,8 +23,9 @@ repositories {
}

dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
// implementation(kotlin("stdlib-jdk8"))
// implementation(kotlin("reflect"))
// implementation(kotlin("compiler"))
compile(project(":mdw-draw"))
compile("com.beust:jcommander:1.72")
compile("org.eclipse.jgit:org.eclipse.jgit:4.8.0.201706111038-r") { isTransitive = false }
Expand All @@ -35,6 +36,7 @@ dependencies {

intellij {
version = "2018.2.3"
setPlugins("Kotlin")
}

tasks.withType<PublishTask> {
Expand Down
5 changes: 4 additions & 1 deletion mdw-studio/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@
```
1. Update version in build.gradle.kts (x2) and resources/META-INF/plugin.xml.
2. (Release build only) - Comment out the PublishTask Channels entry (but do not commit)
2. Run Gradle task intellij/publishPlugin.
3. Run Gradle task intellij/publishPlugin.
4. After success:
- Revert PublishTask comment-out
- Set next SNAPSHOT in build.gradle.kts x2, and commit
1 change: 1 addition & 0 deletions mdw-studio/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ that makes it easy for you to create workflow processes and other assets.<br>
<idea-version since-build="182.4129" />

<depends>com.intellij.modules.lang</depends>
<depends>org.jetbrains.kotlin</depends>

<project-components>
<component>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class ProjectSetup(val project: Project) : ProjectComponent, com.centurylink.mdw
val annotatedAssets = mutableMapOf<Asset,MutableList<PsiAnnotation>>()
for (javaAsset in findAssetsOfType("java")) {
val psiFile = PsiManager.getInstance(project).findFile(javaAsset.file)
psiFile?.let { assetPsiFile ->
psiFile?.let { _ ->
if (psiFile is PsiClassOwner) {
for (psiClass in psiFile.classes) {
AnnotationUtil.findAnnotation(psiClass, annotation)?.let { psiAnnotation ->
Expand All @@ -332,7 +332,7 @@ class ProjectSetup(val project: Project) : ProjectComponent, com.centurylink.mdw
}
for (ktAsset in findAssetsOfType("kt")) {
val psiFile = PsiManager.getInstance(project).findFile(ktAsset.file)
psiFile?.let { assetPsiFile ->
psiFile?.let { _ ->
if (psiFile is PsiClassOwner) {
for (psiClass in psiFile.classes) {
AnnotationUtil.findAnnotation(psiClass, annotation)?.let { psiAnnotation ->
Expand Down

0 comments on commit cae6bae

Please sign in to comment.