forked from unshare/hybris-integration-intellij-idea-plugin
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathbuild.gradle
77 lines (65 loc) · 2.78 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* This file is part of "hybris integration" plugin for Intellij IDEA.
* Copyright (C) 2014-2016 Alexander Bartash <AlexanderBartash@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
buildscript {
repositories {
mavenCentral()
//noinspection GroovyAssignabilityCheck
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "gradle.plugin.org.jetbrains.intellij.plugins:gradle-intellij-plugin:$gradleIntellijPluginVersion"
}
}
apply from: "community.gradle"
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
//compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
//testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
//testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
compile "commons-codec:commons-codec:1.12"
compile "commons-io:commons-io:2.6"
compile "com.google.guava:guava:27.1-jre"
compile "com.google.code.findbugs:jsr305:3.0.2"
compile "org.apache.commons:commons-lang3:3.9"
compile "org.apache.commons:commons-collections4:4.3"
compile "org.apache.maven:maven-model:3.6.1"
compile "com.wutka:dtdparser:1.21"
compile("org.apache.solr:solr-solrj:8.0.0") {
exclude group: 'org.slf4j', module: 'slf4j-api'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
exclude group: 'org.apache.httpcomponents', module: 'httpcore'
exclude group: 'org.apache.httpcomponents', module: 'httpmime'
}
compile "com.github.ben-manes.caffeine:caffeine:2.7.0"
compile "org.jsoup:jsoup:1.11.3"
testCompile "org.mockito:mockito-core:2.27.0"
compile project("common")
compile project("rt-ant")
}
//noinspection GroovyAssignabilityCheck
task addPsiViewerPlugin {
def majorIntellijVersion = (intelijVersion as String).split("\\.").first()
def psiVersion = findProperty("psiViewerVersions.$majorIntellijVersion")
if (psiVersion != null) {
intellij.plugins += "PsiViewer:$psiVersion"
}
}
prepareSandbox.finalizedBy addPsiViewerPlugin