-
Notifications
You must be signed in to change notification settings - Fork 52
/
build.gradle
152 lines (136 loc) · 5.25 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
plugins {
id 'org.jetbrains.intellij.platform' version '2.1.0'
}
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'checkstyle'
checkstyle {
toolVersion = '10.11.0'
configDirectory = file("$rootProject.projectDir/config/checkstyle")
}
group = 'com.github.camel-tooling'
version = '1.3.2'
repositories {
mavenLocal()
maven {
url = 'https://repo.maven.apache.org/maven2'
mavenContent {
releasesOnly()
}
}
maven {
url "https://repository.apache.org/snapshots/"
mavenContent {
snapshotsOnly()
}
}
intellijPlatform {
defaultRepositories()
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
sourceCompatibility = '17'
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
test {
afterTest { desc, result ->
logger.quiet "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test).configureEach {
jvmArgs = [
// avoid JBUIScale "Must be precomputed" error, because IDE is not started (LoadingState.APP_STARTED.isOccurred is false)
'-Djava.awt.headless=true'
]
}
intellijPlatform {
pluginConfiguration {
// to support IDEA 2023.2 onwards
// http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html
ideaVersion {
sinceBuild = "232"
}
}
pluginVerification {
ides {
ide "2023.2"
ide "2023.3"
ide "2024.1"
ide "2024.2"
}
}
// publishing {
// def authenticationToken = "$System.env.INTELLIJ_TOKEN"
// token = authenticationToken
// }
}
dependencies {
intellijPlatform {
create(project.hasProperty('intellij_type') ? project.intellij_type : 'IC', ideaVersion)
pluginVerifier()
instrumentationTools()
bundledPlugins 'com.intellij.java', 'com.intellij.java-i18n', 'com.intellij.properties', 'org.jetbrains.plugins.yaml', 'org.jetbrains.idea.maven', 'com.intellij.gradle'
testFramework TestFrameworkType.Plugin.Java.INSTANCE
}
implementation "org.apache.camel:camel-catalog:${camelVersion}"
implementation "org.apache.camel:camel-tooling-maven:${camelVersion}"
implementation "org.apache.camel:camel-util:${camelVersion}"
implementation "org.apache.camel:camel-util-json:${camelVersion}"
implementation "org.apache.camel:camel-tooling-model:${camelVersion}"
implementation "org.apache.camel:camel-management-api:${camelVersion}"
implementation "org.apache.camel.springboot:camel-catalog-provider-springboot:${camelVersion}"
implementation "org.apache.camel.karaf:camel-catalog-provider-karaf:${camelKarafVersion}"
implementation "org.apache.camel.quarkus:camel-quarkus-catalog:${camelQuarkusVersion}"
implementation "org.apache.camel.kamelets:camel-kamelets:${camelKameletVersion}"
// Needed to avoid conflicts with the version of the maven resolver used by IntelliJ
implementation "org.apache.maven.resolver:maven-resolver-api:${mavenResolverVersion}"
implementation "org.apache.maven.resolver:maven-resolver-impl:${mavenResolverVersion}"
implementation "io.github.classgraph:classgraph:4.8.179"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.18.1"
implementation "io.fabric8:kubernetes-model-apiextensions:6.13.4"
testImplementation "org.apache.camel:camel-core:${camelVersion}"
testImplementation "org.apache.camel.springboot:camel-spring-boot:${camelVersion}"
testImplementation "org.apache.camel.springboot:camel-file-starter:${camelVersion}"
testImplementation 'org.jboss.shrinkwrap:shrinkwrap-depchain:1.2.6'
testImplementation 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:3.3.2'
testImplementation 'org.hamcrest:hamcrest-all:1.3'
testImplementation 'org.opentest4j:opentest4j:1.3.0'
testImplementation "org.apache.camel:camel-jsonpath:${camelVersion}"
testImplementation 'junit:junit:4.13.2'
}
description = 'Apache Camel IDE :: IDEA Plugin'
tasks.withType(org.jetbrains.intellij.platform.gradle.tasks.RunIdeTask) {
jvmArgs = [
// Allow to have access to the PSI Structure...
'-Didea.is.internal=true'
]
}