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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ integration/hibernate/.classpath
integration/hibernate/.factorypath
integration/hibernate/target/
/core/impl/nbactions.xml
*/**/dependency-reduced-pom.xml
*/**/dependency-reduced-pom.xml
out/
/plugin/intellij/build/
.gradle/
79 changes: 79 additions & 0 deletions plugin/antlr/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2014 - 2019 Blazebit.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.blazebit</groupId>
<artifactId>blaze-persistence-plugin</artifactId>
<version>1.4.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>blaze-persistence-plugin-antlr</artifactId>
<packaging>jar</packaging>

<name>Blazebit Persistence Plugin Antlr</name>

<properties>
<module.name>com.blazebit.persistence.plugin.antlr</module.name>
</properties>

<dependencies>
<!-- Project dependencies -->

<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-intellij-adaptor</artifactId>
<version>0.1</version>
<exclusions>
<exclusion>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createSourcesJar>true</createSourcesJar>
<relocations>
<relocation>
<pattern>org.antlr.v4.runtime</pattern>
<shadedPattern>com.blazebit.persistence.parser.antlr</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>

</build>
</project>
55 changes: 55 additions & 0 deletions plugin/intellij/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.4.10'
}

apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'org.jetbrains.intellij'

sourceCompatibility = 1.8
group = 'com.blazebit'
version = '1.4.0-SNAPSHOT'
def intellijVersion = '192.5728.98' // 2019.2

repositories {
mavenLocal()
maven { url 'target/dependencies' }
maven { url "https://www.jetbrains.com/intellij-repository/releases" }
maven { url "https://jetbrains.bintray.com/intellij-third-party-dependencies" }
}

dependencies {
compile "$group:blaze-persistence-core-parser:$version"
compile "$group:blaze-persistence-plugin-antlr:$version"
compileOnly "com.jetbrains.intellij.java:java:$intellijVersion"
compileOnly "com.jetbrains.intellij.platform:lang-injection:$intellijVersion"
}

intellij {
version System.getenv().getOrDefault('IDEA_VERSION', ideaVersion)
type ideaType
downloadSources Boolean.valueOf(sources)
sameSinceUntilBuild Boolean.valueOf(isEAP)
alternativeIdePath idePath
updateSinceUntilBuild false
pluginName 'Blaze-Persistence Support'
if ( !(version.startsWith('2018') || version.startsWith('2019.1'))) {
plugins 'java'
}
}

tasks.register('javadocJar', Jar) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
dependsOn javadoc
}

tasks.register('sourcesJar', Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
dependsOn classes
}

assemble.dependsOn javadocJar
assemble.dependsOn sourcesJar
16 changes: 16 additions & 0 deletions plugin/intellij/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ideaVersion = 2019.2
ideaType = IC
sources = true
isEAP = false
runGenerators = true

pluginGroup = com.blazebit
pluginName = blaze-persistence-plugin-intellij
pluginVersion = 1.4.0-SNAPSHOT

publishPluginId =
publishUsername =
publishPassword =
publishChannel =

idePath =
Binary file added plugin/intellij/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions plugin/intellij/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
188 changes: 188 additions & 0 deletions plugin/intellij/gradlew

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

Loading