Skip to content

Commit d4c193a

Browse files
committed
Many changes
1 parent 520e62f commit d4c193a

35 files changed

+1069
-445
lines changed

build.gradle.kts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ fun properties(key: String) = project.findProperty(key).toString()
2222
plugins {
2323
id("java")
2424
id("org.jetbrains.kotlin.jvm") version "1.5.30"
25-
id("org.jetbrains.intellij") version "1.2.1"
26-
id("org.jetbrains.changelog") version "1.3.0"
27-
id("org.jetbrains.qodana") version "0.1.12"
25+
id("org.jetbrains.intellij") version "1.3.0"
26+
id("org.jetbrains.changelog") version "1.3.1"
27+
id("org.jetbrains.qodana") version "0.1.13"
2828
}
2929

3030
group = properties("pluginGroup")
@@ -67,6 +67,12 @@ java {
6767
}
6868

6969
tasks {
70+
compileKotlin {
71+
kotlinOptions {
72+
jvmTarget = properties("javaVersion")
73+
}
74+
}
75+
7076
runIde {
7177
autoReloadPlugins.set(true)
7278
}

gradle.properties

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,32 @@
1717

1818
# IntelliJ Platform Artifacts Repositories
1919
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
20+
2021
pluginGroup=nl.jrdie.idea.springql
2122
pluginName=spring-graphql-intellij-plugin
22-
pluginVersion=0.0.2-alpha
23+
pluginVersion=0.0.2-alpha.2
24+
2325
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
2426
# for insight into build numbers and IntelliJ Platform versions.
2527
pluginSinceBuild=211.0
2628
pluginUntilBuild=213.*
29+
2730
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
2831
# See https://jb.gg/intellij-platform-builds-list for available build versions.
29-
pluginVerifierIdeVersions=2020.3.4, 2021.1.3, 2021.2.1
32+
pluginVerifierIdeVersions=2020.3.4, 2021.1.3, 2021.3.1
33+
3034
platformType=IU
3135
platformVersion=IU-212.5457.46
3236
platformDownloadSources=true
37+
3338
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
3439
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
35-
platformPlugins=com.intellij.java, org.jetbrains.kotlin, IntelliLang, com.intellij.lang.jsgraphql:3.0.0, PsiViewer:212-SNAPSHOT
40+
platformPlugins=com.intellij.java, org.jetbrains.kotlin, IntelliLang, com.intellij.lang.jsgraphql:3.1.2, PsiViewer:212-SNAPSHOT
41+
3642
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
3743
javaVersion=11
38-
gradleVersion=7.2
44+
gradleVersion=7.3.3
45+
3946
# Opt-out flag for bundling Kotlin standard library.
4047
# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details.
4148
# suppress inspection "UnusedProperty"
Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
1-
#
2-
# Copyright (C) 2021 Jordie
3-
#
4-
# This program is free software: you can redistribute it and/or modify
5-
# it under the terms of the GNU General Public License as published by
6-
# the Free Software Foundation, either version 3 of the License, or
7-
# (at your option) any later version.
8-
#
9-
# This program is distributed in the hope that it will be useful,
10-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
# GNU General Public License for more details.
13-
#
14-
# You should have received a copy of the GNU General Public License
15-
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
#
17-
181
distributionBase=GRADLE_USER_HOME
192
distributionPath=wrapper/dists
20-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
214
zipStoreBase=GRADLE_USER_HOME
225
zipStorePath=wrapper/dists

gradlew

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
#!/bin/sh
22

33
#
4-
# Copyright (C) 2021 Jordie
4+
# Copyright © 2015-2021 the original authors.
55
#
6-
# This program is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU General Public License as published by
8-
# the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
109
#
11-
# This program is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU General Public License for more details.
10+
# https://www.apache.org/licenses/LICENSE-2.0
1511
#
16-
# You should have received a copy of the GNU General Public License
17-
# along with this program. If not, see <https://www.gnu.org/licenses/>.
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
1817
#
1918

2019
##############################################################################
@@ -33,10 +32,10 @@
3332
# Busybox and similar reduced shells will NOT work, because this script
3433
# requires all of these POSIX shell features:
3534
# * functions;
36-
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
37-
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
38-
# * compound commands having a testable exit status, especially «case»;
39-
# * various built-in commands including «command», «set», and «ulimit».
35+
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36+
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37+
# * compound commands having a testable exit status, especially «case»;
38+
# * various built-in commands including «command», «set», and «ulimit».
4039
#
4140
# Important for patching:
4241
#
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package nl.jrdie.idea.springql.svc;
2+
3+
import com.intellij.openapi.project.Project;
4+
import nl.jrdie.idea.springql.index.QLIdeIndex;
5+
import org.jetbrains.annotations.NotNull;
6+
import org.jetbrains.uast.UAnnotation;
7+
import org.jetbrains.uast.UMethod;
8+
9+
public interface QLIdeService {
10+
11+
@NotNull
12+
default QLIdeIndex getIndex() {
13+
return getIndex(false);
14+
}
15+
16+
@NotNull
17+
QLIdeIndex getIndex(boolean forceReload);
18+
19+
boolean isApplicableProject(Project project);
20+
21+
boolean isSchemaMappingAnnotation(UAnnotation uAnnotation);
22+
23+
boolean isBatchMappingAnnotation(UAnnotation uAnnotation);
24+
25+
boolean isValidBatchMappingReturnType(UMethod uMethod);
26+
27+
boolean isMethodUsed(UMethod uMethod);
28+
29+
@NotNull
30+
QLSchemaRegistry getSchemaRegistry();
31+
32+
// @NotNull
33+
// Project getApplicableProject();
34+
35+
}

0 commit comments

Comments
 (0)