-
Notifications
You must be signed in to change notification settings - Fork 45
/
build.gradle
104 lines (90 loc) · 2.56 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
buildscript {
repositories {
jcenter()
maven { url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' }
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'org.ksprojects:java-code-style:1.2'
}
}
plugins {
id "org.jetbrains.intellij" version "0.3.5"
}
group = 'io.protostuff'
description = 'Protobuf Plugin for JetBrains IDEs'
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven {
url "https://dl.bintray.com/antlr/maven/"
}
}
dependencies {
compile 'org.antlr:antlr4-runtime:4.7'
compile ('org.antlr:antlr4-jetbrains-adapter:3.0.snapshot.efd2349681fbe1719e7115f0a4e8b82ecafe21b9') {
exclude group: 'com.jetbrains'
exclude group: 'org.slf4j'
}
compile 'com.google.guava:guava:21.0'
compile ('io.protostuff:protostuff-parser:2.2.26') {
exclude group: 'org.slf4j'
}
compile ('io.sentry:sentry:1.7.5') {
exclude group: 'org.slf4j'
}
compile ('com.google.protobuf:protobuf-java:3.6.1:sources')
}
apply plugin: 'idea'
idea {
project {
jdkName = javaVersion
languageLevel = javaVersion
}
}
apply plugin: 'org.jetbrains.intellij'
intellij {
version = ideaVersion
type = 'IC'
updateSinceUntilBuild = false
downloadSources = true
// plugins = ['PsiViewer:182.2757.2']
// localPath = '/home/kshchepanovskyi/.local/opt/WebStorm-171.3780.79/'
// instrumentCode = false
publish {
username = project.hasProperty('jetbrainsUser') \
? project.property('jetbrainsUser') \
: System.getenv('JETBRAINS_USER')
password = project.hasProperty('jetbrainsPassword') \
? project.property('jetbrainsPassword') \
: System.getenv('JETBRAINS_PASSWORD')
pluginId = '8277'
}
}
test {
systemProperty 'test_mode', true
}
runIde {
systemProperty 'trigger_exception_action.visible', true
}
apply plugin: 'java'
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
task wrapper(type: Wrapper) {
gradleVersion = '4.10.2'
}
apply plugin: 'checkstyle'
checkstyle {
config = resources.text.fromString(getClass().getResource("checkstyle.xml").text)
toolVersion = '7.6.1'
// Exclude generated code from Checkstyle checks
checkstyleMain.source = "src/main/java"
checkstyleTest.source = "src/test/java"
}